I am using version 7.3 for all elastic search, kibana, logstash and I have an APM agent installed on my application.
I am trying to create a file beat and send the input using logstash to elastic search.
below is the log from file beat. All of this exist in same machine . I see an error in the log :- Failed to publish events caused by: write tcp as below.
Why am I not able to discover logstash in Kibana. I was able to discover it when the output format was elastic search. When I changed it to logstash the discovery stopped working.
My filebeat.yml
filebeat.inputs:
- type: log
paths:- C:/STS/workspace/v17base/v17.0.2workspace/xyz_xstore/log/retmonEvent.out
output.logstash:
hosts: ["localhost:5044"]
- C:/STS/workspace/v17base/v17.0.2workspace/xyz_xstore/log/retmonEvent.out
log:-
2019-11-26T16:38:53.797-0800 INFO [monitoring] log/log.go:145 Non-zero metrics in the last 30s {"monitoring": {"metrics": {"beat":{"cpu":{"system":{"ticks":62},"total":{"ticks":124,"value":124},"user":{"ticks":62}},"handles":{"open":236},"info":{"ephemeral_id":"edd6d598-9ecc-48d6-bcf1-2ed479a55ae8","uptime":{"ms":570057}},"memstats":{"gc_next":4973312,"memory_alloc":2615048,"memory_total":10292864,"rss":4096},"runtime":{"goroutines":23}},"filebeat":{"harvester":{"open_files":0,"running":0}},"libbeat":{"config":{"module":{"running":0}},"pipeline":{"clients":1,"events":{"active":0}}},"registrar":{"states":{"current":1}}}}}
2019-11-26T16:39:23.797-0800 INFO [monitoring] log/log.go:145 Non-zero metrics in the last 30s {"monitoring": {"metrics": {"beat":{"cpu":{"system":{"ticks":62},"total":{"ticks":124,"value":124},"user":{"ticks":62}},"handles":{"open":236},"info":{"ephemeral_id":"edd6d598-9ecc-48d6-bcf1-2ed479a55ae8","uptime":{"ms":600058}},"memstats":{"gc_next":4973312,"memory_alloc":2680488,"memory_total":10358304},"runtime":{"goroutines":23}},"filebeat":{"harvester":{"open_files":0,"running":0}},"libbeat":{"config":{"module":{"running":0}},"pipeline":{"clients":1,"events":{"active":0}}},"registrar":{"states":{"current":1}}}}}
2019-11-26T16:39:33.873-0800 INFO log/harvester.go:253 Harvester started for file: C:\STS\workspace\v17base\v17.0.2workspace\xyz_xstore\log\retmonEvent.out
2019-11-26T16:39:34.879-0800 ERROR logstash/async.go:256 Failed to publish events caused by: write tcp [::1]:59554->[::1]:5044: wsasend: An existing connection was forcibly closed by the remote host.
2019-11-26T16:39:36.072-0800 ERROR pipeline/output.go:121 Failed to publish events: write tcp [::1]:59554->[::1]:5044: wsasend: An existing connection was forcibly closed by the remote host.
2019-11-26T16:39:36.072-0800 INFO pipeline/output.go:95 Connecting to backoff(async(tcp://localhost:5044))
2019-11-26T16:39:36.072-0800 INFO pipeline/output.go:105 Connection to backoff(async(tcp://localhost:5044)) established
2019-11-26T16:39:53.796-0800 INFO [monitoring] log/log.go:145 Non-zero metrics in the last 30s {"monitoring": {"metrics": {"beat":{"cpu":{"system":{"ticks":78,"time":{"ms":16}},"total":{"ticks":140,"time":{"ms":16},"value":140},"user":{"ticks":62}},"handles":{"open":244},"info":{"ephemeral_id":"edd6d598-9ecc-48d6-bcf1-2ed479a55ae8","uptime":{"ms":630058}},"memstats":{"gc_next":8164416,"memory_alloc":7120008,"memory_total":15139464,"rss":3317760},"runtime":{"goroutines":27}},"filebeat":{"events":{"added":55,"done":55},"harvester":{"open_files":1,"running":1,"started":1}},"libbeat":{"config":{"module":{"running":0}},"output":{"events":{"acked":54,"batches":3,"failed":28,"total":82},"read":{"bytes":12},"write":{"bytes":3587,"errors":1}},"pipeline":{"clients":1,"events":{"active":0,"filtered":1,"published":54,"retry":56,"total":55},"queue":{"acked":54}}},"registrar":{"states":{"current":1,"update":55},"writes":{"success":3,"total":3}}}}}
2019-11-26T16:40:23.796-0800 INFO [monitoring] log/log.go:145 Non-zero metrics in the last 30s {"monitoring": {"metrics": {"beat":{"cpu":{"system":{"ticks":78},"total":{"ticks":140,"value":140},"user":{"ticks":62}},"handles":{"open":248},"info":{"ephemeral_id":"edd6d598-9ecc-48d6-bcf1-2ed479a55ae8","uptime":{"ms":660057}},"memstats":{"gc_next":8101760,"memory_alloc":4071848,"memory_total":16772584,"rss":815104},"runtime":{"goroutines":27}},"filebeat":{"events":{"added":3,"done":3},"harvester":{"open_files":1,"running":1}},"libbeat":{"config":{"module":{"running":0}},"output":{"events":{"acked":3,"batches":1,"total":3},"read":{"bytes":6},"write":{"bytes":622}},"pipeline":{"clients":1,"events":{"active":0,"published":3,"total":3},"queue":{"acked":3}}},"registrar":{"states":{"current":1,"update":3},"writes":{"success":1,"total":1}}}}}
2019-11-26T16:40:53.796-0800 INFO [monitoring] log/log.go:145 Non-zero metrics in the last 30s {"monitoring": {"metrics": {"beat":{"cpu":{"system":{"ticks":78},"total":{"ticks":140,"value":140},"user":{"ticks":62}},"handles":{"open":246},"info":{"ephemeral_id":"edd6d598-9ecc-48d6-bcf1-2ed479a55ae8","uptime":{"ms":690056}},"memstats":{"gc_next":8101760,"memory_alloc":4153528,"memory_total":16854264,"rss":8192},"runtime":{"goroutines":27}},"filebeat":{"harvester":{"open_files":1,"running":1}},"libbeat":{"config":{"module":{"running":0}},"pipeline":{"clients":1,"events":{"active":0}}},"registrar":{"states":{"current":1}}}}}
2019-11-26T16:41:23.797-0800 INFO [monitoring] log/log.go:145 Non-zer