# Writing action logs to a separate log file

**URL:** <https://discuss.elastic.co/t/writing-action-logs-to-a-separate-log-file/57428>\
**Category:** Elasticsearch\
**Created:** [August 7, 2016, 4:14pm UTC](https://discuss.elastic.co/t/writing-action-logs-to-a-separate-log-file/57428 "2016-08-07T16:14:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![afrozl](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/afrozl/32/26197_2.png) [@afrozl](https://discuss.elastic.co/u/afrozl)\
**Post date:** [August 7, 2016, 4:14pm UTC](https://discuss.elastic.co/t/writing-action-logs-to-a-separate-log-file/57428/1 "2016-08-07T16:14:16Z")

</div>

I've modified logging.yml to add a separate file for logging action execution:

# log action execution errors for easier debugging

action: DEBUG, action\_log\_file

Unfortunately, the action execution is now getting logged to both the main log as well as the new action log.

Is there a way to have the action execution logged to just the action log file?

---

<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:** [July 5, 2017, 10:29pm UTC](https://discuss.elastic.co/t/writing-action-logs-to-a-separate-log-file/57428/2 "2017-07-05T22:29:34Z")

</div>

Closed on July 5, 2017, 10:29pm UTC


