Managing field names with spaces in Logstash

Hello, due to the way the skip_header option is working in Logstash, when reading a CSV one has to define fields which have the exact same name of the header present in the CSV (see https://github.com/logstash-plugins/logstash-filter-csv/issues/68)

Unfortunately, sometimes CSV have header names with spaces. Therefore, I'm getting field names with spaces on Logstash, which I don't would like to happen.

To avoid this behaviour, which would you do? A mutate-rename in the filter section?

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