Closed GrantNagel closed 1 year ago
Could you please share the logs? At the very least the ones from Fleet.
{"log.level":"info","@timestamp":"2022-12-15T00:38:49.638Z","log.origin":{"file.name":"log/reporter.go","file.line":40},"message":"2022-12-15T00:38:49Z - message: Application: fleet-server--8.5.3[]: State changed to STARTING: Starting - type: 'STATE' - sub_type: 'STARTING'","ecs.version":"1.6.0"}
{"log.level":"error","@timestamp":"2022-12-15T00:38:50.138Z","log.origin":{"file.name":"status/reporter.go","file.line":326},"message":"Elastic Agent status changed to \"error\": \"app fleet-server--8.5.3-77c54199: Error - EOF\"","ecs.version":"1.6.0"}
{"log.level":"error","@timestamp":"2022-12-15T00:38:50.138Z","log.origin":{"file.name":"log/reporter.go","file.line":36},"message":"2022-12-15T00:38:50Z - message: Application: fleet-server--8.5.3[]: State changed to FAILED: Error - EOF - type: 'ERROR' - sub_type: 'FAILED'","ecs.version":"1.6.0"}
{"log.level":"warn","@timestamp":"2022-12-15T00:39:00.139Z","log.origin":{"file.name":"status/reporter.go","file.line":326},"message":"Elastic Agent status changed to \"online\": \"\"","ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2022-12-15T00:39:00.139Z","log.origin":{"file.name":"log/reporter.go","file.line":40},"message":"2022-12-15T00:39:00Z - message: Application: fleet-server--8.5.3[]: State changed to RESTARTING: - type: 'STATE' - sub_type: 'STARTING'","ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2022-12-15T00:39:00.139Z","log.origin":{"file.name":"log/reporter.go","file.line":40},"message":"2022-12-15T00:39:00Z - message: Application: fleet-server--8.5.3[]: State changed to STARTING: Starting - type: 'STATE' - sub_type: 'STARTING'","ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2022-12-15T00:39:00.139Z","log.origin":{"file.name":"log/reporter.go","file.line":40},"message":"2022-12-15T00:39:00Z - message: Application: fleet-server--8.5.3[]: State changed to RESTARTING: Restarting - type: 'STATE' - sub_type: 'STARTING'","ecs.version":"1.6.0"}
{"log.level":"error","@timestamp":"2022-12-15T00:39:00.150Z","log.origin":{"file.name":"process/stdlogger.go","file.line":54},"message":"fleet-server stderr: \"{\\\"level\\\":\\\"info\\\",\\\"time\\\":\\\"2022-12-15T00:39:00Z\\\",\\\"message\\\":\\\"No applicable limit for 0 agents, using default.\\\"}\\n{\\\"level\\\":\\\"info\\\",\\\"time\\\":\\\"2022-12-15T00:39:00Z\\\",\\\"message\\\":\\\"No applicable limit for 0 agents, using default.\\\"}\\n\"","agent.console.name":"fleet-server","agent.console.type":"stderr","ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2022-12-15T00:39:00.656Z","log.origin":{"file.name":"log/reporter.go","file.line":40},"message":"2022-12-15T00:39:00Z - message: Application: fleet-server--8.5.3[]: State changed to STARTING: Starting - type: 'STATE' - sub_type: 'STARTING'","ecs.version":"1.6.0"}
{"log.level":"error","@timestamp":"2022-12-15T00:39:01.156Z","log.origin":{"file.name":"status/reporter.go","file.line":326},"message":"Elastic Agent status changed to \"error\": \"app fleet-server--8.5.3-77c54199: Error - EOF\"","ecs.version":"1.6.0"}
{"log.level":"error","@timestamp":"2022-12-15T00:39:01.156Z","log.origin":{"file.name":"log/reporter.go","file.line":36},"message":"2022-12-15T00:39:01Z - message: Application: fleet-server--8.5.3[]: State changed to FAILED: Error - EOF - type: 'ERROR' - sub_type: 'FAILED'","ecs.version":"1.6.0"}
{"log.level":"warn","@timestamp":"2022-12-15T00:39:11.157Z","log.origin":{"file.name":"status/reporter.go","file.line":326},"message":"Elastic Agent status changed to \"online\": \"\"","ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2022-12-15T00:39:11.157Z","log.origin":{"file.name":"log/reporter.go","file.line":40},"message":"2022-12-15T00:39:11Z - message: Application: fleet-server--8.5.3[]: State changed to RESTARTING: - type: 'STATE' - sub_type: 'STARTING'","ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2022-12-15T00:39:11.157Z","log.origin":{"file.name":"log/reporter.go","file.line":40},"message":"2022-12-15T00:39:11Z - message: Application: fleet-server--8.5.3[]: State changed to STARTING: Starting - type: 'STATE' - sub_type: 'STARTING'","ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2022-12-15T00:39:11.157Z","log.origin":{"file.name":"log/reporter.go","file.line":40},"message":"2022-12-15T00:39:11Z - message: Application: fleet-server--8.5.3[]: State changed to RESTARTING: Restarting - type: 'STATE' - sub_type: 'STARTING'","ecs.version":"1.6.0"}
{"log.level":"error","@timestamp":"2022-12-15T00:39:11.167Z","log.origin":{"file.name":"process/stdlogger.go","file.line":54},"message":"fleet-server stderr: \"{\\\"level\\\":\\\"info\\\",\\\"time\\\":\\\"2022-12-15T00:39:11Z\\\",\\\"message\\\":\\\"No applicable limit for 0 agents, using default.\\\"}\\n{\\\"level\\\":\\\"info\\\",\\\"time\\\":\\\"2022-12-15T00:39:11Z\\\",\\\"message\\\":\\\"No applicable limit for 0 agents, using default.\\\"}\\n\"","agent.console.name":"fleet-server","agent.console.type":"stderr","ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2022-12-15T00:39:11.673Z","log.origin":{"file.name":"log/reporter.go","file.line":40},"message":"2022-12-15T00:39:11Z - message: Application: fleet-server--8.5.3[]: State changed to STARTING: Starting - type: 'STATE' - sub_type: 'STARTING'","ecs.version":"1.6.0"}
{"log.level":"error","@timestamp":"2022-12-15T00:39:12.174Z","log.origin":{"file.name":"status/reporter.go","file.line":326},"message":"Elastic Agent status changed to \"error\": \"app fleet-server--8.5.3-77c54199: Error - EOF\"","ecs.version":"1.6.0"}
{"log.level":"error","@timestamp":"2022-12-15T00:39:12.174Z","log.origin":{"file.name":"log/reporter.go","file.line":36},"message":"2022-12-15T00:39:12Z - message: Application: fleet-server--8.5.3[]: State changed to FAILED: Error - EOF - type: 'ERROR' - sub_type: 'FAILED'","ecs.version":"1.6.0"}
{"log.level":"warn","@timestamp":"2022-12-15T00:39:22.175Z","log.origin":{"file.name":"status/reporter.go","file.line":326},"message":"Elastic Agent status changed to \"online\": \"\"","ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2022-12-15T00:39:22.175Z","log.origin":{"file.name":"log/reporter.go","file.line":40},"message":"2022-12-15T00:39:22Z - message: Application: fleet-server--8.5.3[]: State changed to RESTARTING: - type: 'STATE' - sub_type: 'STARTING'","ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2022-12-15T00:39:22.175Z","log.origin":{"file.name":"log/reporter.go","file.line":40},"message":"2022-12-15T00:39:22Z - message: Application: fleet-server--8.5.3[]: State changed to STARTING: Starting - type: 'STATE' - sub_type: 'STARTING'","ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2022-12-15T00:39:22.175Z","log.origin":{"file.name":"log/reporter.go","file.line":40},"message":"2022-12-15T00:39:22Z - message: Application: fleet-server--8.5.3[]: State changed to RESTARTING: Restarting - type: 'STATE' - sub_type: 'STARTING'","ecs.version":"1.6.0"}
{"log.level":"error","@timestamp":"2022-12-15T00:39:22.186Z","log.origin":{"file.name":"process/stdlogger.go","file.line":54},"message":"fleet-server stderr: \"{\\\"level\\\":\\\"info\\\",\\\"time\\\":\\\"2022-12-15T00:39:22Z\\\",\\\"message\\\":\\\"No applicable limit for 0 agents, using default.\\\"}\\n{\\\"level\\\":\\\"info\\\",\\\"time\\\":\\\"2022-12-15T00:39:22Z\\\",\\\"message\\\":\\\"No applicable limit for 0 agents, using default.\\\"}\\n\"","agent.console.name":"fleet-server","agent.console.type":"stderr","ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2022-12-15T00:39:22.691Z","log.origin":{"file.name":"log/reporter.go","file.line":40},"message":"2022-12-15T00:39:22Z - message: Application: fleet-server--8.5.3[]: State changed to STARTING: Starting - type: 'STATE' - sub_type: 'STARTING'","ecs.version":"1.6.0"}
{"log.level":"error","@timestamp":"2022-12-15T00:39:23.191Z","log.origin":{"file.name":"status/reporter.go","file.line":326},"message":"Elastic Agent status changed to \"error\": \"app fleet-server--8.5.3-77c54199: Error - EOF\"","ecs.version":"1.6.0"}
{"log.level":"error","@timestamp":"2022-12-15T00:39:23.191Z","log.origin":{"file.name":"log/reporter.go","file.line":36},"message":"2022-12-15T00:39:23Z - message: Application: fleet-server--8.5.3[]: State changed to FAILED: Error - EOF - type: 'ERROR' - sub_type: 'FAILED'","ecs.version":"1.6.0"}
{"log.level":"warn","@timestamp":"2022-12-15T00:39:33.192Z","log.origin":{"file.name":"status/reporter.go","file.line":326},"message":"Elastic Agent status changed to \"online\": \"\"","ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2022-12-15T00:39:33.192Z","log.origin":{"file.name":"log/reporter.go","file.line":40},"message":"2022-12-15T00:39:33Z - message: Application: fleet-server--8.5.3[]: State changed to RESTARTING: - type: 'STATE' - sub_type: 'STARTING'","ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2022-12-15T00:39:33.193Z","log.origin":{"file.name":"log/reporter.go","file.line":40},"message":"2022-12-15T00:39:33Z - message: Application: fleet-server--8.5.3[]: State changed to STARTING: Starting - type: 'STATE' - sub_type: 'STARTING'","ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2022-12-15T00:39:33.193Z","log.origin":{"file.name":"log/reporter.go","file.line":40},"message":"2022-12-15T00:39:33Z - message: Application: fleet-server--8.5.3[]: State changed to RESTARTING: Restarting - type: 'STATE' - sub_type: 'STARTING'","ecs.version":"1.6.0"}
{"log.level":"error","@timestamp":"2022-12-15T00:39:33.201Z","log.origin":{"file.name":"process/stdlogger.go","file.line":54},"message":"fleet-server stderr: \"{\\\"level\\\":\\\"info\\\",\\\"time\\\":\\\"2022-12-15T00:39:33Z\\\",\\\"message\\\":\\\"No applicable limit for 0 agents, using default.\\\"}\\n{\\\"level\\\":\\\"info\\\",\\\"time\\\":\\\"2022-12-15T00:39:33Z\\\",\\\"message\\\":\\\"No applicable limit for 0 agents, using default.\\\"}\\n\"","agent.console.name":"fleet-server","agent.console.type":"stderr","ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2022-12-15T00:39:33.708Z","log.origin":{"file.name":"log/reporter.go","file.line":40},"message":"2022-12-15T00:39:33Z - message: Application: fleet-server--8.5.3[]: State changed to STARTING: Starting - type: 'STATE' - sub_type: 'STARTING'","ecs.version":"1.6.0"}
{"log.level":"error","@timestamp":"2022-12-15T00:39:34.208Z","log.origin":{"file.name":"status/reporter.go","file.line":326},"message":"Elastic Agent status changed to \"error\": \"app fleet-server--8.5.3-77c54199: Error - EOF\"","ecs.version":"1.6.0"}
{"log.level":"error","@timestamp":"2022-12-15T00:39:34.208Z","log.origin":{"file.name":"log/reporter.go","file.line":36},"message":"2022-12-15T00:39:34Z - message: Application: fleet-server--8.5.3[]: State changed to FAILED: Error - EOF - type: 'ERROR' - sub_type: 'FAILED'","ecs.version":"1.6.0"}
@GrantNagel I copied and pasted your exact Compose file, and performed the following steps:
docker-compose up tls
kibana/config/kibana.yml
diff --git a/kibana/config/kibana.yml b/kibana/config/kibana.yml
index f7aaa20..6014bc9 100644
--- a/kibana/config/kibana.yml
+++ b/kibana/config/kibana.yml
@@ -42,7 +42,7 @@ xpack.fleet.outputs:
type: elasticsearch
hosts: [ https://elasticsearch:9200 ]
# Set to output of 'docker-compose up tls'. Example:
- #ca_trusted_fingerprint: 846637d1bb82209640d31b79869a370c8e47c2dc15c7eafd4f3d615e51e3d503
+ ca_trusted_fingerprint: 92e5b27b2a30c261ebf468fdbbda5c5fb78d17504bd1f539dc002fc88a9841bb
is_default: true
is_default_monitoring: true
docker-compose up
Fleet started and registered without any issue:
The error message Error - EOF
is unfortunately too cryptic for me to be able to suggest any remediation step here, besides docker-compose down -v
then try again.
@antoineco Thanks for the feedback. Unfortunately, this does not work with my setup, however, I have found a workaround which involves running a script preventing the need to cd to the directory and run the stack each time. The only problem is I can't set an icon for my containers.
#!/bin/bash
(cd /mnt/path/to/docker-elk;docker compose -f docker-compose.yml -f extensions/fleet/fleet-compose.yml up)
Hi there,
I'm using Unraid and features are limited when using custom docker images outside the community marketplace. Unraid has a plugin which allows you to run docker-compose commands and create a stack within the UI assigning docker images to containers. In order to populate the images and startup/stop through the UI I would like to launch fleet from the main yml.
When I try to absorb the fleet yml inside the primary yml, fleet is no longer recognised in kibana. I'm not sure how the pathing works with regards to extensions. Is there a way I can modify the main yml to include extensions? I have tried the following alteration without success.