운영체제/리눅스
[ElasticSearch] Logstash의 input plugin으로 ElasticSearch 설(레퍼런스 I스크랩)
Gongdel
2018. 10. 14. 11:55
<업무 복습>
Logstash input plugin(ElasticSearch)
: https://www.elastic.co/guide/en/logstash/current/plugins-inputs-elasticsearch.html
input { # Read all documents from Elasticsearch matching the given query elasticsearch { hosts => "localhost" query => '{ "query": { "match": { "statuscode": 200 } }, "sort": [ "_doc" ] }' } }
logstash output plugin(Css)
- 나의 경우는 해당 조건쿼리없이, index의 모든 doc를 추출을 원했고, 양은 500 row로 설정
: https://stackoverflow.com/questions/8829468/elasticsearch-query-to-return-all-records