# How to reindex based on specific fields?

**URL:** <https://discuss.elastic.co/t/how-to-reindex-based-on-specific-fields/87724>\
**Category:** Elasticsearch\
**Created:** [May 31, 2017, 11:22am UTC](https://discuss.elastic.co/t/how-to-reindex-based-on-specific-fields/87724 "2017-05-31T11:22:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tabs11](https://avatars.discourse-cdn.com/v4/letter/t/c0e974/32.png) [@tabs11](https://discuss.elastic.co/u/tabs11)\
**Post date:** [May 31, 2017, 11:22am UTC](https://discuss.elastic.co/t/how-to-reindex-based-on-specific-fields/87724/1 "2017-05-31T11:22:23Z")

</div>

Hi, I have a dataset, which one of the lines is:

{  
"\_index": "indextest-2017-05-31",  
"\_type": "logs",  
"\_id": "AVxeLzGIOlq6smY9OlAe",  
"\_score": null,  
"\_source": {  
"date": "2017-03-01T10:59:48.758Z",  
"ip": "10.20.122.115",  
"message": "2017-03-01 10:59:48.7584;59514263-43bd-47a5-bc36-17dfa62b2730;10.20.122.115;;HomeController\_Index;Load home page;;0;1030\r",  
"x\_8": "Load home page",  
"path": "/data/Logs/csvfiles/Files9col/alfr-vdfapp-05\_cloudactivation\_2017-03-01.csv",  
"x\_7": "HomeController\_Index",  
"x\_10": 0,  
"app\_name": "cloudactivation",  
"@timestamp": "2017-05-31T11:06:10.008Z",  
"@version": "1",  
"host": "alfr-vdfapp-05",  
"guid": "59514263-43bd-47a5-bc36-17dfa62b2730",  
"response\_time": 1030  
},  
"fields": {  
"date": [  
1488365988758  
],  
"@timestamp": [  
1496228770008  
]  
},  
"sort": [  
1488365988758  
]  
}

I'm tryng to use reindex, to filter specific rows,for example the row above. How can I do it by specifying, for example, the 'index', 'app\_name' and 'response\_time'? I tried to do this but doesn't work. If I use 'match' instead of 'multi\_match' and only specify the 'app\_name' it works but I wanted to specify 'response\_time' also:

POST \_reindex  
{  
"source": {  
"index":"indextest-2017-05-31",  
"query": {  
"multi\_match": {  
"app\_name": "cloudactivation",  
"response\_time": 1030  
}  
}  
},  
"dest": {  
"index": "test2"  
}  
}

NOTE: I'm doing it in kibana dev tools

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [June 1, 2017, 8:23pm UTC](https://discuss.elastic.co/t/how-to-reindex-based-on-specific-fields/87724/2 "2017-06-01T20:23:08Z")

</div>

I suggest you move your question to the Elasticsearch category since it seems unrelated to Logstash.

---

<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:** [June 29, 2017, 8:23pm UTC](https://discuss.elastic.co/t/how-to-reindex-based-on-specific-fields/87724/3 "2017-06-29T20:23:11Z")

</div>

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