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:
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?
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.
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.