Determine NXLog Agent Health Status
Tags:
#1
casey1234
Hi,
We are planning to deploy NXLog to thousands of endpoints and need to know when an agent is no longer sending data regularly.
Is there an established method for determining NXLog is working normally at scale?
Thanks!
#1
casey1234
Hi,
We are planning to deploy NXLog to thousands of endpoints and need to know when an agent is no longer sending data regularly.
Is there an established method for determining NXLog is working normally at scale?
Thanks!
Hey!
You can use statistical counters to help see this.
Check out the [Detecting a Dead Agent or Log Source](https://nxlog.co/documentation/nxlog-user-guide/detecting-dead-agents.html) chapter in the manual.
Basically it is this config:
```
Module im_tcp
Port 2345
create_stat("msgrate", "RATE", 3600);
add_stat("msgrate", 1);
Every 3600 sec
create_stat("msgrate", "RATE", 10);
add_stat("msgrate", 0);
if defined get_stat("msgrate") and get_stat("msgrate")