I'd start by putting the pattern in http://grokdebug.herokuapp.com/ and the building the pattern piece by piece. You have a lot of NOTSPACE:Colons there, which I assume you are trying to use to represent the :, which is not necessary.
eg EventId : 1, Level : Informational should be %{WORD:Event} : %{NUMBER:EventID}, %{WORD:Level} : %{WORD:EventLevel}.
One more thing, in logstash when I add this...it is not captured in ES. Is there anything that I need to add for multiple line search. Since, these logs can span upto multiple lines. And my current logstash conf reads line by line only.
Mark - Can you please help me here. How can I get the entire message. I tried GREEDYDATA, DATA, etc. but couldnt get the entire message value. Is there anything which matches IN BETWEEN -> "Message and EventName : " or a Start and End tag ?
Payload : [sessionID : 7e9c103d-92a8-48f9-a8b9-e1489r7ebeff] [message : Value cannot be null. Parameter name: phoneObj] [paramName : phoneObj] [source : MySol.API.Common] [stackTrace : at MySol.API.Common.Filters.EmptyParameterFilterAttribute.OnActionExecuting(HttpActionContext actionContext) in e:\Builds\16\IVR\Current.DEV\src\Nightingale\MySol.API.Common\Filters\EmptyParameterFilterAttribute.cs:line 30
** at System.Web.Http.Filters.ActionFilterAttribute.OnActionExecutingAsync(HttpActionContext actionContext, CancellationToken cancellationToken)** --- End of stack trace from previous location where exception was thrown ---
** at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)**
** at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)**
** at System.Web.Http.Filters.ActionFilterAttribute.d__0.MoveNext()** --- End of stack trace from previous location where exception was thrown ---
** at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)**
** at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)**
** at System.Runtime.CompilerServices.TaskAwaiter1.GetResult()** ** at System.Web.Http.Controllers.ActionFilterResult.<ExecuteAsync>d__2.MoveNext()** **--- End of stack trace from previous location where exception was thrown ---** ** at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)** ** at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)** ** at System.Runtime.CompilerServices.TaskAwaiter1.GetResult()**
** at System.Web.Http.Controllers.ExceptionFilterResult.d__0.MoveNext()**]
EventName : ResponseInfo
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.