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!

Observe and Secure All Apps with Splunk

  Join Us for Our Next Tech Talk: Observe and Secure All Apps with SplunkAs organizations continue to innovate ...

Splunk Decoded: Business Transactions vs Business IQ

It’s the morning of Black Friday, and your e-commerce site is handling 10x normal traffic. Orders are flowing, ...

Fastest way to demo Observability

I’ve been having a lot of fun learning about Kubernetes and Observability. I set myself an interesting ...