# Enable/disable tracing dynamically

**URL:** <https://discuss.elastic.co/t/enable-disable-tracing-dynamically/311261>\
**Category:** Elastic Agent\
**Created:** [August 3, 2022, 6:17am UTC](https://discuss.elastic.co/t/enable-disable-tracing-dynamically/311261 "2022-08-03T06:17:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![yahire](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yahire/32/104451_2.png) [@yahire](https://discuss.elastic.co/u/yahire)\
**Post date:** [August 3, 2022, 6:17am UTC](https://discuss.elastic.co/t/enable-disable-tracing-dynamically/311261/1 "2022-08-03T06:17:47Z")

</div>

Hi team,

Is it possible to enable/disable the tracing dynamically when the application is still running and agent is configured as well, without server restart.

I wanted to enable the tracing and disable the tracing on api call or event from UI.

---

<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:** [August 31, 2022, 6:18am UTC](https://discuss.elastic.co/t/enable-disable-tracing-dynamically/311261/2 "2022-08-31T06:18:14Z")

</div>

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