hi everyone, i'm struggling with flag files. How d...
# general
m
hi everyone, i'm struggling with flag files. How do I script a solution to this problem? - The CLI only flag --config_plugin set via config file will be ignored, please use a flagfile or pass it to the process at startup The CLI only flag --logger_plugin set via config file will be ignored, please use a flagfile or pass it to the process at startup
s
Copy code
"options": {
    "config_plugin": "filesystem",
    "logger_plugin": "filesystem",
    "utc": "true"
},
^ those should not be passed through the config file
those are the ones that osquery is complaining about
m
So I need to remove them and place them in a seperate file?
s
yes
You can see an example in the provided link
m
so I should do something like this...
#echo "Creating flagfile" #sleep 6 #cd /var/osquery #echo $'--config_plugin=true\n--logger_plugin=true' > /var/osquery/osquery.flags
s
yeah
m
I can leave this option in the config "options": { "utc": "true" },
and do I need to just need to osqueryctl start without loading the plist?
s
The utc flag doesn’t exist anymore. You might want to run osquery with
--help
and check the current flags. It also separates them in the various categories of flags (command line flags or CLI only flags, configuration options and shell only flags)