Splunk AppDynamics

Failed to send agent registration request:

Hassaan_Javaid
New Member

Getting below mentioned error in logs of appdynamics cluster agent 

[ERROR]: 2024-03-15 14:36:30 - agentregistrationmodule.go:132 - clusterId: -1
[ERROR]: 2024-03-15 14:36:30 - agentregistrationmodule.go:134 - Registration properties: {}
[INFO]: 2024-03-15 14:37:30 - agentregistrationmodule.go:119 - Initial Agent registration
[ERROR]: 2024-03-15 14:37:30 - agentregistrationmodule.go:131 - Failed to send agent registration request: Status: 401 Unauthorized, Body: <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Unauthorized</title>
</head>
<body>
HTTP Error 401 Unauthorized
<p/>
This request requires HTTP authentication
</body>
</html>

I'm very new to appdynamics and I had make its implementation asap

I'm running  a k8s cluster in minikue right now and configured the cluster agent through Helm chart 
I assume there is some issue with the values I have set in the values.yml file 

controllerInfo:
account: [Redacted]
username: [Redacted]  ( or complete email address should be used ?)
password: 
accessKey: (no issue in that I have verified it twice) 

please help in resolving the issue 
 
^ Post edited by @Ryan.Paredez to remove sensitive account name and info. Please be careful not to share account names, emails, or passwords on Community posts. 
Labels (3)
0 Karma

Cansel_OZCAN
Path Finder

Hi Hassan,

This is a generic 401 authentication problem. When you send metrics or valid messages from agent to controller there are several things you have to configure properly below

host, port, account name (default "customer1" if you don't use the controller in a multi-tenant mode), and account key.

So basically there are 2 reasons that you need to focus. 

First can you please control this step below given, and try again? 

To create a secret with a Controller access key:

$ kubectl -n appdynamics create secret generic cluster-agent-secret --from-literal=controller-key=<access-key>

Thanks

Cansel

iamryan
Community Manager
Community Manager

Hi @Hassaan.Javaid,

Did you get a chance to check out that linked post? 

0 Karma

iamryan
Community Manager
Community Manager
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!

May 2026 Splunk Expert Sessions: Security & Observability

Level Up Your Operations: May 2026 Splunk Expert Sessions Whether you are refining your security posture or ...

Network to App: Observability Unlocked [May & June Series]

In today’s digital landscape, your environment is no longer confined to the data center. It spans complex ...

SPL2 Deep Dives, AppDynamics Integrations, SAML Made Simple and Much More on Splunk ...

Splunk Lantern is Splunk’s customer success center that provides practical guidance from Splunk experts on key ...