Kibana version: 7.1.0
Elasticsearch version: 7.1.0
APM Server version: 7.1.0
APM Agent language and version: .NET Agent version 0.0.2.0
Browser version: Firefox 67.0
Original install method (e.g. download page, yum, deb, from source, etc.) and version: all components were downloaded from official elastic page.
Fresh install or upgraded from other version? Fresh install
Is there anything special in your setup? all components are working on my local machine.
Description of the problem including expected versus actual behavior. Please include screenshots (if relevant): I am trying to get any events from apm agent into ES to see how does it work. I run elasticsearch, kibana, apm server and apm agent on my local machine.
To see if configuration is correct and how APM documents looks like in kibana I wrote small program and after i run method
Agent.Tracer.CaptureTransaction("test_name", "test_type", () =>
{
string rt;
WebRequest request = WebRequest.Create("http://localhost:9200/_count");
WebResponse response = request.GetResponse();
Stream dataStream = response.GetResponseStream();
StreamReader reader = new StreamReader(dataStream);
rt = reader.ReadToEnd();
Console.WriteLine(rt);
reader.Close();
response.Close();
Thread.Sleep(1000);
});
no events appear in index and elasticsearch logged following error:
[2019-05-27T16:47:57,120][WARN ][o.e.h.AbstractHttpServerTransport] [PCName] caught exception while handling client http traffic, closing connection Netty4HttpChannel{localAddress=/0:0:0:0:0:0:0:1:9200, remoteAddress=/0:0:0:0:0:0:0:1:61717}
java.io.IOException: An existing connection was forcibly closed by the remote host
at sun.nio.ch.SocketDispatcher.read0(Native Method) ~[?:?]
at sun.nio.ch.SocketDispatcher.read(Unknown Source) ~[?:?]
at sun.nio.ch.IOUtil.readIntoNativeBuffer(Unknown Source) ~[?:?]
at sun.nio.ch.IOUtil.read(Unknown Source) ~[?:?]
at sun.nio.ch.SocketChannelImpl.read(Unknown Source) ~[?:?]
at io.netty.buffer.PooledHeapByteBuf.setBytes(PooledHeapByteBuf.java:261) ~[netty-buffer-4.1.32.Final.jar:4.1.32.Final]
at io.netty.buffer.AbstractByteBuf.writeBytes(AbstractByteBuf.java:1132) ~[netty-buffer-4.1.32.Final.jar:4.1.32.Final]
at io.netty.channel.socket.nio.NioSocketChannel.doReadBytes(NioSocketChannel.java:347) ~[netty-transport-4.1.32.Final.jar:4.1.32.Final]
at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:148) [netty-transport-4.1.32.Final.jar:4.1.32.Final]
at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:656) [netty-transport-4.1.32.Final.jar:4.1.32.Final]
at io.netty.channel.nio.NioEventLoop.processSelectedKeysPlain(NioEventLoop.java:556) [netty-transport-4.1.32.Final.jar:4.1.32.Final]
at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:510) [netty-transport-4.1.32.Final.jar:4.1.32.Final]
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:470) [netty-transport-4.1.32.Final.jar:4.1.32.Final]
at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:909) [netty-common-4.1.32.Final.jar:4.1.32.Final]
at java.lang.Thread.run(Unknown Source) [?:1.8.0_211]
In apm-server logs i did not find anything except few lines after i started server which contains info about established connection to elasticsearch.
To see if elasticsearch works properly, i used metricbeat to colect some events and it worked.
I would like to ask for some advice what I did wrong.
Here are configs for apm-server and elasticsearch:
apm-server:
host: "localhost:8200"
output.elasticsearch:
hosts: ["localhost:9200"]
elasticsearch config:
bootstrap.memory_lock: false
cluster.name: elasticsearch
http.port: 9200
node.data: true
node.ingest: true
node.master: true
node.max_local_storage_nodes: 1
node.name: PCNAME
path.data: C:\ProgramData\Elastic\Elasticsearch\data
path.logs: C:\ProgramData\Elastic\Elasticsearch\logs
transport.tcp.port: 9300
xpack.license.self_generated.type: basic
xpack.security.enabled: false
network.host: 0.0.0.0
cluster.initial_master_nodes: PCNAME
if anything else is needed let me know.
Thank you in advance!