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
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!

Tech Talk Recap | Mastering Threat Hunting

Mastering Threat HuntingDive into the world of threat hunting, exploring the key differences between ...

Observability for AI Applications: Troubleshooting Latency

If you’re working with proprietary company data, you’re probably going to have a locally hosted LLM or many ...

Splunk AI Assistant for SPL vs. ChatGPT: Which One is Better?

In the age of AI, every tool promises to make our lives easier. From summarizing content to writing code, ...