Splunk Dev

Ordering of results from Java SDK export search

dmr195
Communicator

According to http://dev.splunk.com/view/splunk-java-sdk-how-to/SP-CAAAEHQ "export" searches in the Java SDK return results in the opposite order to most Splunk searches:

  • Export: An export search is another type of search operation that runs immediately, does not create a job for the search, and starts streaming results immediately. Results are returned in reverse order from other searches―from the oldest results to the newest.

As far as I can see, that last sentence of this bullet point in the documentation is completely wrong. When I run an "export" search using the Java SDK the newest events are returned first. This is reproducible using the example program that comes with the SDK (described at http://dev.splunk.com/view/SP-CAAAEFF#export).

It would be brilliant if there was a way to export events in ascending time order using the SDK. Has anyone managed to do this?

Tags (3)
1 Solution

Neeraj_Luthra
Splunk Employee
Splunk Employee

You are right. This seems to be a defect in our documentation. We will get it corrected soon.

Thanks for bringing this to our attention.

View solution in original post

0 Karma

Neeraj_Luthra
Splunk Employee
Splunk Employee

You are right. This seems to be a defect in our documentation. We will get it corrected soon.

Thanks for bringing this to our attention.

0 Karma
Get Updates on the Splunk Community!

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...

.conf24 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...