<?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 below field from logs ? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-below-field-from-logs/m-p/370111#M109016</link>
    <description>&lt;P&gt;Hello @tiagofbmm,&lt;BR /&gt;
Thanks for the answer.&lt;BR /&gt;
But, i m getting error as "Error in 'rex' command: Encountered the following error while compiling the regex 'ConnectorException:s(?.*)': Regex: unrecognized character after (? or (?- "&lt;/P&gt;</description>
    <pubDate>Wed, 21 Mar 2018 11:51:20 GMT</pubDate>
    <dc:creator>Dinesh_Raja</dc:creator>
    <dc:date>2018-03-21T11:51:20Z</dc:date>
    <item>
      <title>How to extract below field from logs ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-below-field-from-logs/m-p/370109#M109014</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I need to create a dashboard which shows error messages &amp;amp; its count over the time. i have a logfile like below and i would like to extract the error message as a field.&lt;/P&gt;

&lt;P&gt;"[syncservice] [ERROR] [20 Mar 2018 04:09:56,654] : [7dfhsdgw-4dgsj-ashgah-svahs5226] : [com.xxx.xxxx.xxxx.xxxx]: Failed to invoke service xxx.xxxxxx.xxxx.ConnectorException: &lt;STRONG&gt;IOException occurred for ServiceLogMessage while obtaining response: Connection to &lt;A href="http://localhost:8080"&gt;http://localhost:8080&lt;/A&gt; refused&lt;/STRONG&gt;" &lt;/P&gt;</description>
      <pubDate>Wed, 21 Mar 2018 11:18:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-below-field-from-logs/m-p/370109#M109014</guid>
      <dc:creator>Dinesh_Raja</dc:creator>
      <dc:date>2018-03-21T11:18:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract below field from logs ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-below-field-from-logs/m-p/370110#M109015</link>
      <description>&lt;P&gt;Working solely on the example you gave in the question,&lt;/P&gt;

&lt;P&gt;| rex field=_raw "ConnectorException:s(?.*)"&lt;/P&gt;</description>
      <pubDate>Wed, 21 Mar 2018 11:35:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-below-field-from-logs/m-p/370110#M109015</guid>
      <dc:creator>tiagofbmm</dc:creator>
      <dc:date>2018-03-21T11:35:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract below field from logs ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-below-field-from-logs/m-p/370111#M109016</link>
      <description>&lt;P&gt;Hello @tiagofbmm,&lt;BR /&gt;
Thanks for the answer.&lt;BR /&gt;
But, i m getting error as "Error in 'rex' command: Encountered the following error while compiling the regex 'ConnectorException:s(?.*)': Regex: unrecognized character after (? or (?- "&lt;/P&gt;</description>
      <pubDate>Wed, 21 Mar 2018 11:51:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-below-field-from-logs/m-p/370111#M109016</guid>
      <dc:creator>Dinesh_Raja</dc:creator>
      <dc:date>2018-03-21T11:51:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract below field from logs ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-below-field-from-logs/m-p/370112#M109017</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;...| rex field=_raw "ConnectorException\:s(?&amp;lt;errormsg&amp;gt;.*)"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 21 Mar 2018 11:53:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-below-field-from-logs/m-p/370112#M109017</guid>
      <dc:creator>493669</dc:creator>
      <dc:date>2018-03-21T11:53:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract below field from logs ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-below-field-from-logs/m-p/370113#M109018</link>
      <description>&lt;P&gt;My bad, forgot to put it as Code&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rex field=_raw "ConnectorException\:s(?&amp;lt;ConnectorException&amp;gt;.*)"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 21 Mar 2018 11:53:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-below-field-from-logs/m-p/370113#M109018</guid>
      <dc:creator>tiagofbmm</dc:creator>
      <dc:date>2018-03-21T11:53:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract below field from logs ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-below-field-from-logs/m-p/370114#M109019</link>
      <description>&lt;P&gt;based on @tiagofbmm 's answer, try this &lt;CODE&gt;| rex field=_raw "ConnectorException:\s(?&amp;lt;ConnectorException&amp;gt;.*)"&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;you can test out regex's at this website: &lt;A href="https://regex101.com/"&gt;https://regex101.com/&lt;/A&gt;&lt;BR /&gt;
it is a great place to learn and test out what you're doing. &lt;/P&gt;</description>
      <pubDate>Wed, 21 Mar 2018 12:04:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-below-field-from-logs/m-p/370114#M109019</guid>
      <dc:creator>cmerriman</dc:creator>
      <dc:date>2018-03-21T12:04:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract below field from logs ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-below-field-from-logs/m-p/370115#M109020</link>
      <description>&lt;P&gt;Thanks for your answer @493669.&lt;BR /&gt;
:)&lt;/P&gt;</description>
      <pubDate>Wed, 21 Mar 2018 12:05:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-below-field-from-logs/m-p/370115#M109020</guid>
      <dc:creator>Dinesh_Raja</dc:creator>
      <dc:date>2018-03-21T12:05:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract below field from logs ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-below-field-from-logs/m-p/370116#M109021</link>
      <description>&lt;P&gt;Please upvote and accept answers&lt;/P&gt;</description>
      <pubDate>Wed, 21 Mar 2018 12:08:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-below-field-from-logs/m-p/370116#M109021</guid>
      <dc:creator>tiagofbmm</dc:creator>
      <dc:date>2018-03-21T12:08:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract below field from logs ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-below-field-from-logs/m-p/370117#M109022</link>
      <description>&lt;P&gt;Hello @cmerriman,&lt;BR /&gt;
Yes, it works &amp;amp; Thanks for  sharing the knowledge &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Mar 2018 12:08:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-below-field-from-logs/m-p/370117#M109022</guid>
      <dc:creator>Dinesh_Raja</dc:creator>
      <dc:date>2018-03-21T12:08:26Z</dc:date>
    </item>
  </channel>
</rss>

