Csv file headers are missing in logstash output


(Chamani Shiranthika) #1

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.


(system) #2

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