elasticsearch - Elastic search queries -
i have large database in elastic search. want data analysis. size of data want database 25,000. means there 25,000 results search query. want data csv file. firstly installed csv plugin server. when set size 25,000 doesn't display data.
how can data set csv file?
use logstash elasticsearch input , csv output! following simple configuration can use export es data csv file:
input { elasticsearch { host => "localhost" port => 9200 index => "your_index" query => '{ "query": { "match_all": { } } }' } } output { csv { path => "/path/to/you/csv/file.csv" fields => ["field1", "field2", "field3"] } }
save configuration in logstash.conf
file , run bin/logstash -f logstash.conf
Comments
Post a Comment