Ortal Kombat
01/26/2025, 2:16 PM/api/v1/osquery/distributed/read
to check-in for distributed queries, and sends the results as a POST request to /api/v1/osquery/distributed/write
.
I'm running my agent with --verbose
and --tls_dump
, to see the communication.
I see a 'read' request and the received query to execute, then I see the 'write' request with the query's final results,
but the weird part is that the next time the agent sends a 'read' request it gets the same query, as if it never returned it's results (sometimes it happens more than twice).
Can someone please help? I have no clue what's wrong, and I didn't change any configuration (it just started happening today)🙏Kathy Satterlee
01/27/2025, 2:22 PMOrtal Kombat
01/29/2025, 8:49 AMdistributed_interval
was set to 10. When the agent got a query, it executed it right away and sent the results to /api/v1/osquery/distributed/write
, but my Fleet server got it more than 10 seconds after, so the agent got the same query again because Fleet got the results only after the second time the agent queried /api/v1/osquery/distributed/read
.
I have a lot of agents (around 8000), and I think Fleet got the result too late because of high loads. Is there any way to disable some functions and queries from being executed regularly?
For example I saw that when the agent sends a report about all the software on the machine it sends a HUGE JSON to Fleet (and from 8000 hosts it probably causes a lot of traffic).
I also increased the distributed_interval
to 120, but the problem still occurs sometimes. Thanks!Unthread
01/29/2025, 11:24 PMOrtal Kombat
01/30/2025, 1:07 PMKathy Satterlee
01/30/2025, 3:24 PM