# Exclude all streams other than All messages by query

**URL:** <https://community.graylog.org/t/exclude-all-streams-other-than-all-messages-by-query/15486>\
**Category:** Graylog Central (peer support)\
**Created:** [May 18, 2020, 9:17am UTC](https://community.graylog.org/t/exclude-all-streams-other-than-all-messages-by-query/15486 "2020-05-18T09:17:08Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![cawfehman](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/cawfehman/32/4132_2.png) [@cawfehman](https://community.graylog.org/u/cawfehman)\
**Post date:** [May 19, 2020, 6:51pm UTC](https://community.graylog.org/t/exclude-all-streams-other-than-all-messages-by-query/15486/10 "2020-05-19T18:51:32Z")

</div>

Not sure which you created first, but this seems to be a duplicate thread

> [@Exclude a specific Index from search](https://community.graylog.org/t/exclude-a-specific-index-from-search/15494):
>
> Hello, I have message logs stored on 2 indexes with prefix graylog & critial\_alarms NB: critial\_alarms is for critical detections stream. graylog is “All messages” stream. [image] [image] the search is showing duplication of logs… how can we exclude index critial\_alarms\* from “All messages” search? (critial\_alarms\_1,critial\_alarms\_2,critial\_alarms\_3…) !\_index:critial\_alarms\_2is working fine while !index:critial\_alarms\* is not… Please advise,

try not to duplicate

---

_[View the full topic](https://community.graylog.org/t/exclude-all-streams-other-than-all-messages-by-query/15486)._
