#fleet
Hi all. Does anyone know if clients will keep runn...
d
Hi all. Does anyone know if clients will keep running their packs on whatever schedule they last got from Fleet, or if they only execute queries when they get a valid response from Fleet when they check in? Eventually we'll have an externally accessible Fleet endpoint for our corp laptops, but currently we are relying on VPN. I'm assuming that if a client can't check in, it's not going to run any queries because a failure to check-in to Fleet would also indicate that the client wouldn't be able to post the results to Fleet. Is this correct?
z
The client will continue running the same config and buffering the results until it can get them successfully to Fleet.
👍 1
d
OK, my assumption is wrong then! 🙂
Cool, will they eventually stop or just run until they run our of disk space? I know that fleet will eventually MIA them...
z
They will buffer logs until they reach
--buffered_log_max
number of logs then start dropping the oldest.
👍 1
d
Awesome
thanks
🍻 1
ya, we definitely don't set that currently
we'll have to set a reasonable value. Is there a default?
assuming bytes also...
s
The default is 1million according to https://osquery.readthedocs.io/en/stable/installation/cli-flags/. And it is the number of logs, not bytes
👍 1
1
d
Great, thanks. I was just going to ask if the default was the number listed in the docs. I wasn't sure if it was safe to assume that having a value present (in the docs) meant it was default.
@sundsta / @zwass - thanks again for your help, this is much appreciated. I just had one follow up - it looks like we are only using the tls logger plugin and not writing logs to the filesystem. I do see that the
--buffered_log_max
setting does applies to the tls logger plugin, though without local log files, I'm not sure where the client would buffer results that are only going to send via tls. can you help me understand how we set a buffer limit when just using tls logger?
z
The tls logger buffers logs in RocksDB (the same store used for osquery evented tables) and then sends the logs on interval (
logger_tls_period
). They are only cleared when they are sent successfully or overflow the max.
👍 2
d
ok, great. so it is buffered to osquery.db
so would the 1,000,000 be # of sst files?
i do have a zero byte .log in there too
z
It will be # of log lines (json objects)
🙏 1
d
awesome, thanks