Splunk Search

Is there a limit to the number of digits for a number field in a kvstore?

BernardEAI
Communicator

I have a kvstore that I am writing results of a search to. I have a field in the kvstore called ASC_IDX, and this is defined as a number. If I now write a large number (like 1647976533000037808725) to this field with outputlookup, I get the following number in the kvstore:

-9223372036854775808

This same number appears for all large number I'm trying to put into the kvstore.

Is there a limit to the number of digits for a number field in a kvstore?

Labels (1)
Tags (2)
0 Karma
1 Solution

richgalloway
SplunkTrust
SplunkTrust

That number is larger than 64 bits so I would not expect Splunk to store it properly as an integer.  Consider storing it as a string.

---
If this reply helps you, Karma would be appreciated.

View solution in original post

richgalloway
SplunkTrust
SplunkTrust

That number is larger than 64 bits so I would not expect Splunk to store it properly as an integer.  Consider storing it as a string.

---
If this reply helps you, Karma would be appreciated.
Get Updates on the Splunk Community!

Upcoming Webinar: Unmasking Insider Threats with Slunk Enterprise Security’s UEBA

Join us on Wed, Dec 10. at 10AM PST / 1PM EST for a live webinar and demo with Splunk experts! Discover how ...

.conf25 technical session recap of Observability for Gen AI: Monitoring LLM ...

If you’re unfamiliar, .conf is Splunk’s premier event where the Splunk community, customers, partners, and ...

A Season of Skills: New Splunk Courses to Light Up Your Learning Journey

There’s something special about this time of year—maybe it’s the glow of the holidays, maybe it’s the ...