<?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 a filed which is in 4th line in log | Field Extraction in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-filed-which-is-in-4th-line-in-log-Field/m-p/583687#M203261</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;failed\s+(?&amp;lt;test_work_error&amp;gt;[\w\.]*Exception)\:&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 04 Feb 2022 08:08:07 GMT</pubDate>
    <dc:creator>johnhuang</dc:creator>
    <dc:date>2022-02-04T08:08:07Z</dc:date>
    <item>
      <title>How to extract a filed which is in 4th line in log | Field Extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-filed-which-is-in-4th-line-in-log-Field/m-p/583676#M203255</link>
      <description>&lt;P&gt;I a trying to Extract the exception Name which is at the 4th line in log generated as below -&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;EM&gt;&amp;lt;CS-1&amp;gt;2022-02-03T14:58:21.128+0100 ERROR org.flowable.job.service.impl.asyncexecutor.DefaultAsyncRunnableExecutionExceptionHandler 77037 DefaultAsyncRunnableExecutionExceptionHandler.java:44 -&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;EM&gt;[{user=system}]&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;EM&gt;- Job JOB-2d21fa4f-84f8-11ec-9094-02425ecfb8fb failed&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;EM&gt;&lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;org.flowable.common.engine.api.FlowableOptimisticLockingException:&lt;/STRONG&gt;&lt;/FONT&gt; JobEntity [id=JOB-2d21fa4f-84f8-11ec-9094-02425ecfb8fb] was updated by another transaction concurrently&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;EM&gt;at org.flowable.common.engine.impl.db.DbSqlSession.flushDeleteEntities(DbSqlSession.java:643) ~[flowable-engine-common-6.6.0.17.jar!/:6.6.0.17]&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;I want to have the filed extraction of the Exception Name which is highlighted above in blue. - its position is 4th line and till the colon(:)&lt;/P&gt;&lt;P&gt;I am trying to use this which does not work in splunk field extraction regex-&amp;nbsp;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;^(.*\n){3}(?P&amp;lt;test_work_error&amp;gt;.+Exception:)&lt;/STRONG&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please advise. Thanks in advance&lt;/P&gt;</description>
      <pubDate>Fri, 04 Feb 2022 06:18:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-filed-which-is-in-4th-line-in-log-Field/m-p/583676#M203255</guid>
      <dc:creator>ksidkumar</dc:creator>
      <dc:date>2022-02-04T06:18:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract a filed which is in 4th line in log | Field Extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-filed-which-is-in-4th-line-in-log-Field/m-p/583677#M203256</link>
      <description>&lt;P&gt;Are you sure it's on the fourth line? Pasting here seems to have massacred your event. Anyway, in such case it's usually easier to anchor to some known "static" part of message.&lt;/P&gt;&lt;P&gt;Like&lt;/P&gt;&lt;PRE&gt;Job\s(?&amp;lt;JobID&amp;gt;\S+)\sfailed\s(?&amp;lt;exception&amp;gt;\S+):&lt;/PRE&gt;</description>
      <pubDate>Fri, 04 Feb 2022 06:30:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-filed-which-is-in-4th-line-in-log-Field/m-p/583677#M203256</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2022-02-04T06:30:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract a filed which is in 4th line in log | Field Extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-filed-which-is-in-4th-line-in-log-Field/m-p/583681#M203258</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/231884"&gt;@PickleRick&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Yes its on the 4th line..&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Main issue is that we really don't have any static filed to track like u used JobId.&lt;BR /&gt;only i know is the 4th line till the word Exception: is encountered.&lt;BR /&gt;&lt;BR /&gt;what i was trying is -&lt;STRONG&gt;&amp;nbsp;^(.*\n){3}(?P&amp;lt;test_work_error&amp;gt;.+Exception:)&lt;/STRONG&gt;&lt;BR /&gt;It works fine in any regex environment but not in Splunk filed extraction&lt;/P&gt;</description>
      <pubDate>Fri, 04 Feb 2022 06:53:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-filed-which-is-in-4th-line-in-log-Field/m-p/583681#M203258</guid>
      <dc:creator>ksidkumar</dc:creator>
      <dc:date>2022-02-04T06:53:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract a filed which is in 4th line in log | Field Extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-filed-which-is-in-4th-line-in-log-Field/m-p/583684#M203260</link>
      <description>&lt;P&gt;If your events really get split properly and you indeed have multiline events. And you want the particular line, you should fiddle with the multiline regex modifiers (m and s) and line ends matching modifiers (*LF *CR *ANY and so on). I'm not sure which are on or off by default.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Feb 2022 07:44:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-filed-which-is-in-4th-line-in-log-Field/m-p/583684#M203260</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2022-02-04T07:44:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract a filed which is in 4th line in log | Field Extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-filed-which-is-in-4th-line-in-log-Field/m-p/583687#M203261</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;failed\s+(?&amp;lt;test_work_error&amp;gt;[\w\.]*Exception)\:&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Feb 2022 08:08:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-filed-which-is-in-4th-line-in-log-Field/m-p/583687#M203261</guid>
      <dc:creator>johnhuang</dc:creator>
      <dc:date>2022-02-04T08:08:07Z</dc:date>
    </item>
  </channel>
</rss>

