# GELF Output plugins adds a "protocol" field

**URL:** <https://discuss.elastic.co/t/gelf-output-plugins-adds-a-protocol-field/112625>\
**Category:** Logstash\
**Created:** [December 20, 2017, 11:34am UTC](https://discuss.elastic.co/t/gelf-output-plugins-adds-a-protocol-field/112625 "2017-12-20T11:34:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ssiws](https://avatars.discourse-cdn.com/v4/letter/s/4af34b/32.png) [@ssiws](https://discuss.elastic.co/u/ssiws)\
**Post date:** [December 20, 2017, 11:34am UTC](https://discuss.elastic.co/t/gelf-output-plugins-adds-a-protocol-field/112625/1 "2017-12-20T11:34:24Z")

</div>

Hello,

I am using the GELF output plugin and I noticed that the GELF plugin seems to add a "protocol" field, always with 0 as value.

Maybe there is an error in the code, here: [https://github.com/logstash-plugins/logstash-output-gelf/blob/cf897ce4055593f7adc7e92895d0da4d58b82b68/lib/logstash/outputs/gelf.rb#L86](https://github.com/logstash-plugins/logstash-output-gelf/blob/cf897ce4055593f7adc7e92895d0da4d58b82b68/lib/logstash/outputs/gelf.rb#L86) but I'm absolutely not sure about that.

Should we replace `{ :protocol => GELF::Protocol.const_get(@protocol) }` by `GELF::Protocol.const_get(@protocol)` ?

---

<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:** [January 17, 2018, 11:35am UTC](https://discuss.elastic.co/t/gelf-output-plugins-adds-a-protocol-field/112625/2 "2018-01-17T11:35:08Z")

</div>

Closed on January 17, 2018, 11:35am UTC

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