# Ansible Logs for Different Host/Client/Server

**URL:** <https://forum.ansible.com/t/ansible-logs-for-different-host-client-server/21711>\
**Category:** Ansible Project\
**Created:** [June 9, 2016, 1:07am UTC](https://forum.ansible.com/t/ansible-logs-for-different-host-client-server/21711 "2016-06-09T01:07:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dominique\_Adam\_Igles](https://avatars.discourse-cdn.com/v4/letter/d/e9a140/32.png) [@Dominique\_Adam\_Igles](https://forum.ansible.com/u/Dominique_Adam_Igles)\
**Post date:** [June 9, 2016, 1:07am UTC](https://forum.ansible.com/t/ansible-logs-for-different-host-client-server/21711/1 "2016-06-09T01:07:42Z")

</div>

Hi. I would like to ask if there is a work around in ansible logs.

1. What i want is that in every server that i manage with ansible, there is a separate log for each of server.  
Ex.  
Ansible Server , Server A, Server B and etc.

When I run a playbook to manage the Server A, Server B I want to have a different log. ServerA.log , ServerB.log.

1. Basically the Server A, B, C are Database Server. My playbook basically run a sql update to them. If its possible there is a log for each database in each database server.

Ex.  
Ansible Server, Server A, Server B.  
Server A - Database 1 , Database 2.  
Server B - Database 3 , Database 4.

If I run a playbook to run the sql update in Database 3 and Database 4. I want to have a log for each database. Database3.log and Database4.log

Hope someone helps me in this. Thanks.

---

<div class="post-metadata">

**Author:** ![Brian\_Coca](https://avatars.discourse-cdn.com/v4/letter/b/6de8d8/32.png) [@Brian\_Coca](https://forum.ansible.com/u/Brian_Coca)\
**Post date:** [June 10, 2016, 7:40pm UTC](https://forum.ansible.com/t/ansible-logs-for-different-host-client-server/21711/2 "2016-06-10T19:40:11Z")

</div>

you can create a callback that does this, look at the syslog\_json one for examples.
