# Task Output import to SQL

**URL:** <https://forum.ansible.com/t/task-output-import-to-sql/31763>\
**Category:** Ansible Project\
**Tags:** awx\
**Created:** [December 4, 2019, 10:00pm UTC](https://forum.ansible.com/t/task-output-import-to-sql/31763 "2019-12-04T22:00:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ansible\_USer2019](https://avatars.discourse-cdn.com/v4/letter/a/3ec8ea/32.png) [@Ansible\_USer2019](https://forum.ansible.com/u/Ansible_USer2019)\
**Post date:** [December 4, 2019, 10:00pm UTC](https://forum.ansible.com/t/task-output-import-to-sql/31763/1 "2019-12-04T22:00:49Z")

</div>

Hi Group,

i want to run several jobs. How can the JSON result stored in a database or something like that to check what happened?  
I am not using tower or awx.

So do i need to pipe the output into a text file and run another script to parse the content and import everything into a SQL database?

Thank you

---

<div class="post-metadata">

**Author:** ![racke](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/racke/32/4767_2.png) [@racke](https://forum.ansible.com/u/racke)\
**Post date:** [December 5, 2019, 9:06am UTC](https://forum.ansible.com/t/task-output-import-to-sql/31763/2 "2019-12-05T09:06:43Z")

</div>

> Hi Group,
> 
> i want to run several jobs. How can the JSON result stored in a database or something like that to check what happened?  
> I am not using tower or awx.
> 
> So do i need to pipe the output into a text file and run another script to parse the content and import everything into  
> a SQL database?
> 
> Thank you

The logical way would be to use one of the existing callback plugins or write your own:

[https://docs.ansible.com/ansible/latest/plugins/callback.html](https://docs.ansible.com/ansible/latest/plugins/callback.html)

Regards  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Racke
