Billy H
01/22/2025, 6:06 PMBilly H
01/22/2025, 6:16 PMBilly H
01/22/2025, 6:17 PMRebecca Cowart
01/22/2025, 6:24 PMBilly H
01/22/2025, 6:29 PMRebecca Cowart
01/22/2025, 6:42 PMBilly H
01/22/2025, 6:51 PMRebecca Cowart
01/22/2025, 7:12 PMBilly H
01/23/2025, 3:48 PMBilly H
01/23/2025, 3:48 PMRebecca Cowart
01/23/2025, 6:15 PMBilly H
01/23/2025, 6:30 PMlogger_path
?Rebecca Cowart
01/23/2025, 6:40 PMlogger_path
tells you where your osquery result logs go.
What you're looking for are your fleetd agent logs. If you're on a Mac, you can locate and read these files by using these commands:
% sudo cat /private/var/log/orbit/orbit.stderr.log
% sudo cat /private/var/log/orbit/orbit.stdout.log
They have their own stderr
and stdout
files.Billy H
01/23/2025, 6:56 PMstderr
or stdout
. I think this issue is exclusively on the server sideBilly H
01/23/2025, 7:40 PMRebecca Cowart
01/23/2025, 7:56 PMRebecca Cowart
01/23/2025, 10:23 PMFLEET_LOGGING_JSON = "true"
FLEET_LOGGING_DEBUG = "true"
and pass them to your fleet_environment_variables
- here is what that looks like in our Fleet Terraform example: https://github.com/fleetdm/fleet/blob/main/terraform/example/main.tf#L37-L49Billy H
01/24/2025, 5:02 PMRebecca Cowart
01/27/2025, 2:25 PMBilly H
03/06/2025, 9:43 PMMarch 06, 2025 at 16:37 (UTC-5:00) {"cron":"calendar","instanceID":"pAwca9XyaedS+FS6QaIzqAyJUggz1BfEy2TaO921R9kkT8KAnmiWmUEAsTRaTdx5dycRh8YgBViYo6pKIbhniQ==","level":"info","schedule":"calendar","status":"completed","ts":"2025-03-06T21:37:09.770231044Z"}
March 06, 2025 at 16:37 (UTC-5:00) {"cron":"calendar","instanceID":"pAwca9XyaedS+FS6QaIzqAyJUggz1BfEy2TaO921R9kkT8KAnmiWmUEAsTRaTdx5dycRh8YgBViYo6pKIbhniQ==","level":"debug","msg":"4m59.22970851s remaining until next tick","schedule":"calendar","ts":"2025-03-06T21:37:09.770331267Z"}
March 06, 2025 at 16:37 (UTC-5:00) {"cron":"calendar","level":"debug","msg":"failing_hosts","team_id":12,"took":"601.643266ms","ts":"2025-03-06T21:37:09.766463288Z"}
March 06, 2025 at 16:37 (UTC-5:00) {"cron":"calendar","host_ids":"[7 60 73]","level":"debug","msg":"no example.com Google account associated with the hosts","team_id":12,"ts":"2025-03-06T21:37:09.766520243Z"}
March 06, 2025 at 16:37 (UTC-5:00) {"cron":"calendar","failing_hosts":1,"failing_hosts_without_associated_email":3,"level":"debug","msg":"summary","passing_hosts":0,"team_id":12,"ts":"2025-03-06T21:37:09.16460976Z"}
March 06, 2025 at 16:37 (UTC-5:00) {"cron":"calendar","level":"debug","msg":"passing_hosts","team_id":12,"took":"104.164µs","ts":"2025-03-06T21:37:09.164755513Z"}
March 06, 2025 at 16:37 (UTC-5:00) {"cron":"calendar","instanceID":"pAwca9XyaedS+FS6QaIzqAyJUggz1BfEy2TaO921R9kkT8KAnmiWmUEAsTRaTdx5dycRh8YgBViYo6pKIbhniQ==","jobID":"calendar_events","level":"debug","msg":"starting","schedule":"calendar","ts":"2025-03-06T21:37:09.154010081Z"}
March 06, 2025 at 16:37 (UTC-5:00) {"cron":"calendar","instanceID":"QWkZehqXw/eV19k1YD3nXZYoqVQ25Id+cLEyw6ZN1UTyDh9xaeLmZqrn1vLC0Q8IkC//Q8prbZEqy6ZndhC/PQ==","level":"debug","msg":"not the lock leader, skipping","schedule":"calendar","ts":"2025-03-06T21:37:09.15003901Z"}
March 06, 2025 at 16:37 (UTC-5:00) {"cron":"calendar","instanceID":"QWkZehqXw/eV19k1YD3nXZYoqVQ25Id+cLEyw6ZN1UTyDh9xaeLmZqrn1vLC0Q8IkC//Q8prbZEqy6ZndhC/PQ==","level":"debug","msg":"unable to acquire lock","schedule":"calendar","ts":"2025-03-06T21:37:09.150093763Z"}
March 06, 2025 at 16:37 (UTC-5:00) {"cron":"calendar","instanceID":"QWkZehqXw/eV19k1YD3nXZYoqVQ25Id+cLEyw6ZN1UTyDh9xaeLmZqrn1vLC0Q8IkC//Q8prbZEqy6ZndhC/PQ==","level":"debug","msg":"4m59.849894166s remaining until next tick","schedule":"calendar","ts":"2025-03-06T21:37:09.150113103Z"}
March 06, 2025 at 16:37 (UTC-5:00) {"cron":"calendar","instanceID":"QWkZehqXw/eV19k1YD3nXZYoqVQ25Id+cLEyw6ZN1UTyDh9xaeLmZqrn1vLC0Q8IkC//Q8prbZEqy6ZndhC/PQ==","level":"debug","msg":"done, tick received","schedule":"calendar","ts":"2025-03-06T21:37:09.140561317Z"}
March 06, 2025 at 16:37 (UTC-5:00) {"cron":"calendar","instanceID":"pAwca9XyaedS+FS6QaIzqAyJUggz1BfEy2TaO921R9kkT8KAnmiWmUEAsTRaTdx5dycRh8YgBViYo6pKIbhniQ==","level":"info","schedule":"calendar","status":"pending","ts":"2025-03-06T21:37:09.137924647Z"}
March 06, 2025 at 16:37 (UTC-5:00) {"cron":"calendar","instanceID":"pAwca9XyaedS+FS6QaIzqAyJUggz1BfEy2TaO921R9kkT8KAnmiWmUEAsTRaTdx5dycRh8YgBViYo6pKIbhniQ==","jobID":"calendar_events_cleanup","level":"debug","msg":"starting","schedule":"calendar","ts":"2025-03-06T21:37:09.13796358Z"}
March 06, 2025 at 16:37 (UTC-5:00) {"cron":"calendar","instanceID":"pAwca9XyaedS+FS6QaIzqAyJUggz1BfEy2TaO921R9kkT8KAnmiWmUEAsTRaTdx5dycRh8YgBViYo6pKIbhniQ==","level":"debug","msg":"done, tick received","schedule":"calendar","ts":"2025-03-06T21:37:09.12706511Z"}
March 06, 2025 at 16:32 (UTC-5:00) {"cron":"calendar","instanceID":"pAwca9XyaedS+FS6QaIzqAyJUggz1BfEy2TaO921R9kkT8KAnmiWmUEAsTRaTdx5dycRh8YgBViYo6pKIbhniQ==","level":"info","schedule":"calendar","status":"completed","ts":"2025-03-06T21:32:09.175765132Z"}
March 06, 2025 at 16:32 (UTC-5:00) {"cron":"calendar","instanceID":"pAwca9XyaedS+FS6QaIzqAyJUggz1BfEy2TaO921R9kkT8KAnmiWmUEAsTRaTdx5dycRh8YgBViYo6pKIbhniQ==","level":"debug","msg":"4m59.824171619s remaining until next tick","schedule":"calendar","ts":"2025-03-06T21:32:09.175865957Z"}
March 06, 2025 at 16:32 (UTC-5:00) {"cron":"calendar","level":"debug","msg":"failing_hosts","team_id":12,"took":"6.20553ms","ts":"2025-03-06T21:32:09.169928036Z"}
March 06, 2025 at 16:32 (UTC-5:00) {"cron":"calendar","host_ids":"[7 60 73]","level":"debug","msg":"no example.com Google account associated with the hosts","team_id":12,"ts":"2025-03-06T21:32:09.170088494Z"}
March 06, 2025 at 16:32 (UTC-5:00) {"cron":"calendar","failing_hosts":1,"failing_hosts_without_associated_email":3,"level":"debug","msg":"summary","passing_hosts":0,"team_id":12,"ts":"2025-03-06T21:32:09.163430537Z"}
March 06, 2025 at 16:32 (UTC-5:00) {"cron":"calendar","level":"debug","msg":"passing_hosts","team_id":12,"took":"43.37µs","ts":"2025-03-06T21:32:09.163645227Z"}
March 06, 2025 at 16:32 (UTC-5:00) {"cron":"calendar","instanceID":"pAwca9XyaedS+FS6QaIzqAyJUggz1BfEy2TaO921R9kkT8KAnmiWmUEAsTRaTdx5dycRh8YgBViYo6pKIbhniQ==","jobID":"calendar_events","level":"debug","msg":"starting","schedule":"calendar","ts":"2025-03-06T21:32:09.151412409Z"}
March 06, 2025 at 16:32 (UTC-5:00) {"cron":"calendar","instanceID":"QWkZehqXw/eV19k1YD3nXZYoqVQ25Id+cLEyw6ZN1UTyDh9xaeLmZqrn1vLC0Q8IkC//Q8prbZEqy6ZndhC/PQ==","level":"debug","msg":"not the lock leader, skipping","schedule":"calendar","ts":"2025-03-06T21:32:09.140353604Z"}
March 06, 2025 at 16:32 (UTC-5:00) {"cron":"calendar","instanceID":"QWkZehqXw/eV19k1YD3nXZYoqVQ25Id+cLEyw6ZN1UTyDh9xaeLmZqrn1vLC0Q8IkC//Q8prbZEqy6ZndhC/PQ==","level":"debug","msg":"unable to acquire lock","schedule":"calendar","ts":"2025-03-06T21:32:09.140399065Z"}
March 06, 2025 at 16:32 (UTC-5:00) {"cron":"calendar","instanceID":"QWkZehqXw/eV19k1YD3nXZYoqVQ25Id+cLEyw6ZN1UTyDh9xaeLmZqrn1vLC0Q8IkC//Q8prbZEqy6ZndhC/PQ==","level":"debug","msg":"4m59.859590633s remaining until next tick","schedule":"calendar","ts":"2025-03-06T21:32:09.140417824Z"}
March 06, 2025 at 16:32 (UTC-5:00) {"cron":"calendar","instanceID":"pAwca9XyaedS+FS6QaIzqAyJUggz1BfEy2TaO921R9kkT8KAnmiWmUEAsTRaTdx5dycRh8YgBViYo6pKIbhniQ==","level":"info","schedule":"calendar","status":"pending","ts":"2025-03-06T21:32:09.130920203Z"}
March 06, 2025 at 16:32 (UTC-5:00) {"cron":"calendar","instanceID":"pAwca9XyaedS+FS6QaIzqAyJUggz1BfEy2TaO921R9kkT8KAnmiWmUEAsTRaTdx5dycRh8YgBViYo6pKIbhniQ==","jobID":"calendar_events_cleanup","level":"debug","msg":"starting","schedule":"calendar","ts":"2025-03-06T21:32:09.130964056Z"}
March 06, 2025 at 16:32 (UTC-5:00) {"cron":"calendar","instanceID":"QWkZehqXw/eV19k1YD3nXZYoqVQ25Id+cLEyw6ZN1UTyDh9xaeLmZqrn1vLC0Q8IkC//Q8prbZEqy6ZndhC/PQ==","level":"debug","msg":"done, tick received","schedule":"calendar","ts":"2025-03-06T21:32:09.127605434Z"}
March 06, 2025 at 16:32 (UTC-5:00) {"cron":"calendar","instanceID":"pAwca9XyaedS+FS6QaIzqAyJUggz1BfEy2TaO921R9kkT8KAnmiWmUEAsTRaTdx5dycRh8YgBViYo6pKIbhniQ==","level":"debug","msg":"done, tick received","schedule":"calendar","ts":"2025-03-06T21:32:09.118714779Z"}
Yesterday when I tested, the script never ran. Today when I test the script ran from the calendar event but only 7 minutes after the event started. Usually it starts within the first 30 seconds.
Seeing some odd errors in the logs here, namely: no <http://example.com|example.com> Google account associated with the hosts
Unthread
03/07/2025, 2:55 PMBilly H
03/07/2025, 2:57 PMBilly H
03/07/2025, 7:54 PMBrock Walters
03/11/2025, 3:59 PMBilly H
03/11/2025, 4:11 PMUnthread
03/11/2025, 6:44 PMUnthread
03/17/2025, 6:08 PMBilly H
03/17/2025, 6:09 PMBilly H
03/18/2025, 8:40 PMRebecca Cowart
03/19/2025, 5:48 PMRebecca Cowart
03/19/2025, 5:52 PMBilly H
03/19/2025, 5:59 PMBilly H
03/19/2025, 6:00 PMBilly H
03/19/2025, 6:01 PMRebecca Cowart
03/19/2025, 8:35 PMBilly H
03/19/2025, 9:32 PMBilly H
03/19/2025, 9:32 PMRebecca Cowart
03/20/2025, 12:54 PMSELECT 1 WHERE 1=2
) with the immediate implementation of the Google Calendar integration, before any hosts have a chance to fail it. Adding on an integration does not reset the host's pass/fail state for that policy.