# Comments between hash entries cause parse error

**URL:** <https://discuss.elastic.co/t/comments-between-hash-entries-cause-parse-error/50592>\
**Category:** Logstash\
**Created:** [May 20, 2016, 6:01pm UTC](https://discuss.elastic.co/t/comments-between-hash-entries-cause-parse-error/50592 "2016-05-20T18:01:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kelvin\_L](https://avatars.discourse-cdn.com/v4/letter/k/958977/32.png) [@Kelvin\_L](https://discuss.elastic.co/u/Kelvin_L)\
**Post date:** [May 20, 2016, 6:01pm UTC](https://discuss.elastic.co/t/comments-between-hash-entries-cause-parse-error/50592/1 "2016-05-20T18:01:20Z")

</div>

This should be self-explanatory:  
On logstash 2.3.2

```
filter {
  mutate {
    rename => {
      # comment OK here
      "field_1a" => "field_1b"
      # comment not OK here - causes parse error
      "field_2a" => "field_2b"
      # comment OK here
    }
  }
}
```

---

<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:** [July 6, 2017, 4:56am UTC](https://discuss.elastic.co/t/comments-between-hash-entries-cause-parse-error/50592/2 "2017-07-06T04:56:49Z")

</div>


