# Messages truncated

**URL:** <https://discuss.elastic.co/t/messages-truncated/81869>\
**Category:** Logstash\
**Created:** [April 10, 2017, 8:33pm UTC](https://discuss.elastic.co/t/messages-truncated/81869 "2017-04-10T20:33:23Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![craftytech1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/craftytech1/32/17067_2.png) [@craftytech1](https://discuss.elastic.co/u/craftytech1)\
**Post date:** [April 10, 2017, 8:33pm UTC](https://discuss.elastic.co/t/messages-truncated/81869/1 "2017-04-10T20:33:23Z")

</div>

Hello Folks:

I have filebeat configured to send the wildfly logs to logstash. They're coming in but I see that the messages themselves, are being truncated. So far the index is using default mapping. I set the truncate:maxHeight to zero so that I can see the whole message, but it only shows a small portion.

This is the filebeat.yml file:

filebeat.prospectors:

- input\_type: log  
paths:  
- /var/log/wildfly/server.log  
document\_type: sandbox

output.logstash:  
hosts: ["1.2.3.4:5044"]

This is the output file in logstash:  
output {  
elasticsearch {  
hosts =\> ["localhost:9200"]  
sniffing =\> true  
manage\_template =\> false  
index =\> "%{[@metadata][type]}-%{+YYYY.MM.dd}"  
document\_type =\> "%{[@metadata][type]}"  
}  
}

What's the optimal approach to capturing the entire logs, stack trace and all?? Please advise.

Thanks,

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [April 11, 2017, 8:25am UTC](https://discuss.elastic.co/t/messages-truncated/81869/2 "2017-04-11T08:25:12Z")

</div>

Please reformat your post, it's difficult to read 🙂

---

<div class="post-metadata">

**Author:** ![craftytech1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/craftytech1/32/17067_2.png) [@craftytech1](https://discuss.elastic.co/u/craftytech1)\
**Post date:** [April 11, 2017, 1:22pm UTC](https://discuss.elastic.co/t/messages-truncated/81869/3 "2017-04-11T13:22:59Z")

</div>

should look better now 🙂

---

<div class="post-metadata">

**Author:** ![craftytech1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/craftytech1/32/17067_2.png) [@craftytech1](https://discuss.elastic.co/u/craftytech1)\
**Post date:** [April 11, 2017, 1:57pm UTC](https://discuss.elastic.co/t/messages-truncated/81869/4 "2017-04-11T13:57:01Z")

</div>

I found the answer already.

[https://www.elastic.co/guide/en/beats/filebeat/1.2/multiline-examples.html](https://www.elastic.co/guide/en/beats/filebeat/1.2/multiline-examples.html)

Thanks,

---

<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, 2:05pm UTC](https://discuss.elastic.co/t/messages-truncated/81869/5 "2017-05-09T14:05:02Z")

</div>

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