same issue as above, any solution?
I want to piggy back on this. I don't see an answer yet so I wanted to bring it back up. I run a search that only shows me the 5 fields I want, but I can find now way when I go to Actions --> Export Results... to get it to only export the 5 selected fields to the CSV file. I get at least a dozen additional fields I have to delete out to get my final output the way I want it.
You need to use the | fields command. You will also have to specifically take out the raw data and time if you want.
* | fields host, clientip | fields - _raw, _time
This will only export the host and clientip fields.
I downvoted this post because this doesnt answer the question - piping to "fields" works only in the search, not in the exported results
"| fields" limits the search results to
only the required fields, while FiledPicker controls what subset of the
fields returned by the search is presented in the GUI.
The customer definitely needs the latter - she tries to allow the end
users to have control over what fields are presented, but at the same
time export only the selected fields and not the whole lot.