Dashboards & Visualizations

How to rearrange columns in the .csv that is created via outputlookup command?

naveenalagu
Explorer

Hi,

As the query states, I have a stats command that gives me a table with all the required columns. While viewing the stats during search, using table command I am able to reorder the columns to the desired view. However, when I write the output to a csv using outputlookup, the columns get re arranged in alphabetical order of their names. Is there any way we can override this?

Thanks for the help!

Labels (2)
0 Karma
Get Updates on the Splunk Community!

Splunk Enterprise Security(ES) 7.3 is approaching the end of support. Get ready for ...

Hi friends!    At Splunk, your product success is our top priority. With Enterprise Security (ES), we're here ...

Splunk Enterprise Security 8.x: The Essential Upgrade for Threat Detection, ...

Watch On Demand the Tech Talk, and empower your SOC to reach new heights! Duration: 1 hour  Prepare to ...

Splunk Observability for AI

Don’t miss out on an exciting Tech Talk on Splunk Observability for AI!Discover how Splunk’s agentic AI ...