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!

Now Available: Cisco Talos Threat Intelligence Integrations for Splunk Security Cloud ...

At .conf24, we shared that we were in the process of integrating Cisco Talos threat intelligence into Splunk ...

Preparing your Splunk Environment for OpenSSL3

The Splunk platform will transition to OpenSSL version 3 in a future release. Actions are required to prepare ...

Easily Improve Agent Saturation with the Splunk Add-on for OpenTelemetry Collector

Agent Saturation What and Whys In application performance monitoring, saturation is defined as the total load ...