Splunk Search

Buffer overflow for field?

yuwtennis
Communicator

Hi !

I would like to know if there are any restricted size value for fields.

I have tried to create a fields consisting

24 0's and 1
10000000000000000000000000

result was

10000000000000000905969664

It seems like a bufferover flow or something.

Any help is appreciated!

Thanks,
Yu

Tags (2)

dmr195
Communicator

I don't work for Splunk, so can't answer this with 100% certainty, but the fact that the first 15 digits are fine and the last 9 are random suggests that internally Splunk is storing numeric field values as IEEE double precision floating point values, which have 15 digits of accuracy.

Splunk doesn't corrupt text fields that are longer than 15 characters, so one workaround would be to put a letter at the beginning of your 1s and 0s so that the overall field is text rather than numeric. Presumably you're testing individual bits to see if they're 0 or 1 using substr() or similar, so you could still do this if there was a letter at the beginning of the field.

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!

Keep the Learning Going with the New Best of .conf Hub

Hello Splunkers, With .conf26 getting closer, there’s already a lot of excitement building around this year’s ...

Splunk Community Badges!

  Hey everyone! Ready to earn some serious bragging rights in the community? Along with our existing badges ...

How to find the worst searches in your Splunk environment and how to fix them

Everyone knows Splunk is a powerful platform for running searches and doing data analytics. Your ...