# JSON -\> HTTP plugin -\> ES

**URL:** <https://community.influxdata.com/t/json-http-plugin-es/2313>\
**Category:** Telegraf\
**Created:** [September 10, 2017, 7:47am UTC](https://community.influxdata.com/t/json-http-plugin-es/2313 "2017-09-10T07:47:58Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![dolftax](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/dolftax/32/1804_2.png) [@dolftax](https://community.influxdata.com/u/dolftax)\
**Post date:** [September 10, 2017, 7:47am UTC](https://community.influxdata.com/t/json-http-plugin-es/2313/1 "2017-09-10T07:47:58Z")

</div>

Is there a way to send JSON to this plugin - [https://github.com/influxdata/telegraf/tree/master/plugins/inputs/http\_listener](https://github.com/influxdata/telegraf/tree/master/plugins/inputs/http_listener) ?

The use case is to send custom JSON from application to the plugin, instead of directly writing to ES.

---

<div class="post-metadata">

**Author:** ![daniel](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/daniel/32/142_2.png) [@daniel](https://community.influxdata.com/u/daniel)\
**Post date:** [September 12, 2017, 6:42am UTC](https://community.influxdata.com/t/json-http-plugin-es/2313/2 "2017-09-12T06:42:49Z")

</div>

No, the name of this plugin is a little misleading due to historical reasons, but it can only handle line protocol on the same paths as InfluxDB. A better name for it would be `influxdb_listener`.

---

<div class="post-metadata">

**Author:** ![dolftax](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/dolftax/32/1804_2.png) [@dolftax](https://community.influxdata.com/u/dolftax)\
**Post date:** [September 12, 2017, 7:00am UTC](https://community.influxdata.com/t/json-http-plugin-es/2313/3 "2017-09-12T07:00:24Z")

</div>

I would like to send custom application metrics to Elastic search via telegraf. What would you suggest?

---

<div class="post-metadata">

**Author:** ![daniel](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/daniel/32/142_2.png) [@daniel](https://community.influxdata.com/u/daniel)\
**Post date:** [September 12, 2017, 7:25am UTC](https://community.influxdata.com/t/json-http-plugin-es/2313/4 "2017-09-12T07:25:45Z")

</div>

I like to use the statsd input for gauges, counters, and timer like metrics. This is it is very fast for the application, non-blocking so it can be done inline, there are clients for most languages, and aggregation is handled on the Telegraf side. For event style metrics I recommend using the socket\_listener plugin using the “influx” data format.
