Deployment Architecture

Splunking a .NET stack trace

rlourenco
Engager

Hi,

I'm trying to use splunk to analyse aplicational errors from an ASP.NET application, we are getting about a thousand/week.
I have been able to extract the field "Error Message", which identifies each type of error, now I am drilling down and parsing each error type independently. However, all errors contain two stack traces and I need to identify the failing component.
I would like to be able to split my event so that each line in the stack trace section can be filtered individually, in order to filter the aplicational components from the system ones.

Can someone give me a hint on how to do this?

Thanks,

Rui

--------------------- The following is an example of the event:

","[email protected]","[email protected]","SMTP","[email protected];server errors","[email protected];/O=xxxxxx/OU=EXCHANGE ADMINISTRATIVE GROUP (FYDIBOHF23SPDLT)/CN=RECIPIENTS/CN=Server errors","SMTP;EX",,,,,,,,,"Normal",,"Normal"
"xxxxxx.local has recieved the Event of Concern","ComputerName=xxxxxx User=Not specified Logfile=Application Type=Error EventType=1 SourceName=xxxxxx Category=0 CategoryString=Not specified EventCode=0 EventID=0 TimeGenerated=20111124133152.000000-300 TimeWritten=20111124133152.000000-300 Message=====================

Application Error On: 24/11/2011 1:31:52 PM
Error ID: 20111124133152964112xxxxxx
Error Message: Object reference not set to an instance of an object. 

Exception Type: System.Web.HttpUnhandledException
Message: Exception of type 'System.Web.HttpUnhandledException' was thrown.    
Stack Trace:    at System.Web.UI.Page.HandleError(Exception e)
     at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
     at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
     at System.Web.UI.Page.ProcessRequest()
     at System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context)
     at System.Web.UI.Page.ProcessRequest(HttpContext context)
     at ASP.applicant_attsearch_aspx.ProcessRequest(HttpContext context) in c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\7f1abafc\b8cd4f32\App_Web_nn9segcm.8.cs:line 0
     at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
     at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)


Exception Type: System.NullReferenceException
Message: Object reference not set to an instance of an object.
Stack Trace:    at _AppAttSearch.BuildSearchParameters() in e:\wwwroot\xxxxxx\Applicant\AttSearch.aspx.cs:line 201
    at _AppAttSearch.btnSearch_ServerClick(Object sender, EventArgs e) in e:\wwwroot\xxxxxx\Applicant\AttSearch.aspx.cs:line 170
    at System.Web.UI.HtmlControls.HtmlInputButton.OnServerClick(EventArgs e)
    at System.Web.UI.HtmlControls.HtmlInputButton.RaisePostBackEvent(String eventArgument)
    at System.Web.UI.HtmlControls.HtmlInputButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)
    at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
    at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
    at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

====================

Tags (1)

dominiquevocat
SplunkTrust
SplunkTrust

Would something like this help?

(?m-s)\n(?<exception>.+?[a-z.]Exception)
0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Value Insights: Now Generally Available in the CMC

Organizations are under pressure to move faster, control cost, expand AI adoption, and prove value with more ...

What’s New in Splunk AI: Volume 02

Welcome to the second edition of “What’s New in Splunk AI” where we look at the latest and greatest updates, ...

Splunk App Dev Quarterly Roundup: AI, Agents, and Innovation!

Another quarter, another wave of innovation. From complex integrations to pushing the limits ...