Log Analytics with Appdynamics
To configure the Log analytics, follow the document in the below link:
- Configuring Machine Agent:
Changes in [MachineAgentFolder]\monitors\analytics-agent\conf\analytics-agent.properties file:
- ad.controller.url=AppDynamicsControllerURL (eg : https://{accountname}.saas.appdynamics.com)
- http.event.endpoint=AnalyticsEventServiceAPI (eg : = https://analytics.api.appdynamics.com:443 )
- ad.dw.http.host = {{hostname}}
- http.event.name=CustomerName
- event.accountName=GlobalNameAccount
- event.accesskey=AccessKey
Note : To get the above details log in to appydynamics -> Go to Settings -> License -> Account
- Changes in [MachineAgentFolder]\conf\controller-info.xmlfile:
- <account-access-key>AccountAccessKeyIntheControllerSettings</account-access-key>
- <account-name>AccountName</account-name>
- change the value in the xlm file at \AppDynamics\MachineAgent\monitors\analytics-agent\monitor.xl :- from
- <enabled>false</enabled>
to
<enabled>true</enabled>
2. Restart Machine agent.
3. Check there is no errors in the logs:
- InstallationFolder/logs/machine-agent.log
- InstallationFolder/logs/analytics-agent.log
4. Enable one of the sample log files from [MachineAgentFolder]\monitors\analytics-agent\conf\job
To setup a sample log file for AppDynamics to start reading the logs, please follow steps mentioned in the below document.
5. Analytics agent:
Make sure the communication between the Analytics-Agent and the Controller is Ok. You can check it in “Admin/AppDynamics Agents Section” in its “Analytics Agents” Tab.

6. Analytics Tab / Configuration: Add a new Log source:

7. General Tab→ Fill “Source File” field writing the full path of the log file:

Save the details.
Refer this link for more details : https://docs.appdynamics.com/display/PRO42/Configuring+Log+Analytics#ConfiguringLogAnalytics-maplogs
To see the logs, click one searches tab and query as below:

