# Keyword or Analyzed text in logs

**URL:** <https://discuss.elastic.co/t/keyword-or-analyzed-text-in-logs/159446>\
**Category:** Elasticsearch\
**Created:** [December 5, 2018, 4:02am UTC](https://discuss.elastic.co/t/keyword-or-analyzed-text-in-logs/159446 "2018-12-05T04:02:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![pk.241011](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pk.241011/32/86285_2.png) [@pk.241011](https://discuss.elastic.co/u/pk.241011)\
**Post date:** [December 5, 2018, 4:02am UTC](https://discuss.elastic.co/t/keyword-or-analyzed-text-in-logs/159446/1 "2018-12-05T04:02:33Z")

</div>

I use elastic kibana combo mainly to handle logs. Our logs are machine generated and hence it makes little sense to get the text like function names or operations name analyzed.

I am thinking of putting in a dynamic template where all the strings field get dynamically mapped to keyword type.  
Before I do that I will like to know if there will be some performance gain to be had or is it simply not worth it. Also any unintended consequences of this.

---

<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:** [January 2, 2019, 4:02am UTC](https://discuss.elastic.co/t/keyword-or-analyzed-text-in-logs/159446/2 "2019-01-02T04:02:37Z")

</div>

Closed on January 2, 2019, 4:02am UTC

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