Nafees Mushtaq
07/19/2024, 4:00 PMStefano Bonicatti
07/19/2024, 4:21 PMconfig_path
path which are causing issues with the CLI (you can also see that osquery reports an error in reading the config path, since they do not correctly escape the space in the path). Change them to double quotes.
Furthermore though, windows_events
is an event based table. Events are collected while osquery is running, it's not querying some OS event store, so here the window you have to collect them is very small because that command launches osquery, executes the query to osquery local DB for events immediately, and then closes.
That mode of operation would make more sense against windows_eventlog
which instead queries the event log that Windows keeps.