Splunk Search

Using a "numeric" type rather than a "string" type is recommended to avoid indexing inefficiencies.

kranthimutyala
Path Finder

got this error on the search head, Please help us to resolve this .Thanks

Search peer xxxxxx has the following
message: The metric
value=0.00003393234971117585 provided
for
source=/opt/splunkforwarder/var/log/splunk/metrics.log,
sourcetype=splunk_metrics_log,
host=xxxxx, index=_metrics is not a
floating point value. Using a
"numeric" type rather than a "string"
type is recommended to avoid indexing
inefficiencies. Ensure the metric
value is provided as a floating point
number and not as a string. For
instance, provide 123.001 rather than
"123.001"

0 Karma

DalJeanis
Legend

Splunk is telling you that somehow that metric is being created as a string rather than a number.

You may be able to simply use a conversion like this immediately before the mcollect command.

| eval foo = tonumber(foo) 

If that does not work, then please provide the portion of the search that creates the metric that holds that particular value.

0 Karma

kranthimutyala
Path Finder

@daljeanis Thanks for the reply.But Im not sure which search is causing this problem.I verified all the searches which has metrics term used but none of them have index=_metrics .Do you have any idea where those are available.

0 Karma
Get Updates on the Splunk Community!

Observe and Secure All Apps with Splunk

  Join Us for Our Next Tech Talk: Observe and Secure All Apps with SplunkAs organizations continue to innovate ...

Splunk Decoded: Business Transactions vs Business IQ

It’s the morning of Black Friday, and your e-commerce site is handling 10x normal traffic. Orders are flowing, ...

Fastest way to demo Observability

I’ve been having a lot of fun learning about Kubernetes and Observability. I set myself an interesting ...