I am doing something like this:
[ignore some syntax issues]
curl ... https://..../search/jobs/export -d 'search=search index=xyz ... | table Fld1 Fld2' -d output_mode=csv
Expected output (as given to table command) is:
Fld1,Fl2
123,abc
Actual output is
Fld2,Fld1
abc ,123
Any idea why it is getting re-ordered and how can I get it in the format I want?
I ran into a similar issue... Ended up using .... | table field1 field2 | outputcsv foo.csv
and it corrected the problem.