# How to Split Message Field with Exchange LOG Information

**URL:** <https://discuss.elastic.co/t/how-to-split-message-field-with-exchange-log-information/174844>\
**Category:** Kibana\
**Created:** [April 1, 2019, 6:39pm UTC](https://discuss.elastic.co/t/how-to-split-message-field-with-exchange-log-information/174844 "2019-04-01T18:39:20Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Eric\_Santos](https://avatars.discourse-cdn.com/v4/letter/e/9de053/32.png) [@Eric\_Santos](https://discuss.elastic.co/u/Eric_Santos)\
**Post date:** [April 1, 2019, 6:39pm UTC](https://discuss.elastic.co/t/how-to-split-message-field-with-exchange-log-information/174844/1 "2019-04-01T18:39:21Z")

</div>

Today, I can send the LOGs from Exchange messages to Kibana using filebeat, but I need more fields that are sent in a unique way in the message field.

 ![Filebeat_Exchange](https://us1.discourse-cdn.com/elastic/original/3X/7/2/729150c29c0cf62cf8eacb90c90cb6d5bc351ec2.png)

My logstash.conf is:

#udp syslogs stream via 5141  
input {  
udp {  
type =\> "log"  
port =\> 5141  
}  
}

filter {  
if [type] == "log" {  
csv {  
add\_tag =\> ['exh\_msg\_trk']  
columns =\> ['logdate', 'client\_ip', 'client\_hostname', 'server\_ip', 'server\_hostname', 'source\_context', 'connector\_id', 'source', 'event\_id', 'internal\_message\_id', 'message\_id', 'network\_message\_id', 'recipient\_address', 'recipient\_status', 'total\_bytes', 'recipient\_count', 'related\_recipient\_address', 'reference', 'message\_subject', 'sender\_address', 'return\_path', 'message\_info', 'directionality', 'tenant\_id', 'original\_client\_ip', 'original\_server\_ip', 'custom\_data']  
remove\_field =\> ["logdate"]  
}  
grok {  
match =\> ["message", "%{TIMESTAMP\_ISO8601:timestamp}"]  
}  
mutate {  
convert =\> ["total\_bytes", "integer"]  
convert =\> ["recipient\_count", "integer"]  
split =\> ["recipient\_address", ";"]  
split =\> ["source\_context", ";"]  
split =\> ["custom\_data", ";"]  
}  
date {  
match =\> ["timestamp", "ISO8601"]  
timezone =\> "Europe/London"  
remove\_field =\> ["timestamp"]  
}  
if "\_grokparsefailure" in [tags] {  
drop { }  
}  
}  
}

output {  
elasticsearch { host =\> X.X.X.X:9200 }  
stdout { codec =\> rubydebug }

---

<div class="post-metadata">

**Author:** ![nickpeihl](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nickpeihl/32/112622_2.png) [@nickpeihl](https://discuss.elastic.co/u/nickpeihl)\
**Post date:** [April 1, 2019, 11:30pm UTC](https://discuss.elastic.co/t/how-to-split-message-field-with-exchange-log-information/174844/2 "2019-04-01T23:30:39Z")

</div>

I don't see how this relates to Kibana. Are you sure you didn't mean to put this post in the [Logstash forum](https://discuss.elastic.co/c/logstash)?

---

<div class="post-metadata">

**Author:** ![Eric\_Santos](https://avatars.discourse-cdn.com/v4/letter/e/9de053/32.png) [@Eric\_Santos](https://discuss.elastic.co/u/Eric_Santos)\
**Post date:** [April 2, 2019, 2:03pm UTC](https://discuss.elastic.co/t/how-to-split-message-field-with-exchange-log-information/174844/3 "2019-04-02T14:03:59Z")

</div>

> [@nickpeihl](#):
>
> I don't see how this relates to Kibana. Are you sure you didn't mean to put this post in the

Hello! I do not know exactly. I started using the solution very recently. I can not see the correct information in Kibana (according to the screen I sent), but I do not know where to correct the problem.

---

<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:** [April 30, 2019, 2:04pm UTC](https://discuss.elastic.co/t/how-to-split-message-field-with-exchange-log-information/174844/4 "2019-04-30T14:04:02Z")

</div>

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