# Set multiple index by using 'es.resource' at Hive

**URL:** <https://discuss.elastic.co/t/set-multiple-index-by-using-es-resource-at-hive/20018>\
**Category:** Elasticsearch\
**Created:** [October 1, 2014, 7:18am UTC](https://discuss.elastic.co/t/set-multiple-index-by-using-es-resource-at-hive/20018 "2014-10-01T07:18:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mungeol\_Heo](https://avatars.discourse-cdn.com/v4/letter/m/dec6dc/32.png) [@Mungeol\_Heo](https://discuss.elastic.co/u/Mungeol_Heo)\
**Post date:** [October 1, 2014, 7:18am UTC](https://discuss.elastic.co/t/set-multiple-index-by-using-es-resource-at-hive/20018/1 "2014-10-01T07:18:50Z")

</div>

Hi

My problem is the document count is wrong when I set  
'es.resource' = 'apache-2014.09.\*/apache-access' or  
'es.resource' = 'apache-2014.09.29,apache-2014.09.30/apache-access' with  
'es.query' = '{ "filter": { "bool": { "must": [ { "range": { "@timestamp":  
{ "from": 1411916400000, "to": 1412002800000 } } } ] } } }' configuration  
at Hive.

The document count is OK when I just use one index like  
'es.resource' = 'apache-2014.09.29/apache-access' with 'es.query' = '{  
"filter": { "bool": { "must": [ { "range": { "@timestamp": { "from":  
1411916400000, "to": 1412002800000 } } } ] } } }'

So, my question is there any way to set multiple indexes?

Please, help me. super users!!!  
Thank you!!!

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/435a52aa-60af-4805-ab83-835400dbf94e%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/435a52aa-60af-4805-ab83-835400dbf94e%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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:** [July 6, 2017, 12:59am UTC](https://discuss.elastic.co/t/set-multiple-index-by-using-es-resource-at-hive/20018/2 "2017-07-06T00:59:02Z")

</div>


