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!

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...