Splunk Search

How does splunk handle decimal value?

yuwtennis
Communicator

Hi!

I would like to know how does splunk handle the decimal values during eval procesing.

It seems that after the eval(multiplication or division) , the number is rounded to 6digits.

So if the result is 1.123456789, it would be 1.123456.

Is there, rules in splunk for handling decimal number?

Since its crucial issue, any advice is appreciated!

Thanks,
Yu

Tags (3)
0 Karma

martin_mueller
SplunkTrust
SplunkTrust

I seem to get more than six decimals... when you run this

| stats count as foo | eval foo = 1000000.0001 | eval bar = foo / 10000000

do you get a value for bar other than 0.10000000001?

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Best Practices: Splunk auto adjust pipeline queue

When you enable autoAdjustQueue in Splunk, maxSize should be understood as the queue size Splunk starts with ...

Announcing Modern Navigation: A New Era of Splunk User Experience

We are excited to introduce the Modern Navigation feature in the Splunk Platform, available to both cloud and ...

Request for Professional Development: Attending .conf26

Winning Over the Boss: Your Pass to .conf26 conf26 is going to be here before you know it. If don't already ...