OBLYTECH Logo
OBLYTECH Logo

Agent Client Collector Log Analytics: Setup and Log Policies

Agent Client Collector Log Analytics (ACC-L) streams log files from Linux and Windows hosts into a ServiceNow instance through a MID Server. You can set it up with guided setup or manually, then define log policies that choose the configuration items (CIs) and log paths to collect. This covers both setup routes, default policies, and dynamic CI groups.

Prerequisites and roles

ACC-L depends on other applications, so check these first. Health Log Analytics must be version 22.0.12 (December 2021) or later, available from the ServiceNow Store. ACC-L version 3.2.0 (August 2022) requires Agent Client Collector Framework version 2.10.1 (August 2022). Streaming logs from Windows hosts needs ACC-L version 3.1.0 or later.

Requirement What it means in practice
Event Management Set it up before ACC-L, because ACC-L has a dependency on it. See the Event Management guide.
Service Operations Workspace ITOM Apps Must be installed. Install it manually if it is missing.
MID Server IP version Set to IPv4. Health Log Analytics does not support IPv6.
Role agent_client_collector_admin, for setup, policies and child policies

Agents connect to a MID Server, and one MID Server can support several agents. Each agent works with one MID Server at a time and switches to a different one for failover. For background on the component, see the MID Server guide.

Setting up Agent Client Collector Log Analytics

Both routes finish with a data input, an installed agent and policies ready to publish. They differ in where you start and how much you decide yourself.

Aspect Guided setup Manual setup
Starting point All > Guided Setup > ITOM Guided Setup All > Agent Client Collector > Deployment > MID Servers
Scope Minimum required configuration, task by task Ports, endpoint and agent download, step by step
MID Server Can be configured inside the flow Must already exist and show Up

Guided setup steps

Select Get Started on the welcome screen, then Get Started in the Agent Client Collector Log Analytics pane. In the MID setup section, mark the MID Server complete if you already have one; otherwise configure it first. The MID Server needs the Log Ingestion capability, because streamed data cannot arrive without it. At that point the status indicator shows 64 percent complete. Open the ACC Configuration section, complete each task from its help pane, and then select Mark as Complete.

Manual setup steps

Choose a validated MID Server with status Up, then select Setup ACC Log Analytics in its related links. The setup creates an ACC data input and adds it to the ACC data inputs table. Create one data input for each MID Server that agents can reach. In the setup dialog, enter the MID Web Server Port and the ACC data input Port, then select OK. Copy the endpoint URL shown in the dialog, and copy the MID Web Server API key from All > Agent Client Collector > MID Web Server API Key. You need both when you install the agent, which you download from Agent Downloads for your operating system. For the installation steps on the agent host, see the agent installation guide.

Read access for the servicenow user

The agent’s default servicenow user must be able to read each configured log path. The base-system user cannot view /var/log/ on Linux or C:\Windows\System32 on Windows, so this is a required change. Collecting Windows Security event logs also requires that user to hold admin privileges.

Default policies and checks

The defaults cover common web servers, application servers, databases and operating system logs.

Default policy Operating system
Apache on Linux Logs Linux
Apache on Windows Logs Windows
IIS logs Windows
JBoss/WildFly application server logs Linux and Windows
Linux OS logs Linux
MSSQL logs Linux and Windows
MySQL DB logs Linux and Windows
Nginx logs Linux
Tomcat logs Linux and Windows
Oracle WebLogic logs Windows and Linux
WebSphere Application Server logs Linux
Windows OS Event Logs Windows

The file-based policies use the log shipper check, which sends logs from the server to an agent data input along the configured log path. Windows OS event logs use the log shipper for win events check instead. When access is missing or a path is wrong, the check raises an alert on the instance, so confirm the servicenow user’s permissions and the path spelling first.

On Linux, the agent reads environment variables from /etc/environment only, written in the form NAME=’VALUE’. On Windows, environment variables are created in the usual way. The WebLogic policy uses two environment variables by default. You can keep them or replace them with a known directory through Edit log path configurations.

Creating a log policy

Create a policy when no default covers the CI you need. Go to All > ACC Log Analytics > ACC Log Policies and select New. Enter a name and description. The Publish status starts as Draft and cannot be edited, and Hierarchy starts as None.

On the Checks tab, select log shipper for Linux and Windows logs, or log shipper for win events for Windows event logs. On the Monitored CIs tab, choose a monitored CI type: filter conditions, a script, or CMDB group queries. To limit collection to CIs in particular application services, enable Filter Monitored CIs by Application Service and set the service conditions.

Save the policy, then open the check instance it creates, select Edit in Sandbox, and add a log path in the Log path configurations list. Logs do not stream until a check has at least one log path.

Field Purpose
Path Full path to stream from. A wildcard is allowed. Required.
Component Device type or stack layer for context, such as Tomcat
Source Type How Health Log Analytics parses the log, such as Tomcat Catalina
multiline.pattern Regular expression for lines to join. Define it first.
multiline.match None, Before or After. Default None.
multiline.negate None, True or False. Default None.

Multiline settings control how ACC-L joins messages that span several lines of text. When the path is saved, select Return to Policy, then Publish. Select Activate when the policy should run, and then verify that the data input is streaming data.

Editing policies and creating child policies

To change a published policy, select Edit in Sandbox. The draft opens while the status stays Published. Saving shows an asterisk until you select Republish. Delete removes both the published and the draft versions, so use it deliberately.

A child policy narrows a parent to a subset of CIs or services. Select a published policy whose Hierarchy is None or Parent, then select Create Child. The child is named after the parent plus its creation timestamp, starts as Draft, and names its parent. The Order field sets priority among siblings, and a lower number means higher priority. The child inherits later changes to the parent unless you select the Disable inherit option. Because a child is more specific, when its condition matches, the parent is not tried.

How dynamic CI groups affect monitoring

By default, log policy checks monitor only CIs associated with an application service. For the wider concept, see the application service explainer. When ACC-L finds a CI with no application service, it creates a dynamic CI group, organised by an attribute such as CI type, and associates the CI with that group.

If the CI later joins a real application service, its link to the dynamic group is deleted and its baseline is lost. The system raises no alerts for that service while it builds a new baseline. To stop unassociated CIs entering dynamic groups, set the system property sn_accl.dynamic_service.creation.enabled to false. Logs then stop streaming for CIs without an application service. For server metrics alongside logs, see the operational metrics guide. For how the resulting signals connect to service context, see the service context article.

Agentless integration route

Where agents are impractical because of security requirements or host access, use the integration route. It needs a MID Server that supports the Agent Client Collector Listener, the latest Health Log Analytics release, and the evt_mgmt_admin role. In the AIOps configuration center, open Integrations, select Add integration, search for Agent Log Analytics, and complete Provide details. If prerequisites are missing, continue in draft mode and finish them later. The integration cannot be activated until they are complete. Otherwise, activate with AI, which maps log data to service instances and components automatically, or activate without AI.

Frequently asked questions

Is guided setup required?

No. Guided setup ensures you have the minimum required configuration. The same result can be reached manually, starting from a MID Server record.

Why are no logs streaming from a path?

Check that the servicenow user can read the path on the agent host and that the path is spelled correctly. On Linux, any environment variable in the path must be defined in /etc/environment. Confirm that the policy is published and that its CIs match what you expect.

What happens to a CI after it joins an application service?

Its dynamic group link is deleted and its baseline is lost. No alerts are raised for that service while the new baseline forms.

When should I create a child policy?

Create one when you need a subset of a published policy’s CIs or services, such as servers that write logs to a different location.

Can ACC-L work without an agent on each host?

Yes, through the integration route, which uses a MID Server that supports the Agent Client Collector Listener.