Elasticsearch logger
로그 엔트리 3개
- 메인로그 (cluster-name.log)
: 동작 중 일때, 무슨일이 일어났는지에 관한 일반적인 정보를 알수 있다. 쿼리 실패, 새로운 노드 클러스터에 추가
- 느린 검색 로그(cluster-name_index_search_slowlog.log)
쿼리가 너무 느리게 실행될때 로그를 남기는 곳
- 느린 색인 로그(cluster-name_index_indexing_slowlog.log)
느린 검색로그와 유사하지만 기본으로 색인 작업이 일정 시간 지나면 로그를 남기는 곳
실행 중이기 때문에 curl 을 이용해서 바로 적용
x
curl -XPUT "http://localhost:9200/index_name/_settings" -d '{
"index.search.slowlog.threshold.query.debug" : "0s",
"index.search.slowlog.threshold.fetch.debug": "0s",
"index.indexing.slowlog.threshold.index.debug": "0s"
}'
https://stackoverflow.com/questions/21749997/see-all-executed-elasticsearch-queries
'BackEnd > ElasticSearch' 카테고리의 다른 글
[Elasticsearch] failed to obtain node locks (0) | 2019.06.21 |
---|---|
SuggestAPI 소개 (0) | 2019.06.10 |
Nori 사용 해서 노래 가사 검색하기 (0) | 2019.06.10 |
Elasticsearch Nori (0) | 2019.05.27 |
Elasticsearch 모니터링 툴 (0) | 2019.03.04 |