[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..

kibana 8.2.3 install
# DataBase/Elasticsearch2022. 6. 17. 13:56kibana 8.2.3 install

다운로드 https://www.elastic.co/kr/downloads/kibana Download Kibana Free | Get Started Now Download Kibana or the complete Elastic Stack (formerly ELK stack) for free and start visualizing, analyzing, and exploring your data with Elastic in minutes. www.elastic.co kibana 레포지토리 추가 [darksharavim.tistory.com]vi /etc/yum.repos.d/kibana.repo # 아래내용 추가 [kibana-8.x] name=Kibana repository for 8.x packages ..

logstash 8.2.3 install
# DataBase/Elasticsearch2022. 6. 17. 13:34logstash 8.2.3 install

다운로드 https://www.elastic.co/kr/downloads/logstash Download Logstash Free | Get Started Now Download Logstash or the complete Elastic Stack (formerly ELK stack) for free and start collecting, searching, and analyzing your data with Elastic in minutes. www.elastic.co 설치환경 [darksharavim.tistory.com]cat /etc/redhat-release Rocky Linux release 8.6 (Green Obsidian) logstash 레포지토리 추가 [darksharavim.tist..

image