# Parser processor change measurement name to "parser"

**URL:** <https://community.influxdata.com/t/parser-processor-change-measurement-name-to-parser/26984>\
**Category:** Telegraf\
**Tags:** telegraf, parser\
**Created:** [October 14, 2022, 8:25pm UTC](https://community.influxdata.com/t/parser-processor-change-measurement-name-to-parser/26984 "2022-10-14T20:25:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![zoulou](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/zoulou/32/11646_2.png) [@zoulou](https://community.influxdata.com/u/zoulou)\
**Post date:** [October 14, 2022, 8:25pm UTC](https://community.influxdata.com/t/parser-processor-change-measurement-name-to-parser/26984/1 "2022-10-14T20:25:36Z")

</div>

When using the parser processor, the measurement name get changed to “parser”.  
It happens in either merge=“override” case or in the new metric.  
I would expect to keep the original measurement name, is there something that I am missing here ?

example with original and parsed metric in JSON :

```auto
water,topic=sprinkler/arena/frontend value="{\"Pnetwork\":2.271,\"Pprefilter\":0.047,\"Psprinkler\":-0.003,\"tank_level\":28.389,\"output\":0,\"error\":0,\"well_pump_enabled\":1,\"fill_tank
_enabled\":1,\"wp_starts\":1051}" 1665778985960330563

parser well_pump_enabled=1,error=0,fill_tank_enabled=1,tank_level=28.389,Pprefilter=0.047,Psprinkler=-0.003,wp_starts=1051,Pnetwork=2.271,output=0 1665778985960668040

```

```auto
[[processors.parser]]
  parse_fields = ["value"]
  drop_original = false
  data_format="json"

```

---

<div class="post-metadata">

**Author:** ![jpowers](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/jpowers/32/8569_2.png) [@jpowers](https://community.influxdata.com/u/jpowers)\
**Post date:** [October 26, 2022, 11:35pm UTC](https://community.influxdata.com/t/parser-processor-change-measurement-name-to-parser/26984/2 "2022-10-26T23:35:54Z")

</div>

I saw someone on the community slack report this same thing. If you could report an issue with a basic example that we can use to reproduce this issue I would greatly appreciate it!

---

<div class="post-metadata">

**Author:** ![medavoc139](https://avatars.discourse-cdn.com/v4/letter/m/76d3ee/32.png) [@medavoc139](https://community.influxdata.com/u/medavoc139)\
**Post date:** [October 27, 2022, 6:36am UTC](https://community.influxdata.com/t/parser-processor-change-measurement-name-to-parser/26984/3 "2022-10-27T06:36:16Z")

</div>

A bug report about this problem can be found here:

> <https://github.com/influxdata/telegraf/issues/12115>
>
> \### Relevant telegraf.conf
> 
> \`\`\`toml
> \[\[inputs.file\]\]
> files = \["/test/test.t…xt"\]
> data\_format = "value"
> data\_type = "string"
> 
> \[\[processors.parser\]\]
> namepass = \["file"\]
> parse\_fields = \["value"\]
> drop\_original = false
> merge = "override"
> data\_format = "value"
> data\_type = "float"
> 
> \[\[outputs.file\]\]
> files = \["stdout"\]
> \`\`\`
> 
> 
> \### Logs from Telegraf
> 
> \`\`\`text
> Telegraf 1.23.4:
> file value=7.2 1664873970000000000
> 
> Telegraf 1.24.2:
> parser value=7.2 1664892267000000000
> \`\`\`
> 
> \### Steps to reproduce
> 
> Use the \[\[processors.parser\]\] as shown in the example above or as reported in one of links given in the "Additional info" block.
> 
> \### Expected behavior
> 
> like Telegraf 1.23.4 does: keep the measurement name of the input.
> 
> \### Actual behavior
> 
> Measurement name is changed to 'parser'.
> The field is dropped from the original measurement, even with setting \`drop\_original = false\`.
> 
> \### Additional info
> 
> The same issue get's talked about behind these 3 links:
> \* https://community.influxdata.com/t/parser-processor-change-measurement-name-to-parser/26984
> \* https://community.influxdata.com/t/single-mqtt-consumer-for-int-float-string/27137
> \* https://influxcommunity.slack.com/archives/CH99HUH8V/p1666794045416509
> 
> I'm a new user of InfluxDB & Telegraf, and have no idea how to actually switch to an older Telegraf version. I've copied the sample and it's output from this issue:
> https://github.com/influxdata/telegraf/issues/11921
