# Date\_detection setting ignored

**URL:** https://discuss.elastic.co/t/date-detection-setting-ignored/23091
**Category:** Elasticsearch
**Created:** [April 3, 2015, 11:09pm UTC](https://discuss.elastic.co/t/date-detection-setting-ignored/23091 "2015-04-03T23:09:22Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![secsubs](https://avatars.discourse-cdn.com/v4/letter/s/3d9bf3/32.png) [@secsubs](https://discuss.elastic.co/u/secsubs)
#### Post date: [April 3, 2015, 11:09pm UTC](https://discuss.elastic.co/t/date-detection-setting-ignored/23091/1 "2015-04-03T23:09:22Z")

</div>

I have JSON being fed to ES by logstash. I have two templates for the  
logstash indices and:

- in the first template, a field "rawMsgTS" is explicitly declared as  
"string"
- both templates have date\_detection set to "false"

Templates:  
[http://pastebin.com/NvAeUGDg](http://pastebin.com/NvAeUGDg)

But ES still tries to parse the field "rawMsgTS" as a data and bombs ☹

What am I doing wrong?

Thanks,

- Tim

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/a90dbdb6-d7c1-450d-bf74-7e8c286c3ec6%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/a90dbdb6-d7c1-450d-bf74-7e8c286c3ec6%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

### Author: ![secsubs](https://avatars.discourse-cdn.com/v4/letter/s/3d9bf3/32.png) [@secsubs](https://discuss.elastic.co/u/secsubs)
#### Post date: [April 4, 2015, 5:57am UTC](https://discuss.elastic.co/t/date-detection-setting-ignored/23091/2 "2015-04-04T05:57:10Z")

</div>

Never mind, I was expecting mappings/templates to take effect on an open  
index. Once I deleted the index, I saw that the updated templates/mappings  
get applied at index creation time.

On Friday, April 3, 2015 at 4:09:22 PM UTC-7, [sec...@gmail.com](mailto:sec...@gmail.com) wrote:

> I have JSON being fed to ES by logstash. I have two templates for the  
> logstash indices and:
> 
> - in the first template, a field "rawMsgTS" is explicitly declared as  
> "string"
> - both templates have date\_detection set to "false"
> 
> Templates:  
> [ES templates - Pastebin.com](http://pastebin.com/NvAeUGDg)
> 
> But ES still tries to parse the field "rawMsgTS" as a data and bombs ☹
> 
> What am I doing wrong?
> 
> Thanks,
> 
> - Tim

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/3f23bdd1-8279-4d3b-8db3-c1be33e3fc52%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/3f23bdd1-8279-4d3b-8db3-c1be33e3fc52%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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, 12:21am UTC](https://discuss.elastic.co/t/date-detection-setting-ignored/23091/3 "2017-07-06T00:21:42Z")

</div>


