Splunk Search

splunk java sdk returns result fields in different order than requested.

spadhi
Engager

I am using java sdk to query splunk, but i am not getting the result in the order requested.
My search query looks like : search | table _time,A,B,C,D
But the result json is C,B,D,_time,A
I am using service.oneshotSearch(searchQuery, oneshotSearchArgs);
Can you please help here.
Is it a bug with Splunk SDK?

Tags (1)

Richfez
SplunkTrust
SplunkTrust

If I may ask a few clarifying questions -

  • are the results in alphabetical order?
  • are the results in any order you can tell?
  • why is this a problem and what impact does it have?

Thanks,
Rich

0 Karma

spadhi
Engager

Anyone here to help??

0 Karma

maggarwal28
Engager

@richgalloway Can you please help?

0 Karma

richgalloway
SplunkTrust
SplunkTrust

Sorry. I don't have an answer.

---
If this reply helps you, Karma would be appreciated.
0 Karma
Get Updates on the Splunk Community!

Dashboards: Hiding charts while search is being executed and other uses for tokens

There are a couple of features of SimpleXML / Classic dashboards that can be used to enhance the user ...

Splunk Observability Cloud's AI Assistant in Action Series: Explaining Metrics and ...

This is the fourth post in the Splunk Observability Cloud’s AI Assistant in Action series that digs into how ...

Brains, Bytes, and Boston: Learn from the Best at .conf25

When you think of Boston, you might picture colonial charm, world-class universities, or even the crack of a ...