# Defing default mapping to enable \_timestamp for all indices

**URL:** <https://discuss.elastic.co/t/defing-default-mapping-to-enable--timestamp-for-all-indices/18446>\
**Category:** Elasticsearch\
**Created:** [July 2, 2014, 4:45pm UTC](https://discuss.elastic.co/t/defing-default-mapping-to-enable--timestamp-for-all-indices/18446 "2014-07-02T16:45:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kazoompa\_3](https://avatars.discourse-cdn.com/v4/letter/k/958977/32.png) [@kazoompa\_3](https://discuss.elastic.co/u/kazoompa_3)\
**Post date:** [July 2, 2014, 4:45pm UTC](https://discuss.elastic.co/t/defing-default-mapping-to-enable--timestamp-for-all-indices/18446/1 "2014-07-02T16:45:13Z")

</div>

Hi,

I have the following ES setting defined in my YAML file:

http.enabled: false  
discovery.zen.ping.multicast.enabled: false  
index:  
mappings:  
_default_:  
\_timestamp:  
enabled: true  
store : true  
analysis:  
analyzer:  
mica\_index\_analyzer:  
type: custom  
tokenizer: standard  
filter: [standard,lowercase,mica\_nGram\_filter]  
mica\_search\_analyzer:  
type: custom  
tokenizer: standard  
filter: [standard,lowercase]  
filter:  
mica\_nGram\_filter:  
type: nGram  
min\_gram: 2  
max\_gram: 20

My intention is to enable the \_timestamp field for all created indices. The  
above does not seem to work, is the error in the syntax of the YAML or I am  
missing a step?

Thanks.

--  
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/9bd349c6-a7f4-4627-af0e-088ffe2a0418%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/9bd349c6-a7f4-4627-af0e-088ffe2a0418%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, 1:18am UTC](https://discuss.elastic.co/t/defing-default-mapping-to-enable--timestamp-for-all-indices/18446/2 "2017-07-06T01:18:20Z")

</div>


