엘라스틱은 한 컴퓨터에서 둘 이상의 노드를 굴릴 수 있다. 이때 인덱스 저장 경로를 노드끼리 공유하려면 node.max_local_storage_nodes 옵션값을 2이상, 최소 노드 개수만큼 줘야함. 하지만 윈도우 기본 인덱스 저장 경로는 'elasticsearch\data\node'.
페이지
▼
2019년 8월 26일 월요일
2019년 8월 25일 일요일
2019년 8월 18일 일요일
Logstash 필터 drop
drop 필터의 percentage 옵션이 잘 동작하지 않는다는 질문을 받았다. 다음은 테스트 설정.
input {
file {
path => "d:/test.log"
start_position => "beginning"
sincedb_path => "nul"
}
}
filter {
#if "test" in [message] { drop {} }
#if [message] =~ "test" { drop {} }
#if [message] !~ "string" { drop {} }