# Updating old logs after changing logstash importation

**URL:** <https://discuss.elastic.co/t/updating-old-logs-after-changing-logstash-importation/160221>\
**Category:** Elasticsearch\
**Created:** [December 10, 2018, 4:54pm UTC](https://discuss.elastic.co/t/updating-old-logs-after-changing-logstash-importation/160221 "2018-12-10T16:54:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![GitsBdr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gitsbdr/32/58828_2.png) [@GitsBdr](https://discuss.elastic.co/u/GitsBdr)\
**Post date:** [December 10, 2018, 4:54pm UTC](https://discuss.elastic.co/t/updating-old-logs-after-changing-logstash-importation/160221/1 "2018-12-10T16:54:16Z")

</div>

Hi all and thanks for your help,  
I recently needed to change my logstash config to import my logs into elasticsearch with a new field name.  
I'm reading those logs from a csv file, and in the filter config section I have the header defines with all my field names. Recently, I changed this header for having a new field name let's say from 'A' to 'B'  
My problem now is all my logs indexed until this update have the field A=number-user and my new logs (after this update) have the field B=number-user.  
When I want to create a dashboard for example I don't have all the information I want because not all of my logs are based on the same field name.  
I found a lot of different solutions on the web but I can't create a new index with the reindex API, for me the alias solution is not working in my case, etc ...  
Thanks for your help !

---

<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:** [January 7, 2019, 4:54pm UTC](https://discuss.elastic.co/t/updating-old-logs-after-changing-logstash-importation/160221/2 "2019-01-07T16:54:20Z")

</div>

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