# Trouble parsing following message through logstash

**URL:** https://discuss.elastic.co/t/trouble-parsing-following-message-through-logstash/107611
**Category:** Logstash
**Created:** [November 14, 2017, 7:39pm UTC](https://discuss.elastic.co/t/trouble-parsing-following-message-through-logstash/107611 "2017-11-14T19:39:44Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![PiyushPasari](https://avatars.discourse-cdn.com/v4/letter/p/858c86/32.png) [@PiyushPasari](https://discuss.elastic.co/u/PiyushPasari)
#### Post date: [November 14, 2017, 7:39pm UTC](https://discuss.elastic.co/t/trouble-parsing-following-message-through-logstash/107611/1 "2017-11-14T19:39:44Z")

</div>

ts=2017-04-19-19-12-58-881|result=SUCCESS | requestId=1617b0ff-0770-4da3-af4-ce3641637 |action=BestController-getData | elapsed=1241| ip=115.23.71.21 |method=GET | status=200 | uri=/ngwms/best/initial | userId=info

I want to parse the above mentioned message to the fields as

timestamp =\> 2017-04-19-19-12-58-881  
result =\> SUCCESS  
requestId =\> 1617b0ff-0770-4da3-af4-ce3641637  
action =\> BestController-getData  
elapsedTime =\> 1241  
and so on..

Need help. Thanks.

---

<div class="post-metadata">

### Author: ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)
#### Post date: [November 14, 2017, 7:41pm UTC](https://discuss.elastic.co/t/trouble-parsing-following-message-through-logstash/107611/2 "2017-11-14T19:41:25Z")

</div>

Use a kv filter with `field_split => " | "`.

---

<div class="post-metadata">

### Author: ![PiyushPasari](https://avatars.discourse-cdn.com/v4/letter/p/858c86/32.png) [@PiyushPasari](https://discuss.elastic.co/u/PiyushPasari)
#### Post date: [November 14, 2017, 7:49pm UTC](https://discuss.elastic.co/t/trouble-parsing-following-message-through-logstash/107611/4 "2017-11-14T19:49:16Z")

</div>

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: [December 12, 2017, 7:49pm UTC](https://discuss.elastic.co/t/trouble-parsing-following-message-through-logstash/107611/5 "2017-12-12T19:49:33Z")

</div>

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