SAM Background Policy (with osqueryd), what is it doing?

Tone1
Tera Contributor

Hello,

 

can someone tell me what the SAM Background Policy (with osqueryd) is really doing?

 

as far as i understand it only writes the marker.json file, so why is it scheduled every 5 minutes?

 

Would it be enough to schedule it once a day if the snapshot log is large enough?

 

Greetings

 

  • o
2 REPLIES 2

Rafael Batistot
Kilo Patron

Hi @Tone1 

 

The SAM Background Policy (with osqueryd) is basically a heartbeat.

 

  • It creates the marker.json and checks in with ServiceNow so the platform knows the agent is alive.
  • That’s why it runs every 5 minutes — it’s about liveness, not heavy data collection.
  • You should not reduce it to once a day, even if snapshot logs are large, because then ServiceNow would think the agent is stale/offline for 24h.

Keep the background policy at 5 minutes, but you can tune the snapshot policies (daily, weekly, etc.) to control log size.

 

Are you sure about this?

 

The ACC has a 60 seconds keepalive anyway where it communicates with the MID, this has nothing to do with the SAM Background Policy. As far as i can see the sam background policy does not even generate any ECC queue at all and does not communicate with the MID.