# Elastic Agent service stops after launching but doesn't throw any error in command line

**URL:** <https://discuss.elastic.co/t/elastic-agent-service-stops-after-launching-but-doesnt-throw-any-error-in-command-line/260547>\
**Category:** Beats\
**Tags:** elastic-agent\
**Created:** [January 8, 2021, 1:14pm UTC](https://discuss.elastic.co/t/elastic-agent-service-stops-after-launching-but-doesnt-throw-any-error-in-command-line/260547 "2021-01-08T13:14:57Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![icious](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/icious/32/77965_2.png) [@icious](https://discuss.elastic.co/u/icious)\
**Post date:** [January 12, 2021, 1:55pm UTC](https://discuss.elastic.co/t/elastic-agent-service-stops-after-launching-but-doesnt-throw-any-error-in-command-line/260547/4 "2021-01-12T13:55:51Z")

</div>

Hi,

In `data/elastic-agent-*/logs/` folder there's only a log file with 2 entries, resulting from running install command. There is no `default` folder for filebeat and metricbeat logs either.

This is the content of `elastic-agent-json.log`

```auto
{"log.level":"debug","@timestamp":"2021-01-12T14:43:26.050+0100","log.origin":{"file.name":"kibana/client.go","file.line":170},"message":"Request method: POST, path: /api/fleet/agents/enroll","ecs.version":"1.6.0"}

{"log.level":"warn","@timestamp":"2021-01-12T14:43:26.051+0100","log.logger":"tls","log.origin":{"file.name":"tlscommon/tls_config.go","file.line":93},"message":"SSL/TLS verifications disabled.","ecs.version":"1.6.0"}

```

As @dgcapel said, this file does not change at all after restarting service, nor create new log files.

I noticed in other hosts a log file is created in `C:\Program Files\Elastic\Agent\elastic-agent.log` but no matter what it is not created in this host. It only shows up when running Elastic Agent from terminal (with run option).

For additional information I'm running Windows 10 Enterprise N, but this hasn't been an issue in other hosts.

Thank you.

---

_[View the full topic](https://discuss.elastic.co/t/elastic-agent-service-stops-after-launching-but-doesnt-throw-any-error-in-command-line/260547)._
