Add header row to csv output file

Using csv output plugin to store JSON field data. But there are no column names; wondering how to give names to columns or how to add header row.

You can use the csv_options option on the csv output to tell it to add a header row, but since every row is written independently each one will have a header. That is, every other row of the output will be a header.

You may be able to write the header row to the output file before running logstash.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.