manoj guglani
10/09/2024, 5:33 PMRebecca Cowart
10/09/2024, 8:50 PM--disable_tables=table_name1,table_name2
flag that can be used that allows osquery to be launched without certain tables.
https://osquery.readthedocs.io/en/latest/installation/cli-flags/manoj guglani
10/09/2024, 9:05 PMmanoj guglani
10/10/2024, 1:38 AMError: applying fleet config: PATCH /api/latest/fleet/config received status 400 Bad Request: unsupported key provided: "disable_tables"
Here is my yaml file:
apiVersion: v1
kind: config
spec:
agent_options:
overrides:
platforms:
darwin:
options:
disable_tables: chrome_extensions
Rebecca Cowart
10/10/2024, 1:38 PM--force
flag to update agent options even if they are "invalid." The syntax of your yaml file looks correct to me.manoj guglani
10/10/2024, 4:29 PM--force
flag worked but the chrome_extensions data is still being collected. ./fleetctl api -X GET /api/v1/fleet/config
"agent_options": {
"overrides": {
"platforms": {
"macos": {
"options": {
"disable_tables": "chrome_extensions",
"distributed_interval": 10
}
}
}
}
},
I deleted and added the host back just to ensure there is no stale data.Rebecca Cowart
10/10/2024, 4:37 PMmanoj guglani
10/10/2024, 5:26 PMmanoj guglani
10/10/2024, 7:38 PMRebecca Cowart
10/10/2024, 7:45 PMmanoj guglani
10/10/2024, 8:29 PMRebecca Cowart
10/10/2024, 9:31 PMmanoj guglani
10/10/2024, 9:38 PMRebecca Cowart
10/11/2024, 6:33 PMmanoj guglani
10/11/2024, 6:58 PMSELECT path, username, description FROM file CROSS JOIN users USING(uid) WHERE path = '/dev/console';
to run everyday.
I deleted the host from server and I cleaned up fleetd on host using sudo ./orbit/tools/cleanup/cleanup_macos.sh
. When I add the host back the added query comes back. I was expecting that I would have to add the query back again since the host was cleaned up. Is the per host config being saved in RDS?Rebecca Cowart
10/11/2024, 7:34 PM--disable_tables
flag is command-line only! It can be implemented in your flagfile or via fleetd. Sorry for the issue, and thank you for bringing this to our attention!manoj guglani
10/11/2024, 7:50 PMRebecca Cowart
10/11/2024, 8:11 PMcommand_line_flags
key, and beneath that key, you can add your command-line specific flags, such as disable_tables
.Rebecca Cowart
10/11/2024, 8:11 PM