# If i use log\_file config. The apm agent is not starting. If i not using this config. Its starting

**URL:** <https://discuss.elastic.co/t/if-i-use-log-file-config-the-apm-agent-is-not-starting-if-i-not-using-this-config-its-starting/332619>\
**Category:** Elastic Agent\
**Created:** [May 5, 2023, 5:51am UTC](https://discuss.elastic.co/t/if-i-use-log-file-config-the-apm-agent-is-not-starting-if-i-not-using-this-config-its-starting/332619 "2023-05-05T05:51:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Stephen\_Joseph](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephen_joseph/32/118672_2.png) [@Stephen\_Joseph](https://discuss.elastic.co/u/Stephen_Joseph)\
**Post date:** [May 5, 2023, 5:51am UTC](https://discuss.elastic.co/t/if-i-use-log-file-config-the-apm-agent-is-not-starting-if-i-not-using-this-config-its-starting/332619/1 "2023-05-05T05:51:06Z")

</div>

APM Server: 8.5.0  
Elastic search:8.5.0  
Kibana:8.5.0  
apm agent: 1.38.0

```auto
elasticapm.properties:-

recording: true
enabled: true
server_urls: http://apm-server.logging.svc.cluster.local:8200
service_name: test-app
log_file: stderr
log_level: INFO

```

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [May 8, 2023, 3:15am UTC](https://discuss.elastic.co/t/if-i-use-log-file-config-the-apm-agent-is-not-starting-if-i-not-using-this-config-its-starting/332619/2 "2023-05-08T03:15:08Z")

</div>

Welcome to our community! 😃

I think you will need to provide a bit more information please.  
What agent are you using? What do the logs of the agent show?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [June 5, 2023, 3:16am UTC](https://discuss.elastic.co/t/if-i-use-log-file-config-the-apm-agent-is-not-starting-if-i-not-using-this-config-its-starting/332619/3 "2023-06-05T03:16:05Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
