Install Agent-Side Components
On this page:
- Prepare to Enable the Agents
- Install the Standalone Analytics Agent on Windows
- Install the Standalone Analytics Agent on Linux
- Enable the Standalone Analytics Agent
- Enable the Analytics Agent as an Extension to the Machine Agent
- Tune Analytics Agent
- Additional Configurations
- Configure TLS for Agent Connections to Controller and Event Service
- Troubleshooting Tips
In most Application Analytics deployment scenarios, you must enable the Analytics Agent-side components. The agents are distributed as system-based operations or standalone bundles in the Downloads Portal.
If your app server agent supports Agentless Analytics, such as the Java Agent (21.2 and later) and .NET Agent (20.10 and later), you do not need to install the standalone Analytics Agent or Machine Agent extension for Transaction Analytics data collection. See Deploy Analytics Without the Analytics Agent for more information.
Prepare to Enable the Agents
Review the deployment options, agent-side component architecture, and components you will need to install in Deploy Analytics With the Analytics Agent.
Analytics Agent
The Analytics Agent collects and sends data from the Splunk AppDynamics App Agent and log files to the Events Service. The Analytics Agent is not enabled by default. You need to download and enable the desired bundle using a method of your choice.
debug/grok
endpoint is disabled by default. To enable the endpoint, start the Analytics Agent with the property ad.debug.grok.endpoint.enabled=true
in agent.properties
file.To use Application Analytics:
- Obtain a separate Application Analytics license.
- Enable the Analytics Agent.
- Point to the Event Service. See Revise the Analytics Agent Properties File for agent-specific configuration and Event Service Deployment for the Event Service.
- Enable Analytics on the Controller.
Splunk AppDynamics App Agent
To access Analytics and collect transaction data from an application, you must deploy a supported app server agent version in all environments, such as the Node.js Agent or the PHP Agent. If you already use Splunk AppDynamics APM, agents may already be installed in your environment.
Install the Standalone Analytics Agent on Windows
As described in Analytics Deployment Options, the Analytics Agent can run on the same host or on a different host from the app server agent, depending on your use case.
The Downloads Portal provides the following distribution archives:
- Standalone Analytics Agent (no JRE)
- Analytics Agent with JRE 1.8 for both 32-bit and 64-bit Windows machines
icacls . /inheritance:r /grant Users:(OI)(CI)RX /grant Administrators:(OI)(CI)F
Revise the Analytics Agent Properties File
Modify the default configuration and set the desired values for the agent properties in the properties file. The location of this file depends on your exact deployment scenario.
Start and Stop the Analytics Agent
To start/stop the Analytics Agent on Windows, run the following commands in the Windows Services menu.
To start the agent, run:
bin\analytics-agent.exe service-start
To stop the agent, run:
bin\analytics-agent.exe service-stop
Uninstall the Analytics Agent
To uninstall the Analytics Agent, run the .exe uninstall
bin\analytics-agent.exe service-uninstall
Enable Analytics Agent for a Local App Server Agent
This section assumes that you are installing the Analytics Agent on the same host as your app server agent.
In this deployment, the Analytics Agent reads and transmits log data in log files from the local machine. The app server agent transmits data from the monitored application to the Analytics Agent.
Analytics Agent with the .exe
and analytics-agent.exe
files found in the <analytics-agent-home>/bin
directory. Because the Analytics Agent is written in Java, you will run the agent in a Java Virtual Machine (JVM). The Analytics Agent runs as a Windows service.
Enable the App Server Agent for a Remote Analytics Agent
To specify the location of the remote Analytics Agent with an environment variable named appdynamics.analytics.agent.url
on Windows:
Install the Standalone Analytics Agent on Linux
As described in Analytics Deployment Options, the Analytics Agent can run on the same host or on a different host from the app server agent, depending on your use case.
The Downloads Portal provides the following distribution archives:
- Standalone Analytics Agent (no JRE)
The default settings of the app server agent typically assume that the Analytics Agent is on the same host and uses the default port. If your Analytics Agent is on a host separate from the app server agent, as shown in the diagram below, or you have changed the default port, you need to specify the new host and port values for the app server agent.
Revise the Analytics Agent Properties File
The Analytics Agent properties file determine how your Analytics Agent communicate with other components, what type of data it gathers from the monitored application, and how the components of the Application Analytics deployment and the Controller authenticate to each other.
Modify the default configuration and set the desired values for the agent properties in the properties file. The location of this file depends on your exact deployment scenario.
- Open the
<analytics-agent-home>/conf/analytics-agent.properties
file with a text editor. - Follow the instructions to enable the standalone Analytics Agent.
Start and Stop the Analytics Agent
You can start and stop the Analytics Agent directly in the command line.
To start the agent, run:
<analytics agent executable> start
To stop the agent, run:
<analytics agent executable> stop
Run the Analytics Agent From a Read-Only Filesystem
In this deployment, the Analytics Agent is installed and run from a read-only filesystem. To do so, you need to direct the Analytics Agent to write its log files to a writable partition.
By creating a directory for the Analytics Agent in a writable file system and symlinks for the content of the Analytics Agent in the read-only file system, you will have a writable top-level directory for the Analytics Agent and a writable logs directory under the top-level directory.
To run the Analytics Agent from a separate writable directory using artifacts from a read-only directory:
Enable the App Server Agent for a Remote Analytics Agent
For most configurations, install the Analytics Agent on the same machine as the app server agent. In certain setups, such as installing an Analytics Agent extension, you will need a separate machine.
Enable the Standalone Analytics Agent
In this deployment, the Analytics Agent and app server agent runs on the same machine. The Analytics Agent reads and transmits log data from log files on the host machine. The app server agent transmits data from the monitored application to the Analytics Agent.
For environments that do not have a Machine Agent installed, install the Analytics Agent as a separate binary, analytics-agent.sh
.
Enable the Analytics Agent as an Extension to the Machine Agent
This section describes how to configure the Analytics Agent as an extension to the Machine Agent and run as a Machine Agent monitor.
The Downloads Portal provides the following distribution archives:
- Machine Agent Bundle - 64-bit osx (zip)
- Machine Agent Bundle - for both 32-bit and 64-bit Linux machines (rpm)
- Machine Agent Bundle - for both 32-bit and 64-bit Linux machines (zip)
- Machine Agent Bundle - for 64-bit solaris (zip)
- Machine Agent Bundle - for 64-bit solaris-sparcv9 (zip)
- Machine Agent Bundle - for 64-bit solaris-x64 (zip)
- Machine Agent Bundle - for both 32-bit and 64-bit Windows machines (zip)
If the Machine Agent and app server agent are running on the same machine, installing a standalone Analytics Agent is not necessary. In environments with the Machine Agent already running, you can enable and run the Analytics Agent as an extension.
Confirm that JRE 8 or later is installed on the host running the Machine Agent. If the required version of JRE is not available on the host, then the Analytics Agent cannot be enabled.
Tune Analytics Agent
This section describes the post-installation configuration of the Analytics Agent: configuring Analytics Agent to connect to an Event Service with a proxy server, collecting log files using Consolidated Log Management (CLM), setting resource usage limit, and changing JVM options.
Connect to the Events Service through a Proxy
If the Analytics Agent needs to connect to the Events Service through a proxy server:
Configure Analytics Agent for Consolidated Log Management
If you want your Analytics Agent to work with CLM you need to configure a few properties in the Analytics Agent properties file.
Provide the Controller URL, customer name, and name of your Analytics Agent in the analytics-agent.properties
file. The customer name is found under View License in the Controller.
If you are using CLM to configure your log files with source rules, you will need to provide these properties with the correct values.
The default values are the following:
# Format should be http://<host>:<port>
ad.controller.url=http://localhost:8090
# The customer name field from the AppDynamics license page.
http.event.name=customer1
# This is the friendly agent name that will show up in the controller when the agent registers and syncs configuration.
ad.agent.name=analytics-agent1
Change Java Virtual Machine Options
If you need to change any JVM startup options, modify <analytics-agent-home>/conf/analytics-agent.vmoptions
with a text editor.
The vmoptions
file name is read from the ad.jvm.options.name=analytics-agent.vmoptions
properties file. If you change the vmoptions
file name, you will need to change the ad.jvm.options.name
property as well.
If the Analytics Agent Windows service is installed and you need to change the properties file or the vmoptions
file, you need to uninstall the service and reinstall it for the changes to take effect.
Configure Resource Usage Limit
To limit resource usage, you can enable the default limit on the number of job for a single Analytics Agent.
This limit can be overridden but is not recommended without a thorough understanding of the potential impact on resource usages, such as CPU usage, disk, and network I/O.
The property is ad.max.enabled.jobs
and is found in the <analytics-agent-home>/conf/analytics-agent.properties
file. By default, ad.max.enabled.jobs
is set to 20.
Verify Analytics Agent Status
To verify that the Analytics Agent has started, look for the following entry in the App Agent log file: Started [Analytics] collector
To connect to the Events Service through a proxy server, see Connect the Agent to the Events Service through a Proxy.
Additional Configurations
For Analytics Agent version >=21.7, you can add authentication to pipeline resources. To do so:
Configure TLS for Agent Connections to Controller and Event Service
By default, the Analytics agent utilizes TLS 1.2. Ensure that Controller and Event Service also utilize the same TLS version.To configure a different version, for example TLS 1.3, specify ad.http.tls.version=TLSv1.3
in the conf/analytics-agent.properties
file. See Revise the Analytics Agent Properties File.
If you are using TLS 1.3, you must use the following versions for underlying JDKs:
-
- For HP-UX: =>1.8.0.26-hp-ux
-
For AIX: =>1.8.0_381
- For others: > jdk8_261
-
If you are using an underlying JDK that does not support TLS 1.3, the following error appears in log messages.
ErrorNoSuchAlgorithmException: TLSv1.3 SSLContext not available
To resolve this error, you must use the above mentioned JDKs or configure TLS 1.2. To configure TLS 1.2, specify
ad.http.tls.version=TLSv1.2
in theconf/analytics-agent.properties
file. See Revise the Analytics Agent Properties File.
Troubleshooting Tips
- Ensure that the properties in
analytics-agent.properties
are properly set. See Enabled Job Files Limit. - JRE version is >= 1.7 and the
JAVA_HOME
variable is set in the environment. - All properties in
analytics-agent/conf/analytics-agent.vmoptions
are compatible with the JRE.