<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to extract nested exception/message in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-nested-exception-message/m-p/178645#M51376</link>
    <description>&lt;P&gt;Very cool. Happy Splunking!&lt;/P&gt;</description>
    <pubDate>Mon, 17 Aug 2015 21:53:46 GMT</pubDate>
    <dc:creator>Gilberto_Castil</dc:creator>
    <dc:date>2015-08-17T21:53:46Z</dc:date>
    <item>
      <title>How to extract nested exception/message</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-nested-exception-message/m-p/178637#M51368</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I need to extract the Exception and Message independently that occurs after the Nested Exception line below.  I'm not sure how to access data in the next line.  I was using regexr and this regex does match the Nested Exception.&lt;BR /&gt;&lt;BR /&gt;
&lt;CODE&gt;/\Nested Exception/gm&lt;/CODE&gt;, but I need the System.Web.HttpException returned from the field extraction.&lt;/P&gt;

&lt;P&gt;When I try to use the Field Extractor, it only shows me the first 200 characters or so and I can't select the field.  &lt;/P&gt;

&lt;P&gt;Any ideas on a configuration change to splunk that allows me to extract fields from raw data that is so large, and/or how to generate a regex that will return the data I'm looking for?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;15668 10:59:57 ERROR Application error.
Exception: System.Web.HttpUnhandledException
Message: An unhandled exception occurred.
Source: Sitecore.Mvc
   at Sitecore.Mvc.Pipelines.MvcEvents.Exception.ShowAspNetErrorMessage.ShowErrorMessage(ExceptionContext exceptionContext, ExceptionArgs args)
   at Sitecore.Mvc.Pipelines.MvcEvents.Exception.ShowAspNetErrorMessage.Process(ExceptionArgs args)
   at (Object , Object[] )
   at Sitecore.Pipelines.CorePipeline.Run(PipelineArgs args)
   at Sitecore.Mvc.Pipelines.PipelineService.RunPipeline[TArgs](String pipelineName, TArgs args)
   at Sitecore.Mvc.Filters.PipelineBasedRequestFilter.OnException(ExceptionContext exceptionContext)
   at System.Web.Mvc.ControllerActionInvoker.InvokeExceptionFilters(ControllerContext controllerContext, IList`1 filters, Exception exception)
   at System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName)
   at Sitecore.Mvc.Controllers.SitecoreActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName)
   at System.Web.Mvc.Controller.&amp;lt;&amp;gt;c__DisplayClass1d.&amp;lt;BeginExecuteCore&amp;gt;b__19()
   at System.Web.Mvc.Async.AsyncResultWrapper.&amp;lt;&amp;gt;c__DisplayClass1.&amp;lt;MakeVoidDelegate&amp;gt;b__0()
   at System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult)
   at System.Web.Mvc.Async.AsyncResultWrapper.&amp;lt;&amp;gt;c__DisplayClass4.&amp;lt;MakeVoidDelegate&amp;gt;b__3(IAsyncResult ar)
   at System.Web.Mvc.Controller.EndExecute(IAsyncResult asyncResult)
   at System.Web.Mvc.MvcHandler.&amp;lt;&amp;gt;c__DisplayClass8.&amp;lt;BeginProcessRequest&amp;gt;b__3(IAsyncResult asyncResult)
   at System.Web.Mvc.Async.AsyncResultWrapper.&amp;lt;&amp;gt;c__DisplayClass4.&amp;lt;MakeVoidDelegate&amp;gt;b__3(IAsyncResult ar)
   at Sitecore.Mvc.Routing.RouteHttpHandler.EndProcessRequest(IAsyncResult result)
   at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&amp;amp; completedSynchronously)
Nested Exception
Exception: System.Web.HttpException
Message: Server cannot set content type after HTTP headers have been sent.
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thanks,&lt;/P&gt;

&lt;P&gt;Mike&lt;/P&gt;</description>
      <pubDate>Mon, 17 Aug 2015 16:41:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-nested-exception-message/m-p/178637#M51368</guid>
      <dc:creator>mshea</dc:creator>
      <dc:date>2015-08-17T16:41:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract nested exception/message</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-nested-exception-message/m-p/178638#M51369</link>
      <description>&lt;P&gt;How about this regex:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(?s)Nested Exception.+Exception:\s+(?&amp;lt;nested_exception&amp;gt;[^\n]*)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 17 Aug 2015 17:22:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-nested-exception-message/m-p/178638#M51369</guid>
      <dc:creator>jacobwilkins</dc:creator>
      <dc:date>2015-08-17T17:22:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract nested exception/message</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-nested-exception-message/m-p/178639#M51370</link>
      <description>&lt;P&gt;This regex string will extract the exception and message texts from your sample data, assuming it is all in a single event.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Nested Exception\n*\s*Exception: (?P&amp;lt;exception&amp;gt;.*$)\n*\s*Message: (?P&amp;lt;message&amp;gt;.*)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 17 Aug 2015 17:28:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-nested-exception-message/m-p/178639#M51370</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2015-08-17T17:28:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract nested exception/message</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-nested-exception-message/m-p/178640#M51371</link>
      <description>&lt;P&gt;There are multiple ways to do this. Here is another:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Nested\s+Exception(?:[\r\n]).+?Exception:\s+(?&amp;lt;exception&amp;gt;.+)(?:[\r\n]).+?Message\:\s+(?&amp;lt;message&amp;gt;.+)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/571i2E6E31101FA9685E/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Aug 2015 17:40:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-nested-exception-message/m-p/178640#M51371</guid>
      <dc:creator>Gilberto_Castil</dc:creator>
      <dc:date>2015-08-17T17:40:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract nested exception/message</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-nested-exception-message/m-p/178641#M51372</link>
      <description>&lt;P&gt;Thanks for sending.  I could not get a match for this on regex101.com or regexr.com.  I will try to see what needs modification.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Aug 2015 21:46:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-nested-exception-message/m-p/178641#M51372</guid>
      <dc:creator>mshea</dc:creator>
      <dc:date>2015-08-17T21:46:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract nested exception/message</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-nested-exception-message/m-p/178642#M51373</link>
      <description>&lt;P&gt;Actually, I mispoke, this does match. &lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 17 Aug 2015 21:49:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-nested-exception-message/m-p/178642#M51373</guid>
      <dc:creator>mshea</dc:creator>
      <dc:date>2015-08-17T21:49:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract nested exception/message</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-nested-exception-message/m-p/178643#M51374</link>
      <description>&lt;P&gt;I used this example to output 3 valuable fields including the callstack which includes the line of source.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(?s)Nested Exception.+Exception:\s+(?[^\n]*)\s*Message:\s(?.*)Source:\s(?.*\:line.{4})
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 17 Aug 2015 21:51:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-nested-exception-message/m-p/178643#M51374</guid>
      <dc:creator>mshea</dc:creator>
      <dc:date>2015-08-17T21:51:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract nested exception/message</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-nested-exception-message/m-p/178644#M51375</link>
      <description>&lt;P&gt;I could not get this to match.&lt;BR /&gt;
One of my tools gave an error on this:  P.*$  saying it was illegal group syntax.&lt;/P&gt;

&lt;P&gt;Thanks for sending!&lt;/P&gt;</description>
      <pubDate>Mon, 17 Aug 2015 21:53:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-nested-exception-message/m-p/178644#M51375</guid>
      <dc:creator>mshea</dc:creator>
      <dc:date>2015-08-17T21:53:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract nested exception/message</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-nested-exception-message/m-p/178645#M51376</link>
      <description>&lt;P&gt;Very cool. Happy Splunking!&lt;/P&gt;</description>
      <pubDate>Mon, 17 Aug 2015 21:53:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-nested-exception-message/m-p/178645#M51376</guid>
      <dc:creator>Gilberto_Castil</dc:creator>
      <dc:date>2015-08-17T21:53:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract nested exception/message</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-nested-exception-message/m-p/178646#M51377</link>
      <description>&lt;P&gt;It worked on regex101.com.  Try removing the '$' as it should match with or without it.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Aug 2015 22:41:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-nested-exception-message/m-p/178646#M51377</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2015-08-17T22:41:40Z</dc:date>
    </item>
  </channel>
</rss>

