APM Agent language and version: Elastic.Apm.NetCoreAll (1.0.1)
Original install method (e.g. download page, yum, deb, from source, etc.) and version: docker (18.09.9)
Description of the problem including expected versus actual behavior. Please include screenshots (if relevant): APM server error : Always getting error message saying connection refused.
I am always getting error message saying
ERROR pipeline/output.go:100
Failed to connect to backoff(elasticsearch(http://elasticsearch:9200)): 401 Unauthorized: {"error":{"root_cause":[{"type":"security_exception","reason":"missing authentication credentials for REST request [/]","header":{"WWW-Authenticate":"Basic realm="security" charset="UTF-8""}}],"type":"security_exception","reason":"missing authentication credentials for REST request [/]","header":{"WWW-Authenticate":"Basic realm="security" charset="UTF-8""}},"status":401}
I am trying to setup elasticsearch, kibanan and APM server using docker. I am able to run elasticsearch and kibana successfully. But not able to run APM server.
But when I am running the dot net core application after integrating apm agent(Elastic.Apm.NetCoreAll), I am getting warning message saying.
{{Scope}} Failed capturing request (failed to remove from ProcessingRequests) - This Span will be skipped in case it wasn't captured before. Request: method: "POST", URL: http://elastic:PleaseChangeMe@localhost:9200/_bulk
I am not sure why I am getting this error message, Did I miss any configuration in elasticsearch ?
Does the application (which you monitor with Elastic APM .NET Agent) use Elasticsearch client?
It seems that the HTTP localhost:9200/_bulk request comes from Elasticsearch client for .NET.
Yes Jalvz..This log is from .NET App.
Yes...I have pointed the APM agent to APM server and It's working fine for me. I mean I am able to visualize APM in Kibana also able to see all the application transactions.
Even though I am able to see application transactions in Kibana, I am also getting above said warning message in .NET App continuously..I hope elasticsearch is not supporting bulk posting API. Did I miss anything ?
Yes Sergey..My .NET App is also using elasticsearch to save application logs (Warnings/Errors/ Custom Logs/ Event Logs etc.).
Thing is that I am getting this warning message only after the integration of APM agent in .NET App. Looks like APM agent in .NET App is trying to make call to the ( HTTP localhost:9200/_bulk) elasticserver.
HTTP call localhost:9200/_bulk itself is actually coming from Elasticsearch .NET Client that you use in your .NET app. Elasticsearch .NET Client uses HTTP protocol to communicate with Elasticsearch cluster. But the Warning log message Failed capturing request (failed to remove from ProcessingRequests) - This Span will be skipped in case it wasn't captured before is not from Elasticsearch .NET client - this message is printed by Elastic APM .NET Agent that tries to record some info (start time, duration, etc.) about all HTTP calls that application makes which includes HTTP calls that libraries that application uses make and in your case one of those libraries is Elasticsearch .NET Client.
The meaning of this message is that Agent sees the end of some HTTP request but it cannot find the corresponding start event (to calculate duration, etc.) We still work on thorough support for tracing of Elasticsearch .NET Client in Elastic APM .NET Agent (https://github.com/elastic/apm-agent-dotnet/pull/329) but even without that full support Agent should not encounter such issues (not being able to find the corresponding start event) - I've opened a bug issue (https://github.com/elastic/apm-agent-dotnet/issues/500) to investigate. In the meantime if you would like to silence those log messages you can change Elastic APM .NET Agent log level to Error as described in the documentation.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.