All Apps and Add-ons

How to do a checkpoint value workaround for using epoch time including milliseconds?

caltechsplunk
Engager

Greetings,

So I want to use Epoch time including milliseconds for my rising column checkpoint value as it is a very busy Oracle database and the instructions mention that if you don't, you might lose some data, and seeing as there are many entries per second milliseconds are necessary; however given the example value below as the checkpoint value I receive the following java error

1531262688.10896
java.lang.NumberFormatException: For input string: ".1"
But if the value is 1531262688 everything is fine and works as it should

Is there a workaround anyone knows of so that a float can be used, not just an integer. Not sure why it is called an input string when it is supposed to be a numerical value but I suppose that is beside the point.

Thanks in advance to anyone who knows of a solution.

0 Karma
1 Solution

caltechsplunk
Engager

If there is no simple answer for this then I realized I can modify the query to make the value and integer

i.e.

SELECT regexp_replace(EPOCH,'\.','') as MOD_EP
FROM
(SELECT...
)
w00t!

View solution in original post

0 Karma

caltechsplunk
Engager

If there is no simple answer for this then I realized I can modify the query to make the value and integer

i.e.

SELECT regexp_replace(EPOCH,'\.','') as MOD_EP
FROM
(SELECT...
)
w00t!

0 Karma
Get Updates on the Splunk Community!

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...

.conf24 | Personalize your .conf experience with Learning Paths!

Personalize your .conf24 Experience Learning paths allow you to level up your skill sets and dive deeper ...

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...