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!

New in Observability - Improvements to Custom Metrics SLOs, Log Observer Connect & ...

The latest enhancements to the Splunk observability portfolio deliver improved SLO management accuracy, better ...

Improve Data Pipelines Using Splunk Data Management

  Register Now   This Tech Talk will explore the pipeline management offerings Edge Processor and Ingest ...

3-2-1 Go! How Fast Can You Debug Microservices with Observability Cloud?

Register Join this Tech Talk to learn how unique features like Service Centric Views, Tag Spotlight, and ...