How do I include field-names into CSV file?


I'm using Elasticsearch input plugin with Csv output plugin as part of my pipeline.

now, generated CSV file has skip fields that are NULL in elasticsearch's document and that presents an issue as I can't really identify these fields, as generated file's fields are out of order...

How can I include field-names into generated CSV file at the top?

Please advise.

Thanks to darkmoonvt @IRC, the answer was easier than I thought) and even though it doesn't add field-names on top of CSV file, at least now each field is identifiable)

Csv output plugin | Logstash Reference [6.1] | Elastic

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