# Disable logging on remote hosts

**URL:** <https://forum.ansible.com/t/disable-logging-on-remote-hosts/12978>\
**Category:** Ansible Project\
**Created:** [June 18, 2013, 1:37pm UTC](https://forum.ansible.com/t/disable-logging-on-remote-hosts/12978 "2013-06-18T13:37:55Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![martin\_f\_krafft](https://avatars.discourse-cdn.com/v4/letter/m/8797f3/32.png) [@martin\_f\_krafft](https://forum.ansible.com/u/martin_f_krafft)\
**Post date:** [June 18, 2013, 1:37pm UTC](https://forum.ansible.com/t/disable-logging-on-remote-hosts/12978/1 "2013-06-18T13:37:55Z")

</div>

Dear list,

is there a way to disable syslogging module invocations on the  
remote hosts?

I browsed the web and the code, and all I could find was the  
ability to set the (undocumented syslog\_facility configuration file  
option), but that would just change the facility where to log.

There's also some "no\_log" argument that modules can use to  
influence the behaviour of module\_common.py.

But I have not found a way for me, as sysadmin, to prevent this  
logging.

Am I overlooking something?

Would this be a worthwhile patch?

Thanks,

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan2](https://avatars.discourse-cdn.com/v4/letter/m/da6949/32.png) [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Post date:** [June 18, 2013, 4:38pm UTC](https://forum.ansible.com/t/disable-logging-on-remote-hosts/12978/2 "2013-06-18T16:38:58Z")

</div>

There’s no current way to turn this off.

I’m open to patches that would understand setting the Syslog facility to “off” (see constants.py) and the appropriate corresponding change in lib/ansible/module\_common.

---

<div class="post-metadata">

**Author:** ![martin\_f\_krafft](https://avatars.discourse-cdn.com/v4/letter/m/8797f3/32.png) [@martin\_f\_krafft](https://forum.ansible.com/u/martin_f_krafft)\
**Post date:** [June 18, 2013, 7:14pm UTC](https://forum.ansible.com/t/disable-logging-on-remote-hosts/12978/3 "2013-06-18T19:14:13Z")

</div>

also sprach Michael DeHaan \<michael@ansibleworks.com\> [2013.06.18.1838 +0200]:

> I'm open to patches that would understand setting the Syslog facility to  
> "off" (see constants.py) and the appropriate corresponding change in  
> lib/ansible/module\_common.

#3253

---

<div class="post-metadata">

**Author:** ![iat00](https://avatars.discourse-cdn.com/v4/letter/i/898d66/32.png) [@iat00](https://forum.ansible.com/u/iat00)\
**Post date:** [September 20, 2013, 9:19am UTC](https://forum.ansible.com/t/disable-logging-on-remote-hosts/12978/4 "2013-09-20T09:19:22Z")

</div>

is this (#3253) implemented? merged?  
How can I use it?

---

<div class="post-metadata">

**Author:** ![Serge\_van\_Ginderacht](https://avatars.discourse-cdn.com/v4/letter/s/b782af/32.png) [@Serge\_van\_Ginderacht](https://forum.ansible.com/u/Serge_van_Ginderacht)\
**Post date:** [September 20, 2013, 9:39am UTC](https://forum.ansible.com/t/disable-logging-on-remote-hosts/12978/5 "2013-09-20T09:39:16Z")

</div>

It's not implemented/merged​, see  
[https://github.com/ansible/ansible/pull/3253](https://github.com/ansible/ansible/pull/3253)
