# Watcher Logging Action

**URL:** <https://discuss.elastic.co/t/watcher-logging-action/179712>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-alerting\
**Created:** [May 6, 2019, 6:54am UTC](https://discuss.elastic.co/t/watcher-logging-action/179712 "2019-05-06T06:54:46Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![hyhong](https://avatars.discourse-cdn.com/v4/letter/h/3bc359/32.png) [@hyhong](https://discuss.elastic.co/u/hyhong)\
**Post date:** [May 6, 2019, 6:54am UTC](https://discuss.elastic.co/t/watcher-logging-action/179712/1 "2019-05-06T06:54:46Z")

</div>

The logging action category's default is xpack.watcher.actions.logging, I want record to a single file.What category should I set?

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [May 6, 2019, 7:53am UTC](https://discuss.elastic.co/t/watcher-logging-action/179712/2 "2019-05-06T07:53:49Z")

</div>

The category is only half the part that needs to be done, the other half is configuring the logging to create a separate file for that category, which needs to be done in the `config/log4j2.properties` file.

--Alex

---

<div class="post-metadata">

**Author:** ![hyhong](https://avatars.discourse-cdn.com/v4/letter/h/3bc359/32.png) [@hyhong](https://discuss.elastic.co/u/hyhong)\
**Post date:** [May 7, 2019, 2:25am UTC](https://discuss.elastic.co/t/watcher-logging-action/179712/3 "2019-05-07T02:25:15Z")

</div>

ok，thanks

---

<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 4, 2019, 2:35am UTC](https://discuss.elastic.co/t/watcher-logging-action/179712/4 "2019-06-04T02:35:00Z")

</div>

Closed on June 4, 2019, 2:35am UTC

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