Fleet for collecting log

Hello Everyone,
Hope all are doing good. I am trying to install Fleet server with my ELK . After installation my fleet server status showed "Unhealthy". I used self-signed certificate for fleet server. Here I also attached the setup information, error log file of my fleet server. I'm waiting for your valuable response. My Elastic and Fleet server version 8.12.0. I create self-signed certificate for elastic, Kibana and fleet server separately.



here, I copy my error log file .
{"log.level":"info","@timestamp":"2024-02-18T10:32:34.140Z","log.origin":{"file.name":"cmd/run.go","file.line":157},"message":"Elastic Agent started","log":{"source":"elastic-agent"},"process.pid":277949,"agent.version":"8.12.0","ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2024-02-18T10:32:34.373Z","log.origin":{"file.name":"upgrade/rollback.go","file.line":114},"message":"agent is not upgradable, not starting watcher","log":{"source":"elastic-agent"},"ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2024-02-18T10:32:34.373Z","log.origin":{"file.name":"cmd/run.go","file.line":240},"message":"APM instrumentation disabled","log":{"source":"elastic-agent"},"ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2024-02-18T10:32:34.374Z","log.origin":{"file.name":"application/application.go","file.line":62},"message":"Gathered system information","log":{"source":"elastic-agent"},"ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2024-02-18T10:32:34.404Z","log.origin":{"file.name":"application/application.go","file.line":68},"message":"Detected available inputs and outputs","log":{"source":"elastic-agent"},"inputs":["prometheus/metrics","journald","cloudfoundry/metrics","jolokia/metrics","cloudbeat/vuln_mgmt_aws","azure-eventhub","kafka","logstash/metrics","syncgateway/metrics","gcp/metrics","traefik/metrics","pf-elastic-symbolizer","httpjson","beat/metrics","o365audit","azure/metrics","activemq/metrics","vsphere/metrics","zookeeper/metrics","cloudbeat/cis_eks","cloudfoundry","lumberjack","cloudbeat/cis_aws","cloudbeat/cis_azure","enterprisesearch/metrics","mongodb/metrics","awsfargate/metrics","http/metrics","apache/metrics","statsd/metrics","audit/auditd","container","pf-host-agent","synthetics/tcp","gcs","tcp","filestream","mysql/metrics","containerd/metrics","iis/metrics","audit/system","cloud_defend/control","pf-elastic-collector","synthetics/http","osquery","winlog","synthetics/browser","packet","azure-blob-storage","http_endpoint","syslog","kubernetes/metrics","postgresql/metrics","aws-s3","docker","mqtt","elasticsearch/metrics","redis/metrics","system/metrics","nats/metrics","stan/metrics","audit/file_integrity","gcp-pubsub","cloudbeat/cis_gcp","cel","rabbitmq/metrics","cloudbeat/cis_k8s","fleet-server","netflow","nginx/metrics","uwsgi/metrics","windows/metrics","etcd/metrics","memcached/metrics","cometd","docker/metrics","aws/metrics","mssql/metrics","aws-cloudwatch","unix","linux/metrics","kafka/metrics","redis","kibana/metrics","endpoint","entity-analytics","udp","oracle/metrics","haproxy/metrics","sql/metrics","synthetics/icmp","cloudbeat","apm","log"],"ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2024-02-18T10:32:34.404Z","log.origin":{"file.name":"capabilities/capabilities.go","file.line":48},"message":"Capabilities file not found in /etc/elastic-agent/capabilities.yml","log":{"source":"elastic-agent"},"ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2024-02-18T10:32:34.404Z","log.origin":{"file.name":"application/application.go","file.line":74},"message":"Determined allowed capabilities","log":{"source":"elastic-agent"},"ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2024-02-18T10:32:34.404Z","log.origin":{"file.name":"application/application.go","file.line":89},"message":"Loading baseline config from /etc/elastic-agent/elastic-agent.yml","log":{"source":"elastic-agent"},"ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2024-02-18T10:32:34.556Z","log.origin":{"file.name":"application/application.go","file.line":155},"message":"Parsed configuration and determined agent is in Fleet Server bootstrap mode","log":{"source":"elastic-agent"},"ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2024-02-18T10:32:34.559Z","log.origin":{"file.name":"runtime/manager.go","file.line":209},"message":"Starting grpc control protocol listener on port 6789 with max_message_size 104857600","log":{"source":"elastic-agent"},"ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2024-02-18T10:32:34.559Z","log.origin":{"file.name":"upgrade/upgrade.go","file.line":116},"message":"Source URI changed from "https://artifacts.elastic.co/downloads/\" to "https://artifacts.elastic.co/downloads/\"","log":{"source":"elastic-agent"},"ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2024-02-18T10:32:34.559Z","log.logger":"composable.providers.docker","log.origin":{"file.name":"docker/docker.go","file.line":44},"message":"Docker provider skipped, unable to connect: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?","log":{"source":"elastic-agent"},"ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2024-02-18T10:32:34.560Z","log.origin":{"file.name":"reload/reload.go","file.line":49},"message":"Starting server","log":{"source":"elastic-agent"},"ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2024-02-18T10:32:34.560Z","log.logger":"api","log.origin":{"file.name":"api/server.go","file.line":75},"message":"Starting stats endpoint","log":{"source":"elastic-agent"},"ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2024-02-18T10:32:34.560Z","log.logger":"api","log.origin":{"file.name":"api/server.go","file.line":77},"message":"Metrics endpoint listening on: 127.0.0.1:6791 (configured: http://localhost:6791)","log":{"source":"elastic-agent"},"ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2024-02-18T10:32:34.708Z","log.origin":{"file.name":"coordinator/coordinator.go","file.line":1158},"message":"Updating running component model","log":{"source":"elastic-agent"},"ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2024-02-18T10:32:34.935Z","log.origin":{"file.name":"coordinator/coordinator.go","file.line":1158},"message":"Updating running component model","log":{"source":"elastic-agent"},"ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2024-02-18T10:32:35.249Z","log.origin":{"file.name":"coordinator/coordinator.go","file.line":563},"message":"Spawned new component fleet-server-default: Starting: spawned pid '277963'","log":{"source":"elastic-agent"},"component":{"id":"fleet-server-default","state":"STARTING"},"ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2024-02-18T10:32:35.249Z","log.origin":{"file.name":"coordinator/coordinator.go","file.line":570},"message":"Spawned new unit fleet-server-default-fleet-server: Starting: spawned pid '277963'","log":{"source":"elastic-agent"},"component":{"id":"fleet-server-default","state":"STARTING"},"unit":{"id":"fleet-server-default-fleet-server","type":"input","state":"STARTING"},"ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2024-02-18T10:32:35.249Z","log.origin":{"file.name":"coordinator/coordinator.go","file.line":570},"message":"Spawned new unit fleet-server-default: Starting: spawned pid '277963'","log":{"source":"elastic-agent"},"component":{"id":"fleet-server-default","state":"STARTING"},"unit":{"id":"fleet-server-default","type":"output","state":"STARTING"},"ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2024-02-18T10:32:35.309Z","message":"Boot fleet-server","component":{"binary":"fleet-server","dataset":"elastic_agent.fleet_server","id":"fleet-server-default","type":"fleet-server"},"log":{"source":"fleet-server-default"},"service.type":"fleet-server","version":"8.12.0","commit":"174e5483","exe":"/var/lib/elastic-agent/data/elastic-agent-5cbf2e/components/fleet-server","ecs.version":"1.6.0","service.name":"fleet-server","pid":277963,"ppid":277949,"args":["--agent-mode","-E","logging.level=debug","-E","logging.to_stderr=true","-E","path.data=/var/lib/elastic-agent/data/elastic-agent-5cbf2e/run/fleet-server-default"],"ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2024-02-18T10:32:35.311Z","message":"starting communication connection back to Elastic Agent","component":{"binary":"fleet-server","dataset":"elastic_agent.fleet_server","id":"fleet-server-default","type":"fleet-server"},"log":{"source":"fleet-server-default"},"service.type":"fleet-server","ecs.version":"1.6.0","service.name":"fleet-server","ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2024-02-18T10:32:35.334Z","log.origin":{"file.name":"coordinator/coordinator.go","file.line":583},"message":"Component state changed fleet-server-default (STARTING->HEALTHY): Healthy: communicating with pid '277963'","log":{"source":"elastic-agent"},"component":{"id":"fleet-server-default","state":"HEALTHY","old_state":"STARTING"},"ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2024-02-18T10:32:35.339Z","message":"Found settings with recommended ram.","component":{"binary":"fleet-server","dataset":"elastic_agent.fleet_server","id":"fleet-server-default","type":"fleet-server"},"log":{"source":"fleet-server-default"},"recommended_mb":16192,"ecs.version":"1.6.0","service.name":"fleet-server","service.type":"fleet-server","memory_mb":17190,"ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2024-02-18T10:32:35.339Z","message":"Setting cache config options","component":{"binary":"fleet-server","dataset":"elastic_agent.fleet_server","id":"fleet-server-default","type":"fleet-server"},"log":{"source":"fleet-server-default"},"ecs.version":"1.6.0","service.name":"fleet-server","service.type":"fleet-server","cfg":{"APIKeyJitter":300000000000,"APIKeyTTL":900000000000,"ActionTTL":300000000000,"ArtifactTTL":86400000000000,"EnrollKeyTTL":60000000000,"MaxCost":268435456,"NumCounters":1600000},"ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2024-02-18T10:32:35.348Z","message":"Starting","component":{"binary":"fleet-server","dataset":"elastic_agent.fleet_server","id":"fleet-server-default","type":"fleet-server"},"log":{"source":"fleet-server-default"},"ecs.version":"1.6.0","service.name":"fleet-server","service.type":"fleet-server","state":"STARTING","ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2024-02-18T10:32:35.348Z","message":"Found settings with recommended ram.","component":{"binary":"fleet-server","dataset":"elastic_agent.fleet_server","id":"fleet-server-default","type":"fleet-server"},"log":{"source":"fleet-server-default"},"ecs.version":"1.6.0","service.name":"fleet-server","service.type":"fleet-server","memory_mb":17190,"recommended_mb":16192,"ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2024-02-18T10:32:35.359Z","message":"initial server configuration","component":{"binary":"fleet-server","dataset":"elastic_agent.fleet_server","id":"fleet-server-default","type":"fleet-server"},"log":{"source":"fleet-server-default"},"new":{"Fleet":{"Agent":{"ID":"","Logging":{"Level":"info"},"Version":""},"Host":{"ID":"","Name":""}},"HTTP":{"Enabled":false,"Host":"localhost","Port":5066,"SecurityDescriptor":"","User":""},"Inputs":[{"Cache":{"APIKeyJitter":0,"APIKeyTTL":0,"ActionTTL":0,"ArtifactTTL":0,"EnrollKeyTTL":0,"MaxCost":0,"NumCounters":0},"Monitor":{"FetchSize":0,"PollTimeout":0},"Policy":{"ID":""},"Server":{"Bulk":{"FlushInterval":250000000,"FlushMaxPending":8,"FlushThresholdCount":2048,"FlushThresholdSize":1048576},"CompressionLevel":1,"CompressionThresh":1024,"GC":{"CleanupAfterExpiredInterval":"30d","ScheduleInterval":3600000000000},"Host":"0.0.0.0","Instrumentation":{"APIKey":"","APIKeyPath":"","Enabled":false,"Environment":"","GlobalLabels":"","Hosts":null,"SecretToken":"","SecretTokenPath":"","TLS":{"ServerCA":"","ServerCertificate":"","SkipVerify":false},"TransactionSampleRate":""},"InternalPort":8221,"Limits":{"AckLimit":{"Burst":4000,"Interval":500000,"Max":8000,"MaxBody":2097152},"ActionLimit":{"Burst":100,"Interval":500000,"Max":0,"MaxBody":0},"ArtifactLimit":{"Burst":4000,"Interval":500000,"Max":8000,"MaxBody":0},"CheckinLimit":{"Burst":4000,"Interval":500000,"Max":40000,"MaxBody":1048576},"DeliverFileLimit":{"Burst":40,"Interval":100000000,"Max":80,"MaxBody":0},"EnrollLimit":{"Burst":100,"Interval":10000000,"Max":200,"MaxBody":524288},"GetPGPKey":{"Burst":25,"Interval":5000000,"Max":50,"MaxBody":0},"MaxAgents":0,"MaxConnections":0,"MaxHeaderByteSize":8192,"PolicyThrottle":2000000,"StatusLimit":{"Burst":200,"Interval":5000000,"Max":400,"MaxBody":0},"UploadChunkLimit":{"Burst":40,"Interval":3000000,"Max":80,"MaxBody":4194304},"UploadEndLimit":{"Burst":40,"Interval":2000000000,"Max":80,"MaxBody":1024},"UploadStartLimit":{"Burst":40,"Interval":2000000000,"Max":80,"MaxBody":5242880}},"PGP":{"Dir":"/var/lib/elastic-agent/data/elastic-agent-5cbf2e/components/elastic-agent-upgrade-keys","UpstreamURL":"https://artifacts.elastic.co/GPG-KEY-elastic-agent"},"Port":8220,"Profiler":{"Bind":"localhost:6060","Enabled":false},"Runtime":{"GCPercent":0,"MemoryLimit":0},"StaticPolicyTokens":{"Enabled":false,"PolicyTokens":null},"TLS":{"CASha256":null,"CAs":null,"Certificate":{"Certificate":"/etc/fleet/cert/fleet.crt","Key":"[redacted]","Passphrase":"","PassphrasePath":""},"CipherSuites":null,"ClientAuth":0,"CurveTypes":null,"Enabled":null,"VerificationMode":"full","Versions":null},"Timeouts":{"CheckinJitter":30000000000,"CheckinLongPoll":300000000000,"CheckinMaxPoll":3600000000000,"CheckinTimestamp":30000000000,"Idle":30000000000,"Read":60000000000,"ReadHeader":5000000000,"Write":600000000000}},"Type":""}],"Logging":{"Files":null,"Level":"info","Pretty":false,"ToFiles":true,"ToStderr":true},"Output":{"Elasticsearch":{"Headers":null,"Hosts":["172.19.1.173:9200"],"MaxConnPerHost":128,"MaxContentLength":104857600,"MaxRetries":3,"Path":"","Protocol":"https","ProxyDisable":false,"ProxyHeaders":{},"ProxyURL":"","ServiceToken":"[redacted]","ServiceTokenPath":"","TLS":{"CASha256":null,"CATrustedFingerprint":"","CAs":["/etc/elasticsearch/certs/elastic/elastic.crt"],"Certificate":{"Certificate":"","Key":"","Passphrase":"","PassphrasePath":""},"CipherSuites":null,"CurveTypes":null,"Enabled":null,"Renegotiation":"never","VerificationMode":"full","Versions":null},"Timeout":90000000000},"Extra":null}},"ecs.version":"1.6.0","service.name":"fleet-server","service.type":"fleet-server","ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2024-02-18T10:32:35.359Z","message":"starting server on configuration change","component":{"binary":"fleet-server","dataset":"elastic_agent.fleet_server","id":"fleet-server-default","type":"fleet-server"},"log":{"source":"fleet-server-default"},"ecs.version":"1.6.0","service.name":"fleet-server","service.type":"fleet-server","ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2024-02-18T10:32:35.361Z","message":"Run bulker with options","component":{"binary":"fleet-server","dataset":"elastic_agent.fleet_server","id":"fleet-server-default","type":"fleet-server"},"log":{"source":"fleet-server-default"},"ecs.version":"1.6.0","service.name":"fleet-server","service.type":"fleet-server","opts":{"apikeyMaxParallel":120,"apikeyMaxReqSize":104857600,"blockQueueSz":32,"flushInterval":250,"flushThresholdCnt":2048,"flushThresholdSz":1048576,"maxPending":8},"ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2024-02-18T10:32:35.454Z","message":"Elasticsearch compatibility check successful","component":{"binary":"fleet-server","dataset":"elastic_agent.fleet_server","id":"fleet-server-default","type":"fleet-server"},"log":{"source":"fleet-server-default"},"service.type":"fleet-server","fleet_version":"8.12.0","elasticsearch_version":"8.12.0","ecs.version":"1.6.0","service.name":"fleet-server","ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2024-02-18T10:32:35.456Z","message":"migration AgentMetadata done","component":{"binary":"fleet-server","dataset":"elastic_agent.fleet_server","id":"fleet-server-default","type":"fleet-server"},"log":{"source":"fleet-server-default"},"service.type":"fleet-server","fleet.migration.es.took":0,"fleet.migration.total.duration":2.394101,"service.name":"fleet-server","fleet.migration.deleted":0,"fleet.migration.updated":0,"ecs.version":"1.6.0","fleet.migration.es.timed_out":false,"fleet.migration.version_conflicts":0,"fleet.migration.noops":0,"fleet.migration.total.count":0,"fleet.migration.batches":0,"fleet.migration.retries.bulk":0,"fleet.migration.retries.search":0,"fleet.migration.name":"AgentMetadata","ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2024-02-18T10:32:35.458Z","message":"migration AgentOutputs done","component":{"binary":"fleet-server","dataset":"elastic_agent.fleet_server","id":"fleet-server-default","type":"fleet-server"},"log":{"source":"fleet-server-default"},"fleet.migration.noops":0,"fleet.migration.retries.search":0,"fleet.migration.total.duration":1.825966,"fleet.migration.total.count":0,"fleet.migration.name":"AgentOutputs","fleet.migration.es.took":0,"fleet.migration.es.timed_out":false,"fleet.migration.retries.bulk":0,"ecs.version":"1.6.0","service.name":"fleet-server","fleet.migration.version_conflicts":0,"service.type":"fleet-server","fleet.migration.updated":0,"fleet.migration.deleted":0,"fleet.migration.batches":0,"ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2024-02-18T10:32:35.459Z","message":"upload limits","component":{"binary":"fleet-server","dataset":"elastic_agent.fleet_server","id":"fleet-server-default","type":"fleet-server"},"log":{"source":"fleet-server-default"},"limits":{"Burst":4000,"Interval":500000,"Max":8000,"MaxBody":0},"maxFileSize":104857600,"ecs.version":"1.6.0","service.name":"fleet-server","service.type":"fleet-server","ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2024-02-18T10:32:35.459Z","message":"upload limits","component":{"binary":"fleet-server","dataset":"elastic_agent.fleet_server","id":"fleet-server-default","type":"fleet-server"},"log":{"source":"fleet-server-default"},"ecs.version":"1.6.0","service.name":"fleet-server","service.type":"fleet-server","limits":{"Burst":4000,"Interval":500000,"Max":8000,"MaxBody":0},"maxFileSize":104857600,"ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2024-02-18T10:32:35.461Z","message":"starting index monitor","component":{"binary":"fleet-server","dataset":"elastic_agent.fleet_server","id":"fleet-server-default","type":"fleet-server"},"log":{"source":"fleet-server-default"},"@timestamp":"2024-02-18T10:32:35.46Z","ecs.version":"1.6.0","service.name":"fleet-server","service.type":"fleet-server","index":".fleet-actions","ctx":"index monitor","ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2024-02-18T10:32:35.461Z","message":"server hard connection limiter disabled","component":{"binary":"fleet-server","dataset":"elastic_agent.fleet_server","id":"fleet-server-default","type":"fleet-server"},"log":{"source":"fleet-server-default"},"ecs.version":"1.6.0","service.name":"fleet-server","service.type":"fleet-server","@timestamp":"2024-02-18T10:32:35.46Z","ecs.version":"1.6.0"}
{"log.level":"warn","@timestamp":"2024-02-18T10:32:35.461Z","message":"missing config fleet.agent.id; acceptable until Elastic Agent has enrolled","component":{"binary":"fleet-server","dataset":"elastic_agent.fleet_server","id":"fleet-server-default","type":"fleet-server"},"log":{"source":"fleet-server-default"},"ctx":"policy leader manager","@timestamp":"2024-02-18T10:32:35.46Z","ecs.version":"1.6.0","service.name":"fleet-server","service.type":"fleet-server","ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2024-02-18T10:32:35.461Z","message":"run policy monitor","component":{"binary":"fleet-server","dataset":"elastic_agent.fleet_server","id":"fleet-server-default","type":"fleet-server"},"log":{"source":"fleet-server-default"},"service.type":"fleet-server","ctx":"policy agent monitor","throttle":2,"@timestamp":"2024-02-18T10:32:35.46Z","ecs.version":"1.6.0","service.name":"fleet-server","ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2024-02-18T10:32:35.461Z","message":"server hard connection limiter disabled","component":{"binary":"fleet-server","dataset":"elastic_agent.fleet_server","id":"fleet-server-default","type":"fleet-server"},"log":{"source":"fleet-server-default"},"ecs.version":"1.6.0","service.name":"fleet-server","service.type":"fleet-server","@timestamp":"2024-02-18T10:32:35.46Z","ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2024-02-18T10:32:35.461Z","message":"starting index monitor","component":{"binary":"fleet-server","dataset":"elastic_agent.fleet_server","id":"fleet-server-default","type":"fleet-server"},"log":{"source":"fleet-server-default"},"ecs.version":"1.6.0","service.name":"fleet-server","service.type":"fleet-server","index":".fleet-policies","ctx":"index monitor","@timestamp":"2024-02-18T10:32:35.46Z","ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2024-02-18T10:32:35.461Z","message":"Listening on 0.0.0.0:8220","component":{"binary":"fleet-server","dataset":"elastic_agent.fleet_server","id":"fleet-server-default","type":"fleet-server"},"log":{"source":"fleet-server-default"},"ecs.version":"1.6.0","service.name":"fleet-server","service.type":"fleet-server","ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2024-02-18T10:32:35.461Z","message":"Listening on localhost:8221","component":{"binary":"fleet-server","dataset":"elastic_agent.fleet_server","id":"fleet-server-default","type":"fleet-server"},"log":{"source":"fleet-server-default"},"ecs.version":"1.6.0","service.name":"fleet-server","service.type":"fleet-server","ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2024-02-18T10:32:35.977Z","message":"Running on policy with Fleet Server integration: fleet-server-policy; missing config fleet.agent.id (expected during bootstrap process)","component":{"binary":"fleet-server","dataset":"elastic_agent.fleet_server","id":"fleet-server-default","type":"fleet-server"},"log":{"source":"fleet-server-default"},"service.name":"fleet-server","service.type":"fleet-server","state":"DEGRADED","ecs.version":"1.6.0","ecs.version":"1.6.0"}
{"log.level":"warn","@timestamp":"2024-02-18T10:32:35.978Z","log.origin":{"file.name":"coordinator/coordinator.go","file.line":601},"message":"Unit state changed fleet-server-default-fleet-server (STARTING->DEGRADED): Running on policy with Fleet Server integration: fleet-server-policy; missing config fleet.agent.id (expected during bootstrap process)","log":{"source":"elastic-agent"},"component":{"id":"fleet-server-default","state":"HEALTHY"},"unit":{"id":"fleet-server-default-fleet-server","type":"input","state":"DEGRADED","old_state":"STARTING"},"ecs.version":"1.6.0"}
{"log.level":"warn","@timestamp":"2024-02-18T10:32:35.978Z","log.origin":{"file.name":"coordinator/coordinator.go","file.line":601},"message":"Unit state changed fleet-server-default (STARTING->DEGRADED): Running on policy with Fleet Server integration: fleet-server-policy; missing config fleet.agent.id (expected during bootstrap process)","log":{"source":"elastic-agent"},"component":{"id":"fleet-server-default","state":"HEALTHY"},"unit":{"id":"fleet-server-default","type":"output","state":"DEGRADED","old_state":"STARTING"},"ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2024-02-18T10:32:37.776Z","message":"Elastic Agent successfully enrolled","component":{"binary":"fleet-server","dataset":"elastic_agent.fleet_server","id":"fleet-server-default","type":"fleet-server"},"log":{"source":"fleet-server-default"},"fleet.enroll.apikey.id":"J9Zkpo0BRlIa8tAxc0Mo","fleet.policy.id":"fleet-server-policy","http.response.body.bytes":1055,"service.type":"fleet-server","service.name":"fleet-server","http.request.id":"01HPXWCRJF6KYY74AGHY90JGMJ","ecs.version":"1.6.0","server.address":"","fleet.access.apikey.id":"TNbGu40BRlIa8tAxY0NY","fleet.agent.id":"a6553fcf-8ac5-4eac-bca7-fc11ebc47427","event.duration":569247230,"mod":"enroll","ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2024-02-18T10:32:37.999Z","log.origin":{"file.name":"cmd/run.go","file.line":308},"message":"signal "terminated" received","log":{"source":"elastic-agent"},"ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2024-02-18T10:32:37.999Z","log.origin":{"file.name":"cmd/run.go","file.line":320},"message":"Shutting down Elastic Agent and sending last events...","log":{"source":"elastic-agent"},"ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2024-02-18T10:32:37.999Z","message":"On signal","component":{"binary":"fleet-server","dataset":"elastic_agent.fleet_server","id":"fleet-server-default","type":"fleet-server"},"log":{"source":"fleet-server-default"},"service.type":"fleet-server","sig":"terminated","ecs.version":"1.6.0","service.name":"fleet-server","ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2024-02-18T10:32:38.199Z","log.origin":{"file.name":"cmd/run.go","file.line":326},"message":"Shutting down completed.","log":{"source":"elastic-agent"},"ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2024-02-18T10:32:38.199Z","log.origin":{"file.name":"reload/reload.go","file.line":68},"message":"Stopping server","log":{"source":"elastic-agent"},"ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2024-02-18T10:32:38.200Z","log.logger":"api","log.origin":{"file.name":"api/server.go","file.line":80},"message":"Stats endpoint (127.0.0.1:6791) finished: accept tcp 127.0.0.1:6791: use of closed network connection","log":{"source":"elastic-agent"},"ecs.version":"1.6.0"}

Pls I am having similar issue, this morning, I observed that the fleet server on the Elastic server is displaying a prompt indicating it's unhealthy. This issue is causing errors when attempting to view the status of servers onboarded on the fleet server. Could you please assist me with if you have been able to resolve yours.

I resolved my issue. I was set the wrong cert path in fleet-server-es-ca path. There weren't any clear instruction for Elasticsearch ca path. what's error showing your fleet server?