Logstash UDP to InfluxDB

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.

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