Unknown setting 'skip_header' for csv

I got this error when I add skip_header property in csv filter

filter {
csv {
columns => [
"Date",
"Product Categories",
"Geo",
"Revenue"
]
separator => ","
remove_field => ["message"]
skip_header => "true"
}
}

[2019-07-31T17:05:07,457][ERROR][logstash.filters.csv ] Unknown setting 'skip_header' for csv

Any help appreciated :slight_smile:

Which version of the filter do you have? Adding skip_header was the most recent change in the filter.

/usr/share/logstash/bin/logstash-plugin list --verbose logstash-filter-csv
logstash-filter-csv (3.0.10)

If you have anything older than 3.0.10 you would need to upgrade.

Thanks @Badger
Yeah, I need to upgrade then. I use logstash-filter-csv (3.0.5)

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