# Is it possible to change the logging path for Elastic Agent?

**URL:** <https://discuss.elastic.co/t/is-it-possible-to-change-the-logging-path-for-elastic-agent/329983>\
**Category:** Elastic Agent\
**Created:** [April 14, 2023, 8:59am UTC](https://discuss.elastic.co/t/is-it-possible-to-change-the-logging-path-for-elastic-agent/329983 "2023-04-14T08:59:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![lengoyvaerts](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lengoyvaerts/32/6748_2.png) [@lengoyvaerts](https://discuss.elastic.co/u/lengoyvaerts)\
**Post date:** [April 14, 2023, 8:59am UTC](https://discuss.elastic.co/t/is-it-possible-to-change-the-logging-path-for-elastic-agent/329983/1 "2023-04-14T08:59:43Z")

</div>

Hi community

As per the topic's title, I'm trying to configure the logging path when installing the Elastic Agent. I'm using central fleet management and following the installation guidelines from the Kibana UI as described [here](https://www.elastic.co/guide/en/fleet/8.6/install-fleet-managed-elastic-agent.html).

[This page](https://www.elastic.co/guide/en/fleet/8.6/installation-layout.html) mentions that the path can't be overridden, but the [command reference page](https://www.elastic.co/guide/en/fleet/8.6/elastic-agent-cmd-options.html#elastic-agent-global-flags) mentions the `--path.logs` option, which suggests it is possible.

I've tried adding this option to the install and restart command, but it doesn't seem to be working. Am I missing something here?

---

<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:** [May 12, 2023, 8:59am UTC](https://discuss.elastic.co/t/is-it-possible-to-change-the-logging-path-for-elastic-agent/329983/2 "2023-05-12T08:59:47Z")

</div>

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