Windows 10
1. The format of ELK index name must be like test-%{yyyy.MM.dd}. Sure you can customize it in the config file of "logstash", but please ensure the uniformity
1. Change the output->csv->fields&input->elasticsearch->query in the convert_csv.conf file according to your own needs
- You can customize the
output->csv->pathfor the output file - Don't need to care about the value of
input->elasticsearch->indexas it will be changed automatically once you run the.pyfile
2. Put the convert_csv.conf into the bin directory of logstash. In my case, it is D:\ELK\logstash-7.8.0\bin\convert_csv.conf*
3. Execute the logstash2csv.py and start exporting!