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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...