I am generating a csv file by loading a log file from filebeat and using logstash to process the data specifying the input and output. The format of logstash output configuration is as follows.
output {
csv {
fields => ["fieldA","fieldB"]
path => "/home/csv_reports/%{+YYYY}-%{+MM}-%{+dd}/myReport.csv"
}
}
The data in the logfile is correctly loaded into the csv file without any problem displays in the 2 fields. But the header names are missing. How to resolve this issue.?
Thanks in advance.