Splunk Search

Fetching logs via Splunk SDK on index time and event time simultaneously

pcnitk
New Member

Hi Team,

We are currently extracting logs from Splunk via Splunk SDK based on index time. We have been seeing issues with some logs which are getting indexed on current time but belong to last month and would like to filter it from result. 

Splunk SDK JobExportArgs object:

JobExportArgs jobArgs = new JobExportArgs();
jobArgs.setIndexEarliest("2020-09-29T01:00:00");
jobArgs.setIndexLatest("2020-09-29T02:00:00");

Ask is to extract events based on index time but also where event time for the events is >=24 hrs (example).

Does Splunk SDK support this feature?

Thanks

Labels (1)
0 Karma

pcnitk
New Member

@xavierashe Can you please advise here?

Thanks

Tags (2)
0 Karma
Get Updates on the Splunk Community!

Developer Spotlight with William Searle

The Splunk Guy: A Developer’s Path from Web to Cloud William is a Splunk Professional Services Consultant with ...

Major Splunk Upgrade – Prepare your Environment for Splunk 10 Now!

Attention App Developers: Test Your Apps with the Splunk 10.0 Beta and Ensure Compatibility Before the ...

Stay Connected: Your Guide to June Tech Talks, Office Hours, and Webinars!

What are Community Office Hours?Community Office Hours is an interactive 60-minute Zoom series where ...