# Not able to parse the Error message part in sitecore logs

**URL:** <https://discuss.elastic.co/t/not-able-to-parse-the-error-message-part-in-sitecore-logs/104363>\
**Category:** Logstash\
**Created:** [October 18, 2017, 9:51am UTC](https://discuss.elastic.co/t/not-able-to-parse-the-error-message-part-in-sitecore-logs/104363 "2017-10-18T09:51:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![annu](https://avatars.discourse-cdn.com/v4/letter/a/5f8ce5/32.png) [@annu](https://discuss.elastic.co/u/annu)\
**Post date:** [October 18, 2017, 9:51am UTC](https://discuss.elastic.co/t/not-able-to-parse-the-error-message-part-in-sitecore-logs/104363/1 "2017-10-18T09:51:11Z")

</div>

Hi

below given is one of the logs:

6220 04:22:28 ERROR Error in RedirectProcessor  
Exception: System.Threading.ThreadAbortException  
Message: Thread was being aborted.  
Source: YY.yyy.yyyyyy  
at YY.yyyyy.Yyyyyy.zzz.RedirectProcessor.RouteRequest(xyz, HttpRequestArgs args)  
at YY.yyyyy.Yyyyyy.zzz.RedirectProcessor.Process(HttpRequestArgs args)

my filter is:

filter {  
grok {  
match =\> { "message" =\> "%{NUMBER:Pid:int} %{TIME:time} %{WORD:Level} %{GREEDYDATA:msg}"}  
}  
mutate {  
remove\_field =\> ["message"]   
}  
}

now in my GREEDYDATA: msg part, i'm getting the following data

Error in RedirectProcessor  
Exception: System.Threading.ThreadAbortException  
Message: Thread was being aborted.  
Source: YY.yyy.yyyyyy  
at YY.yyyyy.Yyyyyy.zzz.RedirectProcessor.RouteRequest(yyy, HttpRequestArgs args)  
at YY.yyyyy.Yyyyyy.zzz.RedirectProcessor.Process(HttpRequestArgs args)

Is there any way that i can get the first 4 lines as separate fields. ie.,

Error\_details : Error in RedirectProcessor  
Exception : System.Threading.ThreadAbortException  
Message: Thread was being aborted.  
Source : YY.yyy.yyyyyy

and the last 2 lines as another field.

Someone please help me with this. I'm trying to solve this for long.

thanks  
ANnu

---

<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:** [November 15, 2017, 9:51am UTC](https://discuss.elastic.co/t/not-able-to-parse-the-error-message-part-in-sitecore-logs/104363/2 "2017-11-15T09:51:39Z")

</div>

Closed on November 15, 2017, 9:51am UTC

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