[ES]Content-Type header [application/x-www-form-urlencoded] is not supported
# DataBase/Elasticsearch2022. 10. 4. 16:04[ES]Content-Type header [application/x-www-form-urlencoded] is not supported

수정전 [darksharavim.tistory.com]curl -XPOST http://localhost:9200/classes/class/1?pretty -d ' {"title" : "Algorithm", "professor" : "John"}' { "error" : "Content-Type header [application/x-www-form-urlencoded] is not supported", "status" : 406 } ES6.0이후 정책으로 인하여 헤더에 컨텐츠타입을 지정해줘야함. 수정후 [darksharavim.tistory.com]curl -XPOST http://localhost:9200/classes/class/1?pretty >-H 'Content-Type: application/..

logstash grok 정규표현식
# DataBase/Elasticsearch2022. 9. 2. 15:12logstash grok 정규표현식

apache accesslog 1.1.2.2 - - [21/Jul/2022:15:14:31 +0900] "GET /common/json/agent.do?mhost=&userid=f37214ef1d004c28b3bf0b60&_=165837209471350329237139 HTTP/1.1" 200 165 정규 필터 의미 \w 한글자 \w+ 한단어 \d 정수1자리 \d+ 정수 전체 \s 공백 한칸 \s+ 공백 전체 \특수문자 특수문자 구분 정규 필터 의미 . ? + 사용자가 지정한 문자열의 마지막글자가 연속으로 나열된만큼 매칭. \w, \d 의 경우 문자나 숫자를 전부 읽어서 매칭하고 \s는 연속된 공백 1개이상에대해 매칭. {} 사용자가 지정한 문자에 대해 반복횟수 지정하여 매칭 | or연산자 () 부분집합..

[elasticsearch]heap out of memory(OOM)
# DataBase/Elasticsearch2022. 8. 19. 08:35[elasticsearch]heap out of memory(OOM)

가이드에는 힙사이즈를 전체 물리 메모리의 50%로 셋팅하는것으로 권장. 32기가라면 16기가정도로 셋팅. Set Xms and Xmx to no more than 50% of your total memory. Elasticsearch requires memory for purposes other than the JVM heap. For example, Elasticsearch uses off-heap buffers for efficient network communication and relies on the operating system’s filesystem cache for efficient access to files. The JVM itself also requires some memory. I..

[elasticsearch]bootstrap check failure
# DataBase/Elasticsearch2022. 6. 16. 15:47[elasticsearch]bootstrap check failure

엘라스틱서치 아래와 같이 설정 변경 후 구동시 에러발생 [darksharavim.tistory.com]vi /etc/elasticsearch/elasticsearch.yml network.host: _site_ [2022-06-16T16:39:36,037][ERROR][o.e.b.Bootstrap ] [node-1] node validation exception [1] bootstrap checks failed. You must address the points described in the following [1] lines before starting Elasticsearch. bootstrap check failure [1] of [1]: memory locking requested for elas..

elasticsearch 8.2.3 install
# DataBase/Elasticsearch2022. 6. 16. 08:57elasticsearch 8.2.3 install

다운로드 https://www.elastic.co/kr/downloads/elasticsearch Download Elasticsearch Download Elasticsearch or the complete Elastic Stack (formerly ELK stack) for free and start searching and analyzing in minutes with Elastic. www.elastic.co 설치환경 [darksharavim.tistory.com]cat /etc/redhat-release Rocky Linux release 8.6 (Green Obsidian) 엘라스틱서치 GPG키 및 레포지토리 추가 [darksharavim.tistory.com]rpm --import https..

image