Splunk AppDynamics

analytics agent error

CommunityUser
Splunk Employee
Splunk Employee

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

Labels (1)
0 Karma

Chitra_Lal
Contributor

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

CommunityUser
Splunk Employee
Splunk Employee

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

0 Karma

Chitra_Lal
Contributor

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

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Kick the Tires Before You Commit: A Hands-On Tour of the Splunk Observability Cloud ...

Evaluating an enterprise observability platform usually goes like this: fill out a form, get a free trial with ...

Deep insights, no barriers: Splunk Observability Cloud Free Edition

As software delivery cycles continue to accelerate, observability shouldn’t be a luxury — it should be a ...

Monitoring AI Agents with Splunk Observability Cloud

Let’s say I’m running a travel planning AI app in production. A user asks for three concise hotel options in ...