Has anyone worked on specific SQL to ensure a quer...
# general
i
Has anyone worked on specific SQL to ensure a query only runs once? I know this could be accomplished with "ad-hoc" queries but maybe a normal query in the schedule with conditions on
last_executed
from the
osquery_schedule
table
s
I’m curious, what’s the use case for this?
t
Is there a reason ad-hoc queries are not a good fit? I think they were designed exactly for this purpose.
i
Mostly we don't have ad-hoc queries deployed across our fleet. It would require updating flags on 100s of 1000s of hosts.
d
Can you give an example of a query that you would want to only run once in this way?
i
a one time collection of shell history files
as an example
s
If you have deployed to hundreds or thousands of hosts, I would imagine the deployment is automated so adding an extra flag would be easy
i
Adding config - from a server - is easy, adding a flag in the flags file is more complex.
oh wait...
disable_distributed
doesn't need to come from the flags file but can be server config
um... nvm
thanks for talking me thought that @defensivedepth & @sundsta
👍 1