Getting Data In

udp input json to metrics - The metric event is not properly structured

imrago
Contributor

Hi,

 

   I am ingesting json data using log2metrics_json source type into a metrics index. Everything is working fine when the json is ingested from a file, but when the json is received over udp, I am getting errors like this:

INFO MetricSchemaProcessor [665036 typing] - channel confkey=source::udp:5514|host::1.1.1.1|log2metrics_json| has an event with no measure, will be skipped.

WARN IndexProcessor [664977 indexerPipe] - The metric event is not properly structured, source=5514, sourcetype=log2metrics_json, host=1.1.1.1, index=j2m. Metric event data without a metric name and preoperly formated numerical values are invalid and cannot be indexed. Ensure the input
metric data is not malformed, have one or more keys of the form "metric_name:<metric>" (e.g..."metric_name:cpu.idle") with corresponding floating point values. raw=

 

What could be the root cause? Why is there this error when the source is udp, but works fine when read from file?

Labels (1)
Tags (2)
Get Updates on the Splunk Community!

Improve Your Security Posture

Watch NowImprove Your Security PostureCustomers are at the center of everything we do at Splunk and security ...

Maximize the Value from Microsoft Defender with Splunk

 Watch NowJoin Splunk and Sens Consulting for this Security Edition Tech TalkWho should attend:  Security ...

This Week's Community Digest - Splunk Community Happenings [6.27.22]

Get the latest news and updates from the Splunk Community here! News From Splunk Answers ✍️ Splunk Answers is ...