Title
#fleet
Mystery Incorporated

Mystery Incorporated

08/01/2021, 11:16 AM
When it says last fetched for each osqueryd agent, is that the value of osquery_detail_update_interval ? I notice that osquery_detail_update_interval is defaulted to 1hr, when I set it to
osquery_detail_update_interval: 25m
the refetch rate doesn't seem to change is that expected or not? it's not clear.
zwass

zwass

08/01/2021, 8:05 PM
Last fetched is based on when the queries were actually last run. The update interval is how often they should run.
Mystery Incorporated

Mystery Incorporated

08/02/2021, 3:25 AM
@zwass do you mean on demand queries? So I shouldn't see a refetch unless I run an on demand query is that right?
zwass

zwass

08/02/2021, 3:17 PM
No. The host "vitals" are retrieved via the same mechanism that live queries use, but they are initiated automatically by the Fleet server any time the vitals are older than the configured interval.
Mystery Incorporated

Mystery Incorporated

08/06/2021, 4:26 AM
@zwass hmm ok what is the setting for the interval might I ask? Because my live query interval is 90 seconds and I have hosts not being refreshed for at least an hour, and my config_refresh interval is 25 minutes
4:27 AM
logger_plugin: tls
        config_refresh: 90
        pack_delimiter: /
        logger_tls_period: 5
        distributed_plugin: tls
        disable_distributed: false
        logger_tls_endpoint: /api/v1/osquery/log
        distributed_interval: 95
        distributed_tls_max_attempts: 5
        osquery_detail_update_interval: 25m
4:27 AM
^ This is my current config and I am seeing hosts saying last checked in an hour ago
4:29 AM
@zwass I would have thought osquery_detail_update_interval was the one with which osquery would check in with refetched details?
zwass

zwass

08/06/2021, 3:18 PM
distributed_interval
is a flag on osquery. It's how often osquery will make a distributed query request to Fleet.
osquery_detail_update_interval
is a flag on Fleet. It's how often Fleet will respond to a distributed query request with the detail queries. Does this help clear things up?
Mystery Incorporated

Mystery Incorporated

08/07/2021, 6:52 AM
@zwass actually I think I understand what you mean, osquery_detail_update_interval tells osqueryd on the next distributed query checkin to reply with the details? That is what you mean right? Yes I see I found it on the old kolide doco with google https://github.com/kolide/fleet/blob/master/docs/infrastructure/configuring-the-fleet-binary.md
6:53 AM
What does --osquery_label_update_interval do??? What is a label query I never even heard of such a thing?
1:38 PM
Ok yes I see that it is refetching in ~25m intervals now
1:38 PM
Still don't know what a label query is lol
Mystery Incorporated

Mystery Incorporated

08/09/2021, 1:15 AM
Heh yea just seems unfortunate that Google takes the old doco as canonical and doesn't seem to update paths with the new doco. I guess I could and should search the repo directly. But I still don't know what a label query is 😕
1:30 AM
Ah I see now, I was completely missing the label button in Fleet UI. I see, it groups hosts into a label using a query result. Got it.