# Logstash-codec-json stopped working

**URL:** <https://discuss.elastic.co/t/logstash-codec-json-stopped-working/231196>\
**Category:** Logstash\
**Created:** [May 5, 2020, 4:32pm UTC](https://discuss.elastic.co/t/logstash-codec-json-stopped-working/231196 "2020-05-05T16:32:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![chrome\_test](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/chrome_test/32/67740_2.png) [@chrome\_test](https://discuss.elastic.co/u/chrome_test)\
**Post date:** [May 5, 2020, 4:32pm UTC](https://discuss.elastic.co/t/logstash-codec-json-stopped-working/231196/1 "2020-05-05T16:32:03Z")

</div>

I used logstash-codec-json plugin for a POC deployment on AWS, the related configuration is as below.

```auto
input {
    udp {
        port => "9999"
        type => "mylog"
        codec => json
        buffer_size => 65536
    }
}

output {
    amazon_es {
        hosts => ["dnsname.us-east-1.es.amazonaws.com"]
        index => "mylog-%{+YYYY.MM.dd}"
      }
}

```

It worked for a while, then stopped working w/o throwing any error.

Tcpdump shows the packet reach the udp port as configured above in proper json format.

I searched the issues on github, didn't find any clue.

> **[logstash-plugins/logstash-codec-json](https://github.com/logstash-plugins/logstash-codec-json/issues)**
>
> Contribute to logstash-plugins/logstash-codec-json development by creating an account on GitHub.

The only similar issue reported and I could find online was

> <https://github.com/docker-library/logstash/issues/57>
>
> I have logstash listening on port 9999/udp for JSON input and outputting to elasticsearch (also running in docker) via the following...

but it didn't have any valid solution.

I need some help to troubleshot this issue.

The version of the plugin is logstash-codec-json (3.0.5), and logstash version is 6.8.8.

Thanks.

Paul

---

<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 2, 2020, 4:32pm UTC](https://discuss.elastic.co/t/logstash-codec-json-stopped-working/231196/2 "2020-06-02T16:32:11Z")

</div>

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