Osquery not giving JSON or CSV output in a window I have tried these, but unable to produce CSV or JSON output.
osquery> --csv select * from time;
osquery> --json select * from time;
osquery> --csv 'select * from time';
osquery> select * from time --CSV;
osquery> 'select * from time' --CSV;
It looks like you already started
osqueryi
in shell mode, so it is not parsing the flag you are trying to pass.What you are looking for is probably (from your cmd.exe shell):
Your other option is to set the "output mode" while in the
osqueryi
shell:I am not sure why, but JSON is not supported as a format with the
.mode
command.