-
Notifications
You must be signed in to change notification settings - Fork 201
Diagnose connection to the Application Insights backend (3.x)
First, please check the value of the connection string.
Please check that you don't have an SSL certificate error:
*************************
Application Insights Java Agent failed to connect to ...
*************************
Description:
Unable to find valid certification path to requested target.
Action:
Please import the SSL certificate from https:/....in.applicationinsights.azure.com/, into the default java key store located at:
...
Learn more about importing the certificate here: https://go.microsoft.com/fwlink/?linkid=2151450
Note:
This message is only logged the first time it occurs after startup.
For Application Insights >= 3.3.0 and <= 3.4.2:
ERROR c.a.m.o.e.i.p.TelemetryPipeline - *************************Application Insights Java Agent failed to connect to https:/....in.applicationinsights.azure.com/v2.1/track*************************Description:Unable to find valid certification path to requested target.Action:Please import the SSL certificate from https://.../v2.1/track, into the default java key store located at:... more about importing the certificate here: https://go.microsoft.com/fwlink/?linkid=2151450Note:This message is only logged the first time it occurs after startup.
If you have one of these errors, please follow the instructions in the error message.
If you still have a connection problem, please follow the instruction below.
Please download agent-test.jar.
If you use APPLICATIONINSIGHTS_CONNECTION_STRING environment variable to set the connection string, execute the following command line:
java -jar agent-test.jar
If you define the connection string in a configuration file, please read this page to adapt the command line above and be sure to have the
self-diagnostics features configured at the TRACE level:
{
"connectionString": "...",
"selfDiagnostics": {
"destination": "file+console",
"level": "TRACE"
}
}
Please download app.jar and the last version of Application Insights.
Please execute the following command line:
export APPLICATIONINSIGHTS_CONNECTION_STRING=...
export APPLICATIONINSIGHTS_SELF_DIAGNOSTICS_LEVEL=trace
java -javaagent:applicationinsights-agent-{version}.jar -jar app.jar
After the execution of the command line, the application will exit.
If the backend connectivity works, you should notice a TRACE on the Application Insights UI (Transaction search):
Please send all log lines to Microsoft support and indicate if you can see the TRACE on the Application Insights UI.