# Influxdb output plugin - logstash

**URL:** https://discuss.elastic.co/t/influxdb-output-plugin-logstash/71415
**Category:** Logstash
**Created:** [January 12, 2017, 5:42pm UTC](https://discuss.elastic.co/t/influxdb-output-plugin-logstash/71415 "2017-01-12T17:42:31Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![letshelp](https://avatars.discourse-cdn.com/v4/letter/l/f05b48/32.png) [@letshelp](https://discuss.elastic.co/u/letshelp)
#### Post date: [January 12, 2017, 5:42pm UTC](https://discuss.elastic.co/t/influxdb-output-plugin-logstash/71415/1 "2017-01-12T17:42:31Z")

</div>

Current plugin let us store data points which is great. But we have two separate JSON one for tags and other with fields after filter process.

tag json:  
{  
"app": "a1",  
"host": "h1",  
"backend": "b1"  
}  
field json:  
{  
"mem": 11,  
"custom\_counter": 22,  
"custom\_gauge": 33  
}

These json payload can have different number of elements in it. Is there any way we can have something like below?

influxdb {  
data\_tags =\> %{tags\_json}  
data\_fields =\> %{fields\_json}  
host =\> ...  
}

-J

---

<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 9, 2017, 5:42pm UTC](https://discuss.elastic.co/t/influxdb-output-plugin-logstash/71415/2 "2017-02-09T17:42:49Z")

</div>

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