Knowledge Management

How to change the order of the fields reading from input look up

john
Communicator

Hi,

Iam using external python script to write resultset to a csv file.Splunk reading columns in alphabetical order.In my case i want to see a particular filed as first column in table.How i can make it.

eg MyResult.csv
s,b,k,a,h
this is the order of fields how my script writing resultset to the csv file

Splunk Reading like this order(alphabetical order):
a,b,h,k,s

I want splunk to read the same order how my script writing data ie(s,b,k,a,h
).Please guide me how to do this.

Tags (1)

Ayn
Legend

You can change the order of the fields that are returned using either the fields or the table command.

| inputlookup mylookup.csv | fields s,b,k,a,h
| inputlookup mylookup.csv | table s,b,k,a,h
Get Updates on the Splunk Community!

Updated Team Landing Page in Splunk Observability

We’re making some changes to the team landing page in Splunk Observability, based on your feedback. The ...

New! Splunk Observability Search Enhancements for Splunk APM Services/Traces and ...

Regardless of where you are in Splunk Observability, you can search for relevant APM targets including service ...

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...