# What are my options with dots in field names moving from 1.7 to 2.3.5?

**URL:** <https://discuss.elastic.co/t/what-are-my-options-with-dots-in-field-names-moving-from-1-7-to-2-3-5/57978>\
**Category:** Elasticsearch\
**Created:** [August 13, 2016, 6:56pm UTC](https://discuss.elastic.co/t/what-are-my-options-with-dots-in-field-names-moving-from-1-7-to-2-3-5/57978 "2016-08-13T18:56:28Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![bw99](https://avatars.discourse-cdn.com/v4/letter/b/e9a140/32.png) [@bw99](https://discuss.elastic.co/u/bw99)\
**Post date:** [August 13, 2016, 6:56pm UTC](https://discuss.elastic.co/t/what-are-my-options-with-dots-in-field-names-moving-from-1-7-to-2-3-5/57978/1 "2016-08-13T18:56:28Z")

</div>

Hi all,

We have been using elasticsearch 1.7.2 for a year or so, writing events into elasticsearch from a java client, not through logstash.

We are trying to upgrade to 2.3.5 and copied a snapshot from the 1.7.2 repository to the 2.3.5 repository.

When trying to 'restore' the repository (really loading into 2.3.5 for the first time), we get the error "Field name cannot contain '.' "

Reading around a bit, it seems this is a restriction that has been introduced in 2.x. It's very unfortunate for us, as our whole event naming convention is based off using names like 'frontend.page.click' and things like that.

We have about 300Gig of data that we want to load into 2.3.5, and don't really want to rewrite all our code to change the event names in our reporting etc, but we'll do that if we have to of course.

I'm a little confused about our options.

Many thanks!

---

<div class="post-metadata">

**Author:** ![bw99](https://avatars.discourse-cdn.com/v4/letter/b/e9a140/32.png) [@bw99](https://discuss.elastic.co/u/bw99)\
**Post date:** [August 13, 2016, 7:41pm UTC](https://discuss.elastic.co/t/what-are-my-options-with-dots-in-field-names-moving-from-1-7-to-2-3-5/57978/2 "2016-08-13T19:41:09Z")

</div>

Hmm. Actually don't worry about it. I have an idea of what I'm going to do. We have files containing the raw events. I will write a simple field-converter in our java api that changes dots in field names to dashes, and reload all the raw events, rather than trying to load a 1.7 snapshot. I'll put these converters at all the input to elasticsearch/output from elasticsearch points in our code, so that to clients, it looks as if elasticsearch is using dots.

I get that dots was a dangerous naming convention in the first place - inherited it from someone in marketing. Children should be taught in school not to put spaces in file names etc.

---

<div class="post-metadata">

**Author:** ![Ivan](https://avatars.discourse-cdn.com/v4/letter/i/df788c/32.png) [@Ivan](https://discuss.elastic.co/u/Ivan)\
**Post date:** [August 13, 2016, 9:14pm UTC](https://discuss.elastic.co/t/what-are-my-options-with-dots-in-field-names-moving-from-1-7-to-2-3-5/57978/3 "2016-08-13T21:14:46Z")

</div>

The Elasticsearch reversed their decision regarding dot-names under certain  
strict conditions. It should be available in 5.0, but it might make it in  
the 2.4 branch as well, so it might be worth to wait a bit.

> <https://github.com/elastic/elasticsearch/issues/15951>

---

<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:** [August 13, 2016, 10:56pm UTC](https://discuss.elastic.co/t/what-are-my-options-with-dots-in-field-names-moving-from-1-7-to-2-3-5/57978/4 "2016-08-13T22:56:12Z")

</div>

If you are going to delete everything in the thread, please report it instead and we can remove it.

---

<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 5, 2017, 10:27pm UTC](https://discuss.elastic.co/t/what-are-my-options-with-dots-in-field-names-moving-from-1-7-to-2-3-5/57978/5 "2017-07-05T22:27:53Z")

</div>


