Hello
I found that it uses alphabetical order regardless of any sorting of fields, or the use of the fields commands in the query.
What we do is use eval to format the output fields in a way, that we consistently know whats on the csv file. Using this:
your search ... | eval 1=host | eval 2=5 | eval 3 = description | table 1,2,3
So we are sure that we are receiving this information in the csv file:
host, severity, alert description
And using this format on every alert we create, we can be sure that the script will work as expected
Regards
... View more