# Can we add syntax color to Logs module?

**URL:** <https://discuss.elastic.co/t/can-we-add-syntax-color-to-logs-module/163753>\
**Category:** Logs\
**Created:** [January 10, 2019, 2:05pm UTC](https://discuss.elastic.co/t/can-we-add-syntax-color-to-logs-module/163753 "2019-01-10T14:05:18Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gael\_RICHIER](https://avatars.discourse-cdn.com/v4/letter/g/85f322/32.png) [@Gael\_RICHIER](https://discuss.elastic.co/u/Gael_RICHIER)\
**Post date:** [January 10, 2019, 2:05pm UTC](https://discuss.elastic.co/t/can-we-add-syntax-color-to-logs-module/163753/1 "2019-01-10T14:05:18Z")

</div>

Hello everybody !

I'll like to know if we can set color syntax for log through logs module ?  
Example for syslog or auth log. (Error =\> RED / WARNING =\> ORANGE ....)

Thanks

---

<div class="post-metadata">

**Author:** ![weltenwort](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/weltenwort/32/53885_2.png) [@weltenwort](https://discuss.elastic.co/u/weltenwort)\
**Post date:** [January 10, 2019, 3:12pm UTC](https://discuss.elastic.co/t/can-we-add-syntax-color-to-logs-module/163753/2 "2019-01-10T15:12:12Z")

</div>

Hi @Gael_RICHIER,

thank you for that suggestion. What criteria/fields would be most useful to determine the color from in your use-case? The type? The log level?

---

<div class="post-metadata">

**Author:** ![Gael\_RICHIER](https://avatars.discourse-cdn.com/v4/letter/g/85f322/32.png) [@Gael\_RICHIER](https://discuss.elastic.co/u/Gael_RICHIER)\
**Post date:** [January 10, 2019, 3:36pm UTC](https://discuss.elastic.co/t/can-we-add-syntax-color-to-logs-module/163753/3 "2019-01-10T15:36:20Z")

</div>

Hi @weltenwort,

For me, it will be great by log level field.  
But I think more generally with a regular expression, if a specific field contain a pattern.  
Ex : for authentification logs if field "auth.status" contain 'failed' the line could be red .

---

<div class="post-metadata">

**Author:** ![weltenwort](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/weltenwort/32/53885_2.png) [@weltenwort](https://discuss.elastic.co/u/weltenwort)\
**Post date:** [January 10, 2019, 4:14pm UTC](https://discuss.elastic.co/t/can-we-add-syntax-color-to-logs-module/163753/4 "2019-01-10T16:14:14Z")

</div>

That makes sense, thank you. I have created a [feature request](https://github.com/elastic/kibana/issues/28492) to track this topic. Please feel free to follow its progress and to add further details about your use-case as comments on the issue.

---

<div class="post-metadata">

**Author:** ![Charles123](https://avatars.discourse-cdn.com/v4/letter/c/c5a1d2/32.png) [@Charles123](https://discuss.elastic.co/u/Charles123)\
**Post date:** [January 31, 2019, 6:16am UTC](https://discuss.elastic.co/t/can-we-add-syntax-color-to-logs-module/163753/5 "2019-01-31T06:16:43Z")

</div>

Thank you for sharing article and information. this is very helpful for beginner. [kodi](https://www.kodi.link/)

---

<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:** [February 28, 2019, 6:22am UTC](https://discuss.elastic.co/t/can-we-add-syntax-color-to-logs-module/163753/6 "2019-02-28T06:22:34Z")

</div>

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