# Sometimes messages are split

**URL:** https://discuss.elastic.co/t/sometimes-messages-are-split/217591
**Category:** Logstash
**Created:** [February 3, 2020, 9:50am UTC](https://discuss.elastic.co/t/sometimes-messages-are-split/217591 "2020-02-03T09:50:00Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![111284](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/111284/32/61940_2.png) [@111284](https://discuss.elastic.co/u/111284)
#### Post date: [February 3, 2020, 9:50am UTC](https://discuss.elastic.co/t/sometimes-messages-are-split/217591/1 "2020-02-03T09:50:00Z")

</div>

Hi

I'm new with ELK stack. And I'm trying to get logs from ESXi hosts.  
Rsyslog (version 7.4.4-1) gets the messages on port 1514,  
it uses such a template:

//template(name="bladetemplate" type="list") {  
property(name="pri")  
constant(value=" ")property(name="timereported" dateFormat="rfc3339")  
constant(value=" ")property(name="hostname")  
constant(value=" ")property(name="syslogfacility-text")  
constant(value=" ")property(name="syslogseverity-text")  
property(name="msg")  
}//

Then it forwards them to local port 10515 using the settings:

//if $fromhost contains "blade" then {  
_._ action (type="omfwd"  
queue.type="LinkedList"  
action.resumeRetryCount="-1"  
queue.size="10000"  
queue.saveonshutdown="on"  
Target="localhost" Port="10515" Protocol="tcp" Template="bladetemplate")  
}//

Logstash (version 1:5.6.16-1) catches them on port 10515:  
//input {  
tcp {  
port =\> 10515  
codec =\> multiline  
{  
pattern =\> "--\>"  
what =\> "previous"  
auto\_flush\_interval =\> 3  
}  
type =\> "nsk.esxi"  
}  
}//

filter:  
//filter  
{  
if [type] == "nsk.esxi"  
{  
grok  
{  
match =\> {  
"message" =\> "%{POSINT:PRI} %{TIMESTAMP\_ISO8601:@timestamp} %{SYSLOGHOST:sysloghost} %{DATA:facility} %{DATA:severity} %{DATA:syslog\_level} %{DATA:programname}[%{DATA:procid}] (?(?\<message\_system\_info\>([%{DATA:message\_service} %{DATA:sub\_id} %{DATA:message\_opID}])) [%{DATA:message\_service\_info}]\ (?(%{GREEDYDATA})))"  
}  
overwrite =\> ["message"]  
}  
}  
}//

and then forwards to local port of elasticsearch (version 5.6.16).

In Kibana I can see that some messages are split:  
correct message - 167 2020-02-03T09:43:26.497Z blade202 local4 debug verbose vpxa[34262B70] [Originator@6876 sub=vpxaMoService opID=2fcfa7f9-df] Adding querySpec. Had=9, has=9  
split message - 167 2020-02-03T09:43:24.750Z blade202 local4 debug verbose vpxa[34262B70] [Origin

Can somebody help me in looking for the proper way of troubleshooting?

---

<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: [March 2, 2020, 9:50am UTC](https://discuss.elastic.co/t/sometimes-messages-are-split/217591/2 "2020-03-02T09:50:03Z")

</div>

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