Jomaree Gammad
02/02/2024, 9:55 PMes_fim_enable_open_events
, but get this error.
Do I need to add it via fleetctl?Kathy Satterlee
02/02/2024, 10:00 PMJomaree Gammad
02/02/2024, 10:07 PMconfig:
options:
pack_delimiter: /
logger_tls_period: 10
distributed_plugin: tls
disable_distributed: false
logger_tls_endpoint: /api/osquery/log
distributed_interval: 10
distributed_tls_max_attempts: 3
es_fim_enable_open_events: true
decorators:
load:
- SELECT uuid AS host_uuid FROM system_info;
- SELECT hostname AS hostname FROM system_info;
command_line_flags:
disable_events: false
disable_endpointsecurity: false
disable_endpointsecurity_fim: false
Grant Bilstad
02/05/2024, 4:34 PMes_fim_enable_open_events
believe should be under command_line_flags
key.Kathy Satterlee
02/05/2024, 7:19 PMJomaree Gammad
02/05/2024, 11:03 PMJomaree Gammad
02/05/2024, 11:05 PMKathy Satterlee
02/05/2024, 11:37 PMKathy Satterlee
02/05/2024, 11:39 PMKathy Satterlee
02/05/2024, 11:40 PMKathy Satterlee
02/05/2024, 11:43 PMfleetctl get config > config.yml
2. Modify the file to include the flag in your options
3. Apply the config and skip validation
fleetctl apply -f config.yml --force
Jomaree Gammad
02/06/2024, 12:34 AMJomaree Gammad
02/06/2024, 12:49 AM➜ ~ fleetctl get config > config.yml
Warning: Version mismatch.
Client Version: 4.28.0
Server Version: 4.43.3
Jomaree Gammad
02/06/2024, 12:51 AMJomaree Gammad
02/06/2024, 1:01 AM➜ fleetdm fleetctl apply -f config.yml --force
Warning: Version mismatch.
Client Version: 4.28.0
Server Version: 4.43.3
Error: applying fleet config: PATCH /api/latest/fleet/config received status 400 Bad Request: unsupported key provided: "macos_settings"
Kathy Satterlee
02/06/2024, 2:37 PMnpm i -g fleetctl@v4.43.0
Jomaree Gammad
02/06/2024, 5:50 PM➜ fleetdm fleetctl apply -f config.yml --force
Error: applying custom settings: missing or invalid license
Kathy Satterlee
02/06/2024, 6:39 PMfleetctl
. You can try pulling it again to see if there are some fields that are missing - there were some bugs in earlier versions that included keys for Premium features when you fetched config that caused these errors when you went to apply. Or you can try fetching a fresh version of the config.Kathy Satterlee
02/06/2024, 6:40 PMJomaree Gammad
02/06/2024, 7:11 PMKathy Satterlee
02/06/2024, 7:32 PMKathy Satterlee
02/06/2024, 7:32 PMJomaree Gammad
02/06/2024, 7:32 PMJomaree Gammad
02/06/2024, 7:32 PMKathy Satterlee
02/06/2024, 7:32 PMJomaree Gammad
02/06/2024, 7:33 PMKathy Satterlee
02/06/2024, 8:02 PMscripts
key was the culprit. I'll see if I can find a ticket for this, but it does seem to be resolved in v4.44.0Jomaree Gammad
02/06/2024, 9:25 PMJomaree Gammad
02/06/2024, 10:40 PMscripts
keyKathy Satterlee
02/07/2024, 8:03 PMJomaree Gammad
02/07/2024, 8:31 PMKathy Satterlee
02/07/2024, 8:35 PMKathy Satterlee
02/07/2024, 8:36 PMJomaree Gammad
02/21/2024, 2:39 AMes_process_file_events
table.
I think it's due to where I've put the flags required for this as it isn't a command line flag. We're trying to follow this guide but unsure where to format or put the osquery flags and the file_paths flag in the config yml file.
We're still waiting on updating to 4.44.0 as we just solved our logging issue and waiting until thats fully approved and pushed.
Here are part of our config file:
apiVersion: v1
kind: config
spec:
agent_options:
command_line_flags:
disable_endpointsecurity: false
disable_endpointsecurity_fim: false
disable_events: false
es_fim_enable_open_events: true
config:
decorators:
load:
- SELECT uuid AS host_uuid FROM system_info;
- SELECT hostname AS hostname FROM system_info;
options:
disable_distributed: false
distributed_interval: 10
distributed_plugin: tls
distributed_tls_max_attempts: 3
logger_tls_endpoint: /api/osquery/log
logger_tls_period: 10
pack_delimiter: /
file_paths:
aws:
- /Users/*/.aws/*
azure:
- /Users/*/.azure/*.json
chrome:
- /Users/*/Library/Application\ Support/Google/Chrome/*/Bookmarks
- /Users/*/Library/Application\ Support/Google/Chrome/*/Cookies
- /Users/*/Library/Application\ Support/Google/Chrome/*/History
- /Users/*/Library/Application\ Support/Google/Chrome/*/Login\ Data
features:
enable_host_users: true
enable_software_inventory: true
fleet_desktop:
transparency_url: <https://fleetdm.com/transparency>
host_expiry_settings:
host_expiry_enabled: false
host_expiry_window: 0
Kathy Satterlee
02/21/2024, 4:58 PMI'll make sure we get this better documented!
config:
decorators:
load:
- SELECT uuid AS host_uuid FROM system_info;
- SELECT hostname AS hostname FROM system_info;
options:
disable_distributed: false
distributed_interval: 10
distributed_plugin: tls
distributed_tls_max_attempts: 3
logger_tls_endpoint: /api/osquery/log
logger_tls_period: 10
pack_delimiter: /
file_paths:
aws:
- /Users/*/.aws/*
azure:
- /Users/*/.azure/*.json
chrome:
- /Users/*/Library/Application\ Support/Google/Chrome/*/Bookmarks
- /Users/*/Library/Application\ Support/Google/Chrome/*/Cookies
- /Users/*/Library/Application\ Support/Google/Chrome/*/History
- /Users/*/Library/Application\ Support/Google/Chrome/*/Login\ Data
Jomaree Gammad
02/21/2024, 5:18 PMJomaree Gammad
02/21/2024, 5:42 PMdisable_endpointsecurity: false
disable_endpointsecurity_fim: false
disable_events: false
es_fim_enable_open_events: true
Kathy Satterlee
02/21/2024, 5:47 PMcommand_line_flags
or options
Kathy Satterlee
02/21/2024, 5:49 PMoptions
, command_line_flags
can only be set using fleetd.Jomaree Gammad
02/21/2024, 5:51 PMmissing or invalid license error
when applying via fleetctl
apiVersion: v1
kind: config
spec:
agent_options:
config:
decorators:
load:
- SELECT uuid AS host_uuid FROM system_info;
- SELECT hostname AS hostname FROM system_info;
options:
disable_endpointsecurity: false
disable_endpointsecurity_fim: false
disable_events: false
es_fim_enable_open_events: true
disable_distributed: false
distributed_interval: 10
distributed_plugin: tls
distributed_tls_max_attempts: 3
logger_tls_endpoint: /api/osquery/log
logger_tls_period: 10
pack_delimiter: /
file_paths:
aws:
- /Users/*/.aws/*
azure:
- /Users/*/.azure/*.json
chrome:
- /Users/*/Library/Application\ Support/Google/Chrome/*/Bookmarks
- /Users/*/Library/Application\ Support/Google/Chrome/*/Cookies
- /Users/*/Library/Application\ Support/Google/Chrome/*/History
- /Users/*/Library/Application\ Support/Google/Chrome/*/Login\ Data
Kathy Satterlee
02/21/2024, 5:52 PMscripts
key?Jomaree Gammad
02/21/2024, 5:53 PMJomaree Gammad
02/21/2024, 5:58 PMSELECT * FROM es_process_file_events;
but getting blank/empty results from the table. am i missing anything else for this to work?Kathy Satterlee
02/21/2024, 5:59 PMJomaree Gammad
02/22/2024, 5:18 PMKathy Satterlee
02/22/2024, 6:19 PMJomaree Gammad
02/22/2024, 6:20 PMSELECT * FROM es_process_file_events;
Kathy Satterlee
02/22/2024, 6:23 PMJomaree Gammad
02/23/2024, 12:57 AMSELECT * FROM es_process_file_events;
Jomaree Gammad
02/23/2024, 6:37 PMoverrides:
platforms:
darwin:
file_paths:
aws:
- /Users/*/.aws/*
azure:
- /Users/*/.azure/*.json
chrome:
- /Users/*/Library/Application\ Support/Google/Chrome/*/Bookmarks
- /Users/*/Library/Application\ Support/Google/Chrome/*/Cookies
- /Users/*/Library/Application\ Support/Google/Chrome/*/History
- /Users/*/Library/Application\ Support/Google/Chrome/*/Login\ Data
Kathy Satterlee
02/23/2024, 6:58 PMKathy Satterlee
02/23/2024, 6:58 PMosquery_flags
table to verify that the necessary flags have been applied.Kathy Satterlee
02/23/2024, 6:59 PMosquery
logs on the host to look for any errors.Jomaree Gammad
02/23/2024, 7:00 PMJomaree Gammad
02/27/2024, 5:31 PM2024-02-24T19:04:07-08:00 INF flags updates failed error="error getting flags from fleet: POST /api/fleet/orbit/config received status 502 unknown"
2024-02-24T19:04:47-08:00 INF flags updates failed error="error getting flags from fleet: POST /api/fleet/orbit/config received status 504 unknown"
2024-02-24T19:05:17-08:00 INF flags updates failed error="error getting flags from fleet: POST /api/fleet/orbit/config received status 503 unknown"
2024-02-24T19:34:40-08:00 INF flags updates failed error="error getting flags from fleet: POST /api/fleet/orbit/config: Post \"<https://fleetdm.XXXX.net/api/fleet/orbit/config>\": read tcp : read: operation timed out"
2024-02-25T16:21:27-08:00 INF flags updates failed error="error getting flags from fleet: POST /api/fleet/orbit/config: Post \"<https://XXXX.net/api/fleet/orbit/config>\": net/http: TLS handshake timeout"
2024-02-26T10:44:17-08:00 ERR interrupt for flags updater
Kathy Satterlee
02/27/2024, 8:26 PM