# Collectd - Logstash not working

**URL:** <https://discuss.elastic.co/t/collectd-logstash-not-working/305632>\
**Category:** Logstash\
**Created:** [May 25, 2022, 4:52pm UTC](https://discuss.elastic.co/t/collectd-logstash-not-working/305632 "2022-05-25T16:52:33Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![John\_Murray1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/john_murray1/32/99133_2.png) [@John\_Murray1](https://discuss.elastic.co/u/John_Murray1)\
**Post date:** [May 25, 2022, 4:52pm UTC](https://discuss.elastic.co/t/collectd-logstash-not-working/305632/1 "2022-05-25T16:52:33Z")

</div>

Hey,  
Apologies if this has come up before, I am new to Elastic Stack. This was working but stopped after about 4 Hrs. I am collecting SNMP data with collectd and sending it to logstash, but its not processing any more. Getting the following error in logstash logs.

```auto
`"reason"=>"object mapping for [host] tried to parse field [host] as object, but found a concrete value"}`

```

elastic and logstash version are. 7.17.3

```auto
input {
  udp {
    port => 25826
    buffer_size => 1452
    codec => collectd { }
  }
}
output {
        elasticsearch {
            hosts => ["172.20.215.27:9200"]
            index => "collectd-%{+YYYY.MM.dd}"
        }
}

```

Thanks for any assistance

---

<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:** [May 25, 2022, 7:35pm UTC](https://discuss.elastic.co/t/collectd-logstash-not-working/305632/2 "2022-05-25T19:35:34Z")

</div>

See [this](https://discuss.elastic.co/t/getting-illegal-state-exception-error-while-pushing-logs-to-elasticsearch/290029/2) post. Once you have indexed an document in which [host] is an object (probably containing [host][name]) any event that in which [host] is text will be rejected.

---

<div class="post-metadata">

**Author:** ![John\_Murray1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/john_murray1/32/99133_2.png) [@John\_Murray1](https://discuss.elastic.co/u/John_Murray1)\
**Post date:** [May 30, 2022, 9:06am UTC](https://discuss.elastic.co/t/collectd-logstash-not-working/305632/3 "2022-05-30T09:06:51Z")

</div>

Hi Badger,  
Thanks for the assistance. I think this is indeed the case. When I set this up at the beginning, I sent beats data to logstash on port 5044, however I was seeing the data in Kibana under the collectd-\* index.  
With the way the collectd.conf file runs it creates a new index by date each day. So the next day when a new index was created, the issue was resolved.  
Thanks

---

<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:** [June 27, 2022, 9:07am UTC](https://discuss.elastic.co/t/collectd-logstash-not-working/305632/4 "2022-06-27T09:07:10Z")

</div>

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