# multiple host search

**URL:** <https://forum.ansible.com/t/multiple-host-search/27707>\
**Category:** AWX Project\
**Created:** [June 5, 2018, 9:40am UTC](https://forum.ansible.com/t/multiple-host-search/27707 "2018-06-05T09:40:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nathanael\_Blanchet](https://avatars.discourse-cdn.com/v4/letter/n/dc4da7/32.png) [@Nathanael\_Blanchet](https://forum.ansible.com/u/Nathanael_Blanchet)\
**Post date:** [June 5, 2018, 9:40am UTC](https://forum.ansible.com/t/multiple-host-search/27707/1 "2018-06-05T09:40:28Z")

</div>

Hello,  
how can I do a host search with multiple host?  
I mean with a “or” directive

When doing this tower-cli host list --host-filter name=acore --host-filter name=chinook, only the last arg is taken  
It is the same with the UI, with a space between two word.

---

<div class="post-metadata">

**Author:** ![AlanCoding](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/alancoding/32/301_2.png) [@AlanCoding](https://forum.ansible.com/u/AlanCoding)\
**Post date:** [June 5, 2018, 11:42am UTC](https://forum.ansible.com/t/multiple-host-search/27707/2 "2018-06-05T11:42:19Z")

</div>

Hi,

I have taken the liberty to file the behavior (about multiple options used) in the tower-cli issue queue, thanks for the report:

[https://github.com/ansible/tower-cli/issues/540](https://github.com/ansible/tower-cli/issues/540)

About how to do the filter correctly, it sounds like you want:

tower-cli host list --host-filter “name=acore or name=chinook”

---

<div class="post-metadata">

**Author:** ![Nathanael\_Blanchet](https://avatars.discourse-cdn.com/v4/letter/n/dc4da7/32.png) [@Nathanael\_Blanchet](https://forum.ansible.com/u/Nathanael_Blanchet)\
**Post date:** [June 11, 2018, 5:18pm UTC](https://forum.ansible.com/t/multiple-host-search/27707/3 "2018-06-11T17:18:33Z")

</div>

thank you for the cli syntax it is ok!  
But how to do the same with the UI search bar? nothing works:  
when I enter “name=acore or name=chinook”

error : Invalid query search=name=acore or search=name=chinook
