Unable to receive events in lovebeat when sent from statsd

HI
I'm unable to receive events in lovebeat when sent from statsd while I can receive them in elasticsearch.

The logstash output configuration is as follows :
output {
elasticsearch {
hosts => ["localhost:9200"]
index => "syslog-demo"
}
statsd {
host => "127.0.0.1"
namespace => "logstash"
port => "8127"
count => {
"http.bytes.beat" => "1"
}
}
stdout {
codec => rubydebug
}
}
I have lovebeat running at localhost and 8127 port.

2019/06/19 23:15:33 INFO Starting your browser with http://localhost:8080 - the Lovebeat Web UI.
2019/06/19 23:15:33 INFO UDP listening on :8127
2019/06/19 23:15:33 INFO TCP listening on :8127
2019/06/19 23:15:33 INFO HTTP listening on :8080

I read Monitor inactivity in log files but it did not help.

Notice that I ran successfully the following command , which makes me think that Lovebeat is running well. The metric is well displayed in the Lovebeat Web UI.
echo "invoice.mailer.beat:1|c" | nc -4u -w0 localhost 8127

I'm now stuck . Any clue ?
Many thanks

After a lot of digging , here the result

The following works (the lovebeat server accepts the metric)
echo "a.b.c.beat:1|c" | nc -4u -w0 localhost 8127
The following fails (the lovebeat server refuses the metric)
echo "a.b.C.beat:1|c" | nc -4u -w0 localhost 8127
My understanding is that the metric name should not have uppercase characters.

As stated in the statsd documentation, The host name is the first element of the metric name, and unfortunately, my host name has uppercase characters.
I use now the sender property to avoid this naming problem and it works.

statsd {
host => "127.0.0.1"
sender => "myservername"
namespace => "logstash"
port => "8127"
count => {
"http.bytes.beat" => "1"
}
}

Hope this helps others.

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