Auto enroll

Auto enroll is another way to enroll agents onto NXLog Platform. It allows you to define rules that NXLog Platform can use to automatically enroll agents, provided they are already installed and configured for first contact. Auto enroll is especially useful when you run many agents with a few configurations.

NXLog Platform attempts auto enrollment whenever an unenrolled agent connects to NXLog Platform. On successful connection, NXLog Platform checks if the agent matches any of the rules. If it does, NXLog Platform enrolls the agent and applies the template specified as part of the rule, if any.

NXLog Platform triggers Auto enroll every time the agent connects to it as long as the agent is not enrolled.

The enroll-by-rules API endpoint targets all agents and matches all rules, including auto-enroll rules, unless you apply a filter. For that reason, we recommend to always exclude enrolled agents when writing auto-enroll rules.

Rule priority

NXLog Platform assigns a priority to each rule that you create. You can change the rule priorities by rearranging the list of rules.

When a new agent connects, NXLog Platform tries to find a matching rule for it, starting with the highest priority rule (number 1). If the rule doesn’t match, NXLog Platform continues to check the remaining rules down the priority order until it finds a matching rule or there are no more rules.