/Logstash-CSV-ingestion-configuration

This is example configuration template to ingest csv file to elasticsearch.

Logstash-CSV-ingestion-configuration

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 ?

  1. Open your csv file with your text editor and look at the first line, here your column name.

image

  1. Your CSV file location

image

  1. On the filter part, put your columns name

image

  1. If you enable TLS uncomment the line and fill it with your config

image

  1. Test your configuration file /usr/share/logstash/bin/logstash --config.test_and_exit -f /etc/logstash/conf.d/csv.conf
  2. Restart your logstash