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
Get Updates on the Splunk Community!

SOCin’ it to you at Splunk University

Splunk University is expanding its instructor-led learning portfolio with dedicated Security tracks at .conf25 ...

Credit Card Data Protection & PCI Compliance with Splunk Edge Processor

Organizations handling credit card transactions know that PCI DSS compliance is both critical and complex. The ...

Stay Connected: Your Guide to July Tech Talks, Office Hours, and Webinars!

What are Community Office Hours?Community Office Hours is an interactive 60-minute Zoom series where ...