Dear Team,
I'm trying to integrate the windows server to ElK stack using fleet server , I have followed the steps as per the elk docs
I have generated selfsigned certificate for fleet server and from kibana --> Fleet --> addagent--> created the policy for windows server and it is generated a command to install the elastic agent on windows remote host when i try to install the agent agent enrollment to fleet is working fine but elastic agent is not starting and not shipping the logs to Elasticsearch if any one faced this issue please help me out i got struck on this since from one month
please find the error logs of elastic agent from windows server
{"log.level":"info","@timestamp":"2024-02-27T11:31:30.192Z","log.origin":{"file.name":"cmd/run.go","file.line":154},"message":"Elastic Agent started","log":{"source":"elastic-agent"},"process.pid":8028,"agent.version":"8.10.3","ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2024-02-27T11:31:30.423Z","log.origin":{"file.name":"upgrade/rollback.go","file.line":113},"message":"agent is not upgradable, not starting watcher","log":{"source":"elastic-agent"},"ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2024-02-27T11:31:30.424Z","log.origin":{"file.name":"cmd/run.go","file.line":241},"message":"APM instrumentation disabled","log":{"source":"elastic-agent"},"ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2024-02-27T11:31:30.433Z","log.origin":{"file.name":"application/application.go","file.line":61},"message":"Gathered system information","log":{"source":"elastic-agent"},"ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2024-02-27T11:31:30.448Z","log.origin":{"file.name":"application/application.go","file.line":67},"message":"Detected available inputs and outputs","log":{"source":"elastic-agent"},"inputs":["lumberjack","logstash/metrics","mssql/metrics","aws/metrics","azure/metrics","audit/file_integrity","packet","syslog","windows/metrics","containerd/metrics","rabbitmq/metrics","sql/metrics","log","o365audit","elasticsearch/metrics","kibana/metrics","docker/metrics","linux/metrics","oracle/metrics","activemq/metrics","cloudfoundry","kafka","mqtt","tcp","statsd/metrics","aws-s3","cometd","container","enterprisesearch/metrics","zookeeper/metrics","netflow","awsfargate/metrics","syncgateway/metrics","traefik/metrics","gcs","udp","cloudfoundry/metrics","http/metrics","fleet-server","synthetics/browser","apm","entity-analytics","iis/metrics","vsphere/metrics","audit/auditd","osquery","azure-eventhub","http_endpoint","gcp-pubsub","system/metrics","stan/metrics","etcd/metrics","synthetics/http","endpoint","cel","apache/metrics","prometheus/metrics","docker","redis","beat/metrics","kafka/metrics","nats/metrics","nginx/metrics","filestream","kubernetes/metrics","mongodb/metrics","uwsgi/metrics","unix","redis/metrics","synthetics/icmp","synthetics/tcp","azure-blob-storage","journald","audit/system","postgresql/metrics","haproxy/metrics","gcp/metrics","jolokia/metrics","memcached/metrics","aws-cloudwatch","httpjson","winlog","mysql/metrics"],"ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2024-02-27T11:31:30.464Z","log.origin":{"file.name":"application/application.go","file.line":73},"message":"Determined allowed capabilities","log":{"source":"elastic-agent"},"ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2024-02-27T11:31:30.698Z","log.origin":{"file.name":"application/application.go","file.line":130},"message":"Parsed configuration and determined agent is managed locally","log":{"source":"elastic-agent"},"ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2024-02-27T11:31:30.714Z","log.logger":"api","log.origin":{"file.name":"api/server.go","file.line":74},"message":"Starting stats endpoint","log":{"source":"elastic-agent"},"ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2024-02-27T11:31:30.714Z","log.logger":"api","log.origin":{"file.name":"api/server.go","file.line":76},"message":"Metrics endpoint listening on: 127.0.0.1:6791 (configured: http://localhost:6791)","log":{"source":"elastic-agent"},"ecs.version":"1.6.0"}","log":{"source":"elastic-agent"},"ecs.version":%221.6.0%22%7D/)
{"log.level":"error","@timestamp":"2024-02-27T11:31:30.762Z","log.logger":"control","log.origin":{"file.name":"server/server.go","file.line":84},"message":"unable to create listener: failed to listen on the named pipe \.\pipe\elastic-agent-d7be1a21f51d5a50c554c29384cb5e0a7dd8e01c00bee96dc2aaf976d3ffab47: open \.\pipe\elastic-agent-d7be1a21f51d5a50c554c29384cb5e0a7dd8e01c00bee96dc2aaf976d3ffab47: The system cannot find the path specified.","log":{"source":"elastic-agent"},"ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2024-02-27T11:31:30.763Z","log.logger":"api","log.origin":{"file.name":"api/server.go","file.line":79},"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"}
Please if any one know fix for this please do let me know