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!

SplunkTrust Application Period is Officially OPEN!

It's that time, folks! The application/nomination period for the 2025 SplunkTrust is officially open! If you ...

Splunk Answers Content Calendar, June Edition II

Get ready to dive into Splunk Dashboard panels this week! We'll be tackling common questions around ...

Splunk Observability Cloud's AI Assistant in Action Series: Auditing Compliance and ...

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