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
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.
Get Updates on the Splunk Community!

Calling All Security Pros: Ready to Race Through Boston?

Hey Splunkers, .conf25 is heading to Boston and we’re kicking things off with something bold, competitive, and ...

Beyond Detection: How Splunk and Cisco Integrated Security Platforms Transform ...

Financial services organizations face an impossible equation: maintain 99.9% uptime for mission-critical ...

Customer success is front and center at .conf25

Hi Splunkers, If you are not able to be at .conf25 in person, you can still learn about all the latest news ...