Schedule a query against the `osquery_schedule` ta...
# general
z
Schedule a query against the
osquery_schedule
table to get some information about the queries executing.
👍 1
c
Since all of our queries are running under osqueryd, and I run this query using osqueryi....does that explain why I have all "0" for the "execution" and "last_executed" columns?
z
Yes
c
Thanks @zwass! Using this method I have discovered that of the ~100 queries we have in 3 custom packs, only one of those packs is getting executed (and of those ~25 or so queries, only 5-6 of them are running). I have checked the config 'sanity' for each pack using the tools listed here: https://osquery.readthedocs.io/en/stable/deployment/debugging/
Is there upper limit to how many queries can be run? Or have I simply designed a condition that makes queries compete for resources by scheduling them too frequently (600 seconds)?
z
Can you share your config? Do you have a platform or discovery query set on the pack that is preventing it from executing?
c
No discovery queries. See attached for the osquery.conf and all active packs.
z
Which work/don't work?
c
The majority of them don't appear to be running (see attached)
This is a test enviroment btw
z
can you tell me which pack is executing and which are not?
c
I can't be certain, but it looks like "SYN_threat_hunting1" and "SYN_threat_hunting2" never execute. Also, the majority of the other "windows_attacks" and "windows_hardening" don't execute, just a few from each of those are found in the logs.