# Elasticsearch index.blocks.read : true doesn't work with index pattern

**URL:** <https://discuss.elastic.co/t/elasticsearch-index-blocks-read-true-doesnt-work-with-index-pattern/313963>\
**Category:** Elasticsearch\
**Created:** [September 8, 2022, 8:31am UTC](https://discuss.elastic.co/t/elasticsearch-index-blocks-read-true-doesnt-work-with-index-pattern/313963 "2022-09-08T08:31:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ingram\_Gultom](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ingram_gultom/32/56569_2.png) [@Ingram\_Gultom](https://discuss.elastic.co/u/Ingram_Gultom)\
**Post date:** [September 8, 2022, 8:31am UTC](https://discuss.elastic.co/t/elasticsearch-index-blocks-read-true-doesnt-work-with-index-pattern/313963/1 "2022-09-08T08:31:47Z")

</div>

Hi all,

I want to block read on some indices, using index.blocks.read : true, but it doesn't work if you try to read the indices with index pattern like index\_name\_\*. It will return error

> GET filebeat\*/\_search  
> {  
> "error": {  
> "root\_cause": [  
> {  
> "type": "cluster\_block\_exception",  
> "reason": "blocked by: [FORBIDDEN/7/index read (api)];"  
> }  
> ],  
> "type": "cluster\_block\_exception",  
> "reason": "blocked by: [FORBIDDEN/7/index read (api)];"  
> },  
> "status": 403  
> }

Another solution I tried is to close the index, but it will mess up my snapshot schedule.

Any suggestions ?

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [September 8, 2022, 9:26am UTC](https://discuss.elastic.co/t/elasticsearch-index-blocks-read-true-doesnt-work-with-index-pattern/313963/2 "2022-09-08T09:26:59Z")

</div>

It's possible your nodes are running out of disk space, so I would check that and look at [Error: disk usage exceeded flood-stage watermark, index has read-only-allow-delete block | Elasticsearch Guide [8.4] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/8.4/disk-usage-exceeded.html)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [October 6, 2022, 9:27am UTC](https://discuss.elastic.co/t/elasticsearch-index-blocks-read-true-doesnt-work-with-index-pattern/313963/3 "2022-10-06T09:27:17Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
