I'd like to write a python script to select only certain fields such as the UI does (example below) and load them into a pandas dataframe.
Yes, just use the fields command in your search string:
...|fields Action bug_id Host User
View solution in original post
Awesome, thank you so much! I wasn't able to find this in the documentation.
EDIT: is there away to get rid of the extra garbage too, I am presuming something like ...|exclude fields yada yada?
It's ... | fields - thisOne thatOne
minus removes... plus adds / technically works too if you need to add a blank field, or if you just want to be verbose
... | fields + Action bug_id Host User
is same as
... | fields Action bug_id Host User