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!

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