# How to handle dot in field names in ES 7.0

**URL:** https://discuss.elastic.co/t/how-to-handle-dot-in-field-names-in-es-7-0/176511
**Category:** Elasticsearch
**Created:** [April 11, 2019, 11:17pm UTC](https://discuss.elastic.co/t/how-to-handle-dot-in-field-names-in-es-7-0/176511 "2019-04-11T23:17:01Z")
**Posts on this page:** 1
**Showing post:** 8

<div class="post-metadata">

### Author: ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)
#### Post date: [April 23, 2019, 7:40am UTC](https://discuss.elastic.co/t/how-to-handle-dot-in-field-names-in-es-7-0/176511/8 "2019-04-23T07:40:12Z")

</div>

One of the problem you have is:

- `"execution.command":"/bin/bash",`
- `"execution.command.args":".-1"`

Here you try to say that `execution.command` is a `text`. And `execution.command.args` is the `args` field inside `execution.command` `object`. Which would mean that `execution.command` should be both an `object` and a `text` field. Which is not possible.

You should rewrite your document field names in a way they are not seen as objects. Like:

```auto
{  
   "execution_command":"/bin/bash",
   "execution_command_args":".-1"
}

```

---

_[View the full topic](https://discuss.elastic.co/t/how-to-handle-dot-in-field-names-in-es-7-0/176511)._
