小编fro*_*nus的帖子

Logstash - csv output headers

I'm trying to request database with logstash jdbc plugins and returns a csv output file with headers with logstash csv plugin.

I spent a lot of time on logstash documentation but I'm still missing a point.

With the following logstash configuration, the results give me a file with headers for each row. I couldn't find a way to add the headers for only the first row in the logstash configuration.

Helps very much appreciated.

Output file

_object$id;_object$name;_object$type;nb_surveys;csat_score
2;Jeff Karas;Agent;2;2 …
Run Code Online (Sandbox Code Playgroud)

ruby csv logstash

6
推荐指数
1
解决办法
4716
查看次数

标签 统计

csv ×1

logstash ×1

ruby ×1