Getting Data In

Has anyone seen Java code that can parse and interpret Splunk time modifiers?

wegscd
Contributor

not a Splunk problem, but this community is most likely to have an answer....

I have a non-Splunk related utility we're putting together, and we need to specify start and end times. It turns out the use cases are pretty much the same as they are for Splunk time modifiers... so...

Has anyone seen Java code that can parse and interpret Splunk time modifiers?

0 Karma

mreynov_splunk
Splunk Employee
Splunk Employee

Maybe you can find something here: http://dev.splunk.com/java

0 Karma

wegscd
Contributor

I was hoping so, but the client libraries don't seem to do any parsing; it appears that they just pass them along to Splunk unchanged....

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

[Puzzles] Solve, Learn, Repeat: Matching cron expressions

This puzzle (first published here) is based on matching timestamps to cron expressions.All the timestamps ...

Why Splunk Customers Should Attend Cisco Live 2026 Las Vegas

Why Splunk Customers Should Attend Cisco Live 2026 Las Vegas     Cisco Live 2026 is almost here, and this ...

Data Management Digest – May 2026

Welcome to the May 2026 edition of Data Management Digest!   As your trusted partner in data innovation, the ...