# Enable logging for activities of mapping template

**URL:** <https://discuss.elastic.co/t/enable-logging-for-activities-of-mapping-template/82063>\
**Category:** Elasticsearch\
**Created:** [April 11, 2017, 11:20pm UTC](https://discuss.elastic.co/t/enable-logging-for-activities-of-mapping-template/82063 "2017-04-11T23:20:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![android.kc](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/android.kc/32/58806_2.png) [@android.kc](https://discuss.elastic.co/u/android.kc)\
**Post date:** [April 11, 2017, 11:20pm UTC](https://discuss.elastic.co/t/enable-logging-for-activities-of-mapping-template/82063/1 "2017-04-11T23:20:43Z")

</div>

It seems when deleting or PUT'ing mapping templates to elasticsearch, by default, they are not captured in ES logs (tried in versions 1.7.x and 5.1.2), while deleting or creating indices, we have the logs below

[2017-04-04 09:00:02,351][INFO][cluster.metadata] [DATA1] [my\_index] deleting index  
[2017-04-04 00:01:03,194][INFO][cluster.metadata] [DATA1] [my\_index\_xxx] creating index, cause [auto(index api)], templates [template\_xxx], shards [5]/[1], mappings [log]

How to have similar logs for mapping template activities, without changing the default logger level?

---

<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:** [May 9, 2017, 11:36pm UTC](https://discuss.elastic.co/t/enable-logging-for-activities-of-mapping-template/82063/2 "2017-05-09T23:36:10Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
