Hi,
I'm using logstash elastic search input plugin to export elastic search indexes into csv file. Please note that _source is disabled for indices. The issue here is export works only when _source is enabled otherwise it doesn't work.
So how to export indices when _source field is disabled, I tried using _source as false to the query and tried adding stored_fields but it doesn't work.
Could you please help me in this case?
Here is my logstash config file,
input{
elasticsearch{
hosts => "localhost:9200"
index => "indexname"
query => '{"query": {"match_all": {}}}'
}
}
output{
csv{
fields => ["field1","field2"]
path => "/usr/share/logstash/tmp/csv-export1.csv"
}
stdout{codec => json}
}
Thanks,
Ravi