# Json logging (ESJsonLayout) custom pattern

**URL:** https://discuss.elastic.co/t/json-logging-esjsonlayout-custom-pattern/227047
**Category:** Elasticsearch
**Created:** [April 8, 2020, 3:55am UTC](https://discuss.elastic.co/t/json-logging-esjsonlayout-custom-pattern/227047 "2020-04-08T03:55:55Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![mattweber](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mattweber/32/44940_2.png) [@mattweber](https://discuss.elastic.co/u/mattweber)
#### Post date: [April 8, 2020, 3:55am UTC](https://discuss.elastic.co/t/json-logging-esjsonlayout-custom-pattern/227047/1 "2020-04-08T03:55:55Z")

</div>

How do I customize the logging pattern for ESJsonLayout? Specifically I want to disable the 10k character limit of the message field [1].

[1] [https://github.com/elastic/elasticsearch/blob/v7.6.2/server/src/main/java/org/elasticsearch/common/logging/ESJsonLayout.java#L96](https://github.com/elastic/elasticsearch/blob/v7.6.2/server/src/main/java/org/elasticsearch/common/logging/ESJsonLayout.java#L96)

Thanks,  
Matt Weber

---

<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 6, 2020, 3:56am UTC](https://discuss.elastic.co/t/json-logging-esjsonlayout-custom-pattern/227047/2 "2020-05-06T03:56:02Z")

</div>

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