cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

log monitor extension

vineet.garg
Creator

I am using Trial version of Appdynamics. 

I have installed machine agent and .net app agent.

I am using log monitor extension . In custom metric, it is not showing any error from logs. Please find below machine-agents logs. Custom dasboard is also not uploading. 

Please suggest whats the issue.

 

DESKTOP-O29G2DN==> [Monitor-Task-Thread6] 13 Mar 2021 17:08:03,581 ERROR EventsServiceDataManager-Log Monitor - Schema: LogSchema does not exist
DESKTOP-O29G2DN==> [Monitor-Task-Thread6] 13 Mar 2021 17:08:03,581 INFO LogEventsProcessor-Log Monitor - Creating Schema LogSchema
DESKTOP-O29G2DN==> [Monitor-Task-Thread6] 13 Mar 2021 17:08:03,582 ERROR LogEventsProcessor-Log Monitor - Error encountered while creating schema for log abc
DESKTOP-O29G2DN==> [Monitor-Task-Thread6] 13 Mar 2021 17:08:03,583 INFO LogMetricsProcessor-Log Monitor - Successfully processed log file [org.bitbucket.kienerj.OptimizedRandomAccessFile@3a7bc061]
DESKTOP-O29G2DN==> [Monitor-Task-Thread5] 13 Mar 2021 17:08:03,583 DEBUG LogFileManager-Log Monitor - Updating File Pointer with the most recently processed log: E:/APP_Dynamics\abc.txt, pointing to file: E:\APP_Dynamics\abc.txt with the last read position: 541 and a creation time stamp of: 1615624940998
DESKTOP-O29G2DN==> [Monitor-Task-Thread5] 13 Mar 2021 17:08:03,583 INFO LogMonitorTask-Log Monitor - No events to publish for log abc, skipping
DESKTOP-O29G2DN==> [Monitor-Task-Thread5] 13 Mar 2021 17:08:03,583 INFO LogMonitorTask-Log Monitor - Printing 2 metrics for Log abc
DESKTOP-O29G2DN==> [Monitor-Task-Thread5] 13 Mar 2021 17:08:03,583 DEBUG MonitorStreamConsumer - Monitor line parsed:name=Server|Component:Machine Agent|Custom Metrics|Redis|abc|Search String|errors|Occurrences,value=0,aggregator=AVERAGE,time-rollup=AVERAGE,cluster-rollup=INDIVIDUAL
DESKTOP-O29G2DN==> [Monitor-Task-Thread5] 13 Mar 2021 17:08:03,583 DEBUG MetricOutputHandler - Reporting metric after reading metric [Server|Component:Machine Agent|Custom Metrics|Redis|abc|Search String|errors|Occurrences]
DESKTOP-O29G2DN==> [Monitor-Task-Thread5] 13 Mar 2021 17:08:03,583 DEBUG MetricOutputHandler - Reporting Metric Name [Server|Component:Machine Agent|Custom Metrics|Redis|abc|Search String|errors|Occurrences] Value [0]
DESKTOP-O29G2DN==> [Monitor-Task-Thread5] 13 Mar 2021 17:08:03,583 DEBUG MetricWriteHelper-Log Monitor - Printing Metric [AVERAGE/AVERAGE/INDIVIDUAL] [Server|Component:Machine Agent|Custom Metrics|Redis|abc|Search String|errors|Occurrences]=[0]
DESKTOP-O29G2DN==> [Monitor-Task-Thread5] 13 Mar 2021 17:08:03,583 DEBUG MonitorStreamConsumer - Monitor line parsed:name=Server|Component:Machine Agent|Custom Metrics|Redis|abc|File size (Bytes),value=541,aggregator=AVERAGE,time-rollup=AVERAGE,cluster-rollup=INDIVIDUAL
DESKTOP-O29G2DN==> [Monitor-Task-Thread5] 13 Mar 2021 17:08:03,583 DEBUG MetricOutputHandler - Reporting metric after reading metric [Server|Component:Machine Agent|Custom Metrics|Redis|abc|File size (Bytes)]
DESKTOP-O29G2DN==> [Monitor-Task-Thread5] 13 Mar 2021 17:08:03,583 DEBUG MetricOutputHandler - Reporting Metric Name [Server|Component:Machine Agent|Custom Metrics|Redis|abc|File size (Bytes)] Value [541]
DESKTOP-O29G2DN==> [Monitor-Task-Thread5] 13 Mar 2021 17:08:03,583 DEBUG MetricWriteHelper-Log Monitor - Printing Metric [AVERAGE/AVERAGE/INDIVIDUAL] [Server|Component:Machine Agent|Custom Metrics|Redis|abc|File size (Bytes)]=[541]
DESKTOP-O29G2DN==> [Monitor-Task-Thread5] 13 Mar 2021 17:08:03,583 INFO PathResolver-Log Monitor - Failed to resolve install dir, returning current work dirE:\APP_Dynamics\machineagent\bin
DESKTOP-O29G2DN==> [Monitor-Task-Thread5] 13 Mar 2021 17:08:03,585 INFO LogMonitorTask-Log Monitor - Completed the Log Monitoring task for log : abc
DESKTOP-O29G2DN==> [Monitor-Task-Thread5] 13 Mar 2021 17:08:03,585 DEBUG CustomDashboardModule-Log Monitor - Attempting to upload dashboard: log
DESKTOP-O29G2DN==> [Monitor-Task-Thread5] 13 Mar 2021 17:08:03,586 DEBUG Http4ClientBuilder-Log Monitor - Added the BasicScheme to uri [https://[Redacted].saas.appdynamics.com:443 ]
DESKTOP-O29G2DN==> [Monitor-Task-Thread5] 13 Mar 2021 17:08:04,748 ERROR ControllerClient-Log Monitor - The controller API returned an invalid response 401
DESKTOP-O29G2DN==> [Monitor-Task-Thread5] 13 Mar 2021 17:08:04,749 ERROR CustomDashboardModule-Log Monitor - Unable to establish connection, not uploading dashboard.
java.lang.IllegalArgumentException: argument "content" is null
at com.fasterxml.jackson.databind.ObjectMapper._assertNotNull(ObjectMapper.java:4429) ~[?:2.12.1]
at com.fasterxml.jackson.databind.ObjectMapper.readTree(ObjectMapper.java:2718) ~[?:2.12.1]
at com.appdynamics.extensions.controller.apiservices.CustomDashboardAPIService.getAllDashboards(CustomDashboardAPIService.java:62) ~[?:?]
at com.appdynamics.extensions.dashboard.CustomDashboardUploader.checkAndUpload(CustomDashboardUploader.java:43) ~[?:?]
at com.appdynamics.extensions.conf.modules.CustomDashboardModule.uploadDashboard(CustomDashboardModule.java:73) [?:?]
at com.appdynamics.extensions.MetricWriteHelper.onComplete(MetricWriteHelper.java:152) [?:?]
at com.appdynamics.extensions.TasksExecutionServiceProvider.onRunComplete(TasksExecutionServiceProvider.java:62) [?:?]
at com.appdynamics.extensions.TasksExecutionServiceProvider.access$200(TasksExecutionServiceProvider.java:28) [?:?]
at com.appdynamics.extensions.TasksExecutionServiceProvider$1.run(TasksExecutionServiceProvider.java:54) [?:?]
at com.appdynamics.extensions.executorservice.MonitorThreadPoolExecutor$TaskRunnable.run(MonitorThreadPoolExecutor.java:113) [?:?]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_272]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_272]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_272]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_272]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_272]
DESKTOP-O29G2DN==> [Monitor-Task-Thread5] 13 Mar 2021 17:08:04,750 DEBUG MonitorStreamConsumer - Monitor line parsed:name=Server|Component:Machine Agent|Custom Metrics|Redis|Metrics Uploaded,value=3,aggregator=AVERAGE,time-rollup=AVERAGE,cluster-rollup=COLLECTIVE
DESKTOP-O29G2DN==> [Monitor-Task-Thread5] 13 Mar 2021 17:08:04,750 DEBUG MetricOutputHandler - Reporting metric after reading metric [Server|Component:Machine Agent|Custom Metrics|Redis|Metrics Uploaded]
DESKTOP-O29G2DN==> [Monitor-Task-Thread5] 13 Mar 2021 17:08:04,750 DEBUG MetricOutputHandler - Reporting Metric Name [Server|Component:Machine Agent|Custom Metrics|Redis|Metrics Uploaded] Value [3]
DESKTOP-O29G2DN==> [Monitor-Task-Thread5] 13 Mar 2021 17:08:04,750 DEBUG MetricWriteHelper-Log Monitor - Printing Metric [AVERAGE/AVERAGE/COLLECTIVE] [Server|Component:Machine Agent|Custom Metrics|Redis|Metrics Uploaded]=[3]
DESKTOP-O29G2DN==> [Monitor-Task-Thread5] 13 Mar 2021 17:08:04,750 DEBUG MetricWriteHelper-Log Monitor - Total number of metrics reported in this job run are : 3
DESKTOP-O29G2DN==> [Monitor-Task-Thread5] 13 Mar 2021 17:08:04,750 INFO MetricWriteHelper-Log Monitor - Finished executing Log Monitor at 2021-03-13 17:08:04 IST
DESKTOP-O29G2DN==> [Monitor-Task-Thread5] 13 Mar 2021 17:08:04,750 INFO MetricWriteHelper-Log Monitor - Total time taken to execute Log Monitor : 2386 ms
DESKTOP-O29G2DN==> [Monitor-Task-Thread5] 13 Mar 2021 17:08:04,750 INFO ABaseMonitor - Finished processing all tasks in the job for Log Monitor
DESKTOP-O29G2DN==> [AD Thread-Metric Reporter0] 13 Mar 2021 17:08:06,225 DEBUG ManagedMonitorDelegate - Adding metric to the Queue to publish [Hardware Resources|Network|Outgoing packets/sec]

 

^ Post edited by @Ryan.Paredez to remove URL to Controller. Please do not share your controller name or URL on the community for privacy and security reasons.

0 REPLIES 0