# Reindex data in order to pass the migration Checker

**URL:** https://discuss.elastic.co/t/reindex-data-in-order-to-pass-the-migration-checker/48335
**Category:** Logstash
**Created:** [April 25, 2016, 2:46pm UTC](https://discuss.elastic.co/t/reindex-data-in-order-to-pass-the-migration-checker/48335 "2016-04-25T14:46:56Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![genesis](https://avatars.discourse-cdn.com/v4/letter/g/96bed5/32.png) [@genesis](https://discuss.elastic.co/u/genesis)
#### Post date: [April 25, 2016, 2:46pm UTC](https://discuss.elastic.co/t/reindex-data-in-order-to-pass-the-migration-checker/48335/1 "2016-04-25T14:46:56Z")

</div>

Some of our data has dots (.) in them which is preventing us from upgrading from 1.7.1 to 2.3  
Our plan is to reindex 433 indices about 15.74 TB of data.  
This is a sample of our data containing dots  
logs:gxc.xxxx, logs:gxc.x, logs:gxc.xxx  
Can I use logstash as follow to convert the dots into dashes?  
current version logstash 2.2.0

/opt/logstash/bin/plugin install logstash-filter-de\_dot  
/opt/logstash/bin/plugin update logstash-filter-elapsed

filter {  
ruby {  
code =\> "  
event.to\_hash.keys.each { |k| event[k.sub('.','\_')] = event.remove(k) if k.include?'.' }  
"  
}  
}

---

<div class="post-metadata">

### Author: ![genesis](https://avatars.discourse-cdn.com/v4/letter/g/96bed5/32.png) [@genesis](https://discuss.elastic.co/u/genesis)
#### Post date: [April 26, 2016, 2:51am UTC](https://discuss.elastic.co/t/reindex-data-in-order-to-pass-the-migration-checker/48335/2 "2016-04-26T02:51:23Z")

</div>

I installed the plugin: /opt/logstash/bin/plugin install logstash-filter-de\_dot and try to reindex but somehow the new index still has dots in the field names. I was expecting the dots to be replaced with dash, but nothing happened. I am not sure what I am doing wrong.  
Here is my logstash configuration  
input {  
elasticsearch {  
hosts =\> ["localhost:9200"]  
index =\> "index-name-2016.04.07"  
size =\> 500  
scroll =\> "5m"  
docinfo =\> true  
}  
}  
filter {  
ruby {  
code =\> "  
event.to\_hash.keys.each { |k| event[k.sub('.','\_')] = event.remove(k) if k.include?'.' }  
"  
}  
}

output {  
elasticsearch {  
hosts =\> "remote-cluster:9200"

```
	index => "index-name-2016.04.07"
}

```

stdout {  
codec =\> "dots"  
}  
}

---

<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, 5:00am UTC](https://discuss.elastic.co/t/reindex-data-in-order-to-pass-the-migration-checker/48335/3 "2017-07-06T05:00:36Z")

</div>


