I have an Elastic Agent Installed with synthetic integration (heartbeat). Adding HTTP and ICMP monitors work fine but when I tried adding a TCP monitor with the correct host:port format the agent become unhealthy and the log shows the following error.
Is there any bug or known issues for the TCP monitor?
15:31:14.621 elastic_agent [elastic_agent][error] Elastic Agent status changed to: 'error'
15:31:14.622 elastic_agent [elastic_agent][error] 2021-08-06T15:31:14+02:00 - message: Application: filebeat--7.14.0[bd9f0a02-8c71-46b2-bd05-b049b05c5913]: State changed to FAILED: 1 error occurred:
* 1 error: Error creating runner from config: need to specify the host using the `host:port` syntax accessing config
- type: 'ERROR' - sub_type: 'FAILED'
{"log.level":"info","@timestamp":"2021-08-09T09:56:14.060Z","log.logger":"centralmgmt.fleet","log.origin":{"file.name":"management/manager.go","file.line":236},"message":"Applying settings for filebeat.modules","service.name":"filebeat","event.dataset":"filebeat-json.log","ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2021-08-09T09:56:14.060Z","log.logger":"centralmgmt.fleet","log.origin":{"file.name":"management/manager.go","file.line":137},"message":"Status change to Failed: 1 error occurred:\n\t* 1 error: Error creating runner from config: need to specify the host using the `host:port` syntax accessing config\n\n","service.name":"filebeat","event.dataset":"filebeat-json.log","ecs.version":"1.6.0"}
12:01:40.553
elastic_agent
devops-test
[elastic_agent][error] 2021-08-09T10:01:40Z - message: Application: filebeat--7.14.0[9b863173-44e3-4e22-bf24-0e4b5d845521]: State changed to FAILED: 1 error occurred:
* 1 error: Error creating runner from config: need to specify the host using the `host:port` syntax accessing config
- type: 'ERROR' - sub_type: 'FAILED'
12:01:50.556
elastic_agent
devops-test
[elastic_agent][info] 2021-08-09T10:01:50Z - message: Application: filebeat--7.14.0[9b863173-44e3-4e22-bf24-0e4b5d845521]: State changed to RESTARTING: - type: 'STATE' - sub_type: 'STARTING'
Hi, sorry I missed that the errors logs come from filebeat. Any chance you could share the full policy (copy it from the Fleet UI in the yaml format)? It seems odd that filebeat is involved in this in the first place (assuming there are no filebeat inputs) so I assume something goes wrong there. I have one suspicion and will do some testing locally.
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.