# Logstash UDP to InfluxDB

**URL:** https://discuss.elastic.co/t/logstash-udp-to-influxdb/207966
**Category:** Logstash
**Created:** [November 14, 2019, 10:39pm UTC](https://discuss.elastic.co/t/logstash-udp-to-influxdb/207966 "2019-11-14T22:39:09Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![nck8791](https://avatars.discourse-cdn.com/v4/letter/n/c4cdca/32.png) [@nck8791](https://discuss.elastic.co/u/nck8791)
#### Post date: [November 14, 2019, 10:39pm UTC](https://discuss.elastic.co/t/logstash-udp-to-influxdb/207966/1 "2019-11-14T22:39:09Z")

</div>

I am trying to push data from a UDP to InfluxDB pipeline in Logstash. The logstash configuration is as follows

# Sample Logstash configuration for creating a simple

# UDP -\> Logstash -\> InfluxDB pipeline.

input {  
udp {  
port =\> 5000  
}  
}

output {  
stdout {  
}  
influxdb {  
host =\> "0.0.0.0"  
port =\> 8086  
db =\> "legacy"  
time\_precision =\> "ms"  
flush\_size =\> 1000  
exclude\_fields =\> ["@version","host","@timestamp"]  
use\_event\_fields\_for\_data\_points =\> true  
}  
}

I tried sending the message on UDP as line protocol  
cpu\_load\_short,host=server02,region=us-west value=0.64 1434055562000000000

as well as cpu\_load\_short host=\>server02 region=\>us-west value=\>0.64 1434055562000000000

However, the event is inserted as a single large message rather than being inserted as appropriate tags or values.

select \* from logstash  
name: logstash  
time message

* * *

1573770759966000000 cpu\_load\_short host=\>server02 region=\>us-west value=\>0.64 1434055562000000000

Using the http output plugin and posting the message in line protocol works as charm.

Please advice.

---

<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: [December 12, 2019, 10:39pm UTC](https://discuss.elastic.co/t/logstash-udp-to-influxdb/207966/2 "2019-12-12T22:39:18Z")

</div>

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