# find\_output with filter

**URL:** <https://forum.ansible.com/t/find-output-with-filter/33723>\
**Category:** Ansible Project\
**Tags:** vmware\
**Created:** [September 1, 2020, 10:32pm UTC](https://forum.ansible.com/t/find-output-with-filter/33723 "2020-09-01T22:32:20Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nagesh\_sheregar](https://avatars.discourse-cdn.com/v4/letter/n/3ec8ea/32.png) [@Nagesh\_sheregar](https://forum.ansible.com/u/Nagesh_sheregar)\
**Post date:** [September 1, 2020, 10:32pm UTC](https://forum.ansible.com/t/find-output-with-filter/33723/1 "2020-09-01T22:32:20Z")

</div>

Hi Team,

i would like to see only GREEN/RED in out put, can you please let me know how i can filter it?  
Playbook:

- name: sddc health  
command: /opt/vmware/sddc-support/sos --health-check  
register: find\_output
- debug:  
var: find\_output

---

<div class="post-metadata">

**Author:** ![Nagesh\_sheregar](https://avatars.discourse-cdn.com/v4/letter/n/3ec8ea/32.png) [@Nagesh\_sheregar](https://forum.ansible.com/u/Nagesh_sheregar)\
**Post date:** [September 2, 2020, 11:13am UTC](https://forum.ansible.com/t/find-output-with-filter/33723/2 "2020-09-02T11:13:05Z")

</div>

Hi Team,

Any help is appreciated?

Thanks

---

<div class="post-metadata">

**Author:** ![Dick\_Visser](https://avatars.discourse-cdn.com/v4/letter/d/d9b06d/32.png) [@Dick\_Visser](https://forum.ansible.com/u/Dick_Visser)\
**Post date:** [September 2, 2020, 5:34pm UTC](https://forum.ansible.com/t/find-output-with-filter/33723/3 "2020-09-02T17:34:45Z")

</div>

I would use the json output option of the sos tool and then filter things.  
Manipulating that big block of text will be very cumbersome and fragile.

Fyi this list is not exactly a ‘team’ but more a collection of individuals willing to help.

---

<div class="post-metadata">

**Author:** ![Nagesh\_sheregar](https://avatars.discourse-cdn.com/v4/letter/n/3ec8ea/32.png) [@Nagesh\_sheregar](https://forum.ansible.com/u/Nagesh_sheregar)\
**Post date:** [September 2, 2020, 5:37pm UTC](https://forum.ansible.com/t/find-output-with-filter/33723/4 "2020-09-02T17:37:41Z")

</div>

Thank you so much for the info …
