This is example configuration template to ingest csv file to elasticsearch. The configuration divided into three part which is "input","filter" and "output" The first part are the path that you put your location of your csv file. The second part where you put your column name and how you want to ingest and modify your output, and the last one are for assign elasticsearch credential and index name. How ?
- Open your csv file with your text editor and look at the first line, here your column name.
- Your CSV file location
- On the filter part, put your columns name
- If you enable TLS uncomment the line and fill it with your config
- Test your configuration file /usr/share/logstash/bin/logstash --config.test_and_exit -f /etc/logstash/conf.d/csv.conf
- Restart your logstash