# Logstash Integration Plugin configuration option field issue (Logstash Input Plugin add\_filed issue)

**URL:** <https://discuss.elastic.co/t/logstash-integration-plugin-configuration-option-field-issue-logstash-input-plugin-add-filed-issue/351439>\
**Category:** Logstash\
**Created:** [January 19, 2024, 11:50am UTC](https://discuss.elastic.co/t/logstash-integration-plugin-configuration-option-field-issue-logstash-input-plugin-add-filed-issue/351439 "2024-01-19T11:50:54Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![siva0030](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/siva0030/32/130398_2.png) [@siva0030](https://discuss.elastic.co/u/siva0030)\
**Post date:** [January 19, 2024, 11:50am UTC](https://discuss.elastic.co/t/logstash-integration-plugin-configuration-option-field-issue-logstash-input-plugin-add-filed-issue/351439/1 "2024-01-19T11:50:55Z")

</div>

Hello Team,  
Good noon!

Recently, I've upgraded my Logstash to 8.11.3 version. Starting from Logstash 8.11 version, Logstash Integration Plugin is available. I was trying to use the Logstash input plugin to receive the data from another Logstash.

as per the elastic documentation, we can use the \*\* `add_field`\*\* and **id** in the logstash input plugin and that will add the filed to the every event.

But, **add\_filed and Id** is not getting added in the event. Here attaching my logstash config, could you please someone check and help me to resolve this issue?

Elastic documentation link: [Logstash input plugin | Logstash Reference [8.12] | Elastic](https://www.elastic.co/guide/en/logstash/8.12/plugins-inputs-logstash.html)

Logstash config:

```auto
input {
    logstash {
      port => 9801
      host => "0.0.0.0"
      ssl_enabled => false
      id => "logstash-0"
      add_field => { 
          "from_other_logstash" => "yes"
      }
    }
}
filter {
    mutate {
      add_field => {
       "data_coming_from" => "Logstash-8"
      }
    }
}
output {
    stdout {
        codec => rubydebug {
            metadata => true
        }
    }
}

```

Thanks  
Siva

---

<div class="post-metadata">

**Author:** ![siva0030](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/siva0030/32/130398_2.png) [@siva0030](https://discuss.elastic.co/u/siva0030)\
**Post date:** [January 19, 2024, 12:23pm UTC](https://discuss.elastic.co/t/logstash-integration-plugin-configuration-option-field-issue-logstash-input-plugin-add-filed-issue/351439/2 "2024-01-19T12:23:58Z")

</div>

Hi Team,

One more observation, Adding tags is also not working in the Logstash input plugin. Can someone please help resolve this issue?

Find the input config below.

```auto
input {
    logstash {
      port => 9801
      host => "0.0.0.0"
      ssl_enabled => false
      id => "logstash-0"
      add_field => { 
          "from_other_logstash" => "yes"
      }
     tags => ["logstashData"] 

    }
}

```

thanks in advance!  
Siva

---

<div class="post-metadata">

**Author:** ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)\
**Post date:** [January 19, 2024, 1:03pm UTC](https://discuss.elastic.co/t/logstash-integration-plugin-configuration-option-field-issue-logstash-input-plugin-add-filed-issue/351439/3 "2024-01-19T13:03:26Z")

</div>

Just tested here and it also does not add the fields or tags, you will need to open an github issue.

Or this is a bug, or the documentation is wrong and the common options does not work in this case.

This is the [repo](https://github.com/logstash-plugins/logstash-integration-logstash) for this input/output.

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [January 19, 2024, 6:58pm UTC](https://discuss.elastic.co/t/logstash-integration-plugin-configuration-option-field-issue-logstash-input-plugin-add-filed-issue/351439/4 "2024-01-19T18:58:13Z")

</div>

You are right, the input does not call `decorate`, so the common options like add\_field do not work. An [issue](https://github.com/logstash-plugins/logstash-integration-logstash/issues/20) for this was opened this morning.

The id option does not add an [id] field to the event, it is used by the [pipeiine stats](https://www.elastic.co/guide/en/logstash/current/node-stats-api.html#pipeline-stats) API to tell you which plugin the stats refer to. Useful if you have more than one plugin of the same type.

---

<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:** [February 16, 2024, 6:59pm UTC](https://discuss.elastic.co/t/logstash-integration-plugin-configuration-option-field-issue-logstash-input-plugin-add-filed-issue/351439/5 "2024-02-16T18:59:07Z")

</div>

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