<?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: Unable to extract value and receiving error message in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Unable-to-extract-value-and-receiving-error-message/m-p/488413#M136447</link>
    <description>&lt;P&gt;Update:  Fixed a typo&lt;/P&gt;

&lt;P&gt;It's hard to tell since your example isn't in a code block, but try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rex field=_raw "INFO=&amp;gt;CaseFileID\s*(?&amp;lt;CaseFileID&amp;gt;\d+)"
| rex field=_raw "INFO=&amp;gt;Envelope InstID\s*=\s*(?&amp;lt;instID&amp;gt;\d+)"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You don't have to escape all the characters, and I think the rex issue is that you have a "\" instead of maybe "\s" and in your field capture you didn't have the opening character "&amp;lt;" -  &lt;CODE&gt;(?instID&amp;gt;\d+)&lt;/CODE&gt; should be &lt;CODE&gt;(?&amp;lt;instID&amp;gt;\d+)&lt;/CODE&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 21 Nov 2019 18:04:33 GMT</pubDate>
    <dc:creator>wenthold</dc:creator>
    <dc:date>2019-11-21T18:04:33Z</dc:date>
    <item>
      <title>Unable to extract value and receiving error message</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Unable-to-extract-value-and-receiving-error-message/m-p/488412#M136446</link>
      <description>&lt;P&gt;What am I doing wrong here??&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=du sourcetype="du:sbaservice-log"  du_service="dugovt4.0"  "ERROR=" | rex field=_raw "INFO\=\&amp;gt;CaseFileID\s+(?.*)" | rex field=_raw "INFO\=&amp;gt;Envelope\\InstID\s\=\s(?instID&amp;gt;\d+)"| rex field=_raw "lenderCaseNo\s\[(?\d+)\]" | rex field=_raw "Originating\sID\:\s+(?\S+)" | rex field=_raw "SBA\sCommand\:\s+(?\S+)" | rex field=_raw "Host\:\s+(?\S+)" | rex field=_raw " Base\sGUID\:\s+(?\S+)" | eval BTime = strptime(Begin_time, "%H:%M:%S.%3N")  | eval CTime = strptime(Completion_time, "%H:%M:%S.%3N")  | eval ResTime=CTime-BTime
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Also, I am not getting the value of CASEFILEID data.&lt;/P&gt;

&lt;P&gt;I get an error:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;-Error in 'rex' command: Encountered the following error while compiling the regex 'INFO\=&amp;gt;Envelope\InstID\s\=\s(?instID&amp;gt;\d+)': Regex: unrecognized character follows \.
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;DATA:&lt;BR /&gt;
&lt;STRONG&gt;11/21/2019 12:22:01.817  INFO=&amp;gt;Executing workflow...&lt;BR /&gt;
11/21/2019 12:22:01.817  INFO=&amp;gt;CaseFileID 1427667459&lt;BR /&gt;
11/21/2019 12:22:01.817  INFO=&amp;gt;Creating task 1003ToCLDF&lt;BR /&gt;
11/21/2019 12:22:01.818  INFO=&amp;gt;Envelope InstID = 12006&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Nov 2019 17:24:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Unable-to-extract-value-and-receiving-error-message/m-p/488412#M136446</guid>
      <dc:creator>shwetamis</dc:creator>
      <dc:date>2019-11-21T17:24:01Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to extract value and receiving error message</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Unable-to-extract-value-and-receiving-error-message/m-p/488413#M136447</link>
      <description>&lt;P&gt;Update:  Fixed a typo&lt;/P&gt;

&lt;P&gt;It's hard to tell since your example isn't in a code block, but try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rex field=_raw "INFO=&amp;gt;CaseFileID\s*(?&amp;lt;CaseFileID&amp;gt;\d+)"
| rex field=_raw "INFO=&amp;gt;Envelope InstID\s*=\s*(?&amp;lt;instID&amp;gt;\d+)"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You don't have to escape all the characters, and I think the rex issue is that you have a "\" instead of maybe "\s" and in your field capture you didn't have the opening character "&amp;lt;" -  &lt;CODE&gt;(?instID&amp;gt;\d+)&lt;/CODE&gt; should be &lt;CODE&gt;(?&amp;lt;instID&amp;gt;\d+)&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Nov 2019 18:04:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Unable-to-extract-value-and-receiving-error-message/m-p/488413#M136447</guid>
      <dc:creator>wenthold</dc:creator>
      <dc:date>2019-11-21T18:04:33Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to extract value and receiving error message</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Unable-to-extract-value-and-receiving-error-message/m-p/488414#M136448</link>
      <description>&lt;P&gt;That worked &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; thank you so much&lt;/P&gt;</description>
      <pubDate>Thu, 21 Nov 2019 18:09:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Unable-to-extract-value-and-receiving-error-message/m-p/488414#M136448</guid>
      <dc:creator>shwetamis</dc:creator>
      <dc:date>2019-11-21T18:09:31Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to extract value and receiving error message</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Unable-to-extract-value-and-receiving-error-message/m-p/488415#M136449</link>
      <description>&lt;P&gt;you're welcome, glad it helped!&lt;/P&gt;</description>
      <pubDate>Thu, 21 Nov 2019 18:10:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Unable-to-extract-value-and-receiving-error-message/m-p/488415#M136449</guid>
      <dc:creator>wenthold</dc:creator>
      <dc:date>2019-11-21T18:10:08Z</dc:date>
    </item>
  </channel>
</rss>

