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

analytics agent error

Sameer.Shivalkar
AppDynamics Team

HI Team,

 

Getting below error in analytics agent logs . Issue im facing is while navigation to analytics 

 

[2018-08-20T11:08:45,088+05:30] [ERROR] [file:poll:pipeline-poller-thread-0] [c.a.a.a.p.d.LogSourceJobFileListener] Error occurred while processing file [/opt/setup/machine-agent/monitors/analytics-agent/conf/job/sample-stock-quotes-csv.job]
com.appdynamics.analytics.client.common.exceptions.UnauthorizedRestException: Status code: [401], Message: HTTP 401 Unauthorized
at com.appdynamics.analytics.client.common.exceptions.RestExceptionFactory.makeException(RestExceptionFactory.java:44)
at com.appdynamics.analytics.client.common.RestClientUtils.validateResponse(RestClientUtils.java:260)
at com.appdynamics.analytics.client.common.RestClientUtils.resolve(RestClientUtils.java:84)
at com.appdynamics.analytics.client.common.GenericHttpRequestBuilder.execute(GenericHttpRequestBuilder.java:197)
at com.appdynamics.analytics.shared.rest.client.eventservice.DefaultExtractedFieldsClient.getExtractedFields(DefaultExtractedFieldsClient.java:91)
at com.appdynamics.analytics.shared.rest.client.eventservice.DefaultExtractedFieldsClient.getExtractedFields(DefaultExtractedFieldsClient.java:74)
at com.appdynamics.analytics.agent.field.ExtractedFieldsManager.getExtractedFieldPatterns(ExtractedFieldsManager.java:94)
at com.appdynamics.analytics.agent.field.ExtractedFieldsManager.getExtractedFieldPatterns(ExtractedFieldsManager.java:78)
at com.appdynamics.analytics.agent.source.LogSourceConfigurationHelper.getNonGrokPatterns(LogSourceConfigurationHelper.java:190)
at com.appdynamics.analytics.agent.source.LogSourceConfigurationHelper.convertPipelineConfigurationToTailLogSourceConfiguration(LogSourceConfigurationHelper.java:97)
at com.appdynamics.analytics.agent.source.LogSourceConfigurationHelper.convertPipelineConfigurationToLogSourceConfiguration(LogSourceConfigurationHelper.java:153)
at com.appdynamics.analytics.agent.pipeline.dynamic.LogSourceJobFileParser.parseLogSourceConfigurationFromFile(LogSourceJobFileParser.java:80)
at com.appdynamics.analytics.agent.pipeline.dynamic.LogSourceJobFileListener.upsert(LogSourceJobFileListener.java:76)
at com.appdynamics.analytics.agent.pipeline.dynamic.LogSourceJobFileListener.onFileCreate(LogSourceJobFileListener.java:51)
at org.apache.commons.io.monitor.FileAlterationObserver.doCreate(FileAlterationObserver.java:379)
at org.apache.commons.io.monitor.FileAlterationObserver.checkAndNotify(FileAlterationObserver.java:345)
at org.apache.commons.io.monitor.FileAlterationObserver.checkAndNotify(FileAlterationObserver.java:304)
at org.apache.commons.io.monitor.FileAlterationMonitor.run(FileAlterationMonitor.java:182)

 

Regards

Sameer

 

 

 

 

 

 

 

 

 

 

 

 

 

 



Found something helpful? Click the Accept as Solution button to help others find answers faster.
Liked something? Click the Thumbs Up button.
3 REPLIES 3

Chitra.Lal
AppDynamics Team

Hi Sameer,

 

Is yours an on prem Event sevice? Was this setup working earlier or is this a new configuration? A 401 error would mean incorrect connction details being used. Can you please check the configuration properties and verify they are correctly set per the below doc link:
 
You need to verify the below properties are set properly in your analytic-agent.properties file located under the conf dir of the analytic-agent home, as per your license page details in the UI: 
http.event.name - Matches the customer name in licnese page Acocunts section
http.event.accountName - matches the global account name in license page Acocunt ssection
http.event.accessKey - matches the account access key in license page Accounts section
 
Can you please check the above details, correct them as neeed then retsrt your ANlaytics agent and see if the issue i sresolved or not. In case the issu epersists please send over the Analytics agent log file and the analytic-agent.properties file as well as a screenhsot of the Controller license UI -> Accounts tab.
 
Thank You,
Chitra


Found something helpful? Click the Accept as Solution button to help others find answers faster.
Liked something? Click the Thumbs Up button.

We observed the following property in the controller was not set.
appdynamics.non.eum.events.use.on.premise.event.service

 

with above it got resolved



Found something helpful? Click the Accept as Solution button to help others find answers faster.
Liked something? Click the Thumbs Up button.

Hi Sameer,

 

Really glad to know that. Do let me know in case you have any further queries or if we can consider this resolved completely. 

 

Thank You,

Chitra



Found something helpful? Click the Accept as Solution button to help others find answers faster.
Liked something? Click the Thumbs Up button.