# Managing field names with spaces in Logstash

**URL:** <https://discuss.elastic.co/t/managing-field-names-with-spaces-in-logstash/146503>\
**Category:** Logstash\
**Created:** [August 29, 2018, 10:01am UTC](https://discuss.elastic.co/t/managing-field-names-with-spaces-in-logstash/146503 "2018-08-29T10:01:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![espogian](https://avatars.discourse-cdn.com/v4/letter/e/4491bb/32.png) [@espogian](https://discuss.elastic.co/u/espogian)\
**Post date:** [August 29, 2018, 10:01am UTC](https://discuss.elastic.co/t/managing-field-names-with-spaces-in-logstash/146503/1 "2018-08-29T10:01:38Z")

</div>

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](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?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [September 26, 2018, 10:01am UTC](https://discuss.elastic.co/t/managing-field-names-with-spaces-in-logstash/146503/2 "2018-09-26T10:01:43Z")

</div>

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