# ansible registered variable reporting

**URL:** <https://forum.ansible.com/t/ansible-registered-variable-reporting/16842>\
**Category:** Ansible Project\
**Created:** [November 21, 2014, 2:02pm UTC](https://forum.ansible.com/t/ansible-registered-variable-reporting/16842 "2014-11-21T14:02:22Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![marek\_cervenka](https://avatars.discourse-cdn.com/v4/letter/m/76d3ee/32.png) [@marek\_cervenka](https://forum.ansible.com/u/marek_cervenka)\
**Post date:** [November 21, 2014, 2:02pm UTC](https://forum.ansible.com/t/ansible-registered-variable-reporting/16842/1 "2014-11-21T14:02:22Z")

</div>

hi,

i want use ansible as “data miner”. like get information X from 100 hosts and report it to the local file (on ansible host) or export it to the elasticsearch server

can you recommend the best way?

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:** [November 21, 2014, 2:18pm UTC](https://forum.ansible.com/t/ansible-registered-variable-reporting/16842/2 "2014-11-21T14:18:38Z")

</div>

look at the -t option for the ansible ad-hoc

---

<div class="post-metadata">

**Author:** ![marek\_cervenka](https://avatars.discourse-cdn.com/v4/letter/m/76d3ee/32.png) [@marek\_cervenka](https://forum.ansible.com/u/marek_cervenka)\
**Post date:** [November 21, 2014, 2:43pm UTC](https://forum.ansible.com/t/ansible-registered-variable-reporting/16842/3 "2014-11-21T14:43:38Z")

</div>

i’m using playbook

i prefer formatted report with jinja (something like template modul)

Dne pátek, 21. listopadu 2014 15:18:41 UTC+1 Brian Coca napsal(a):

---

<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:** [November 21, 2014, 3:00pm UTC](https://forum.ansible.com/t/ansible-registered-variable-reporting/16842/4 "2014-11-21T15:00:27Z")

</div>

there are filters to output json you can use with templates to create  
valid json files, which you can use with the uri module to post  
directly to elastic search.
