<?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: searchmanager : Error extracting fields in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/searchmanager-Error-extracting-fields/m-p/114374#M30244</link>
    <description>&lt;P&gt;I think the problem should be your regular expression. Try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;search="index=jobevent NOT \"Racu name\" | rex field=_raw  \"ForsCartNumbers(?&amp;lt;cart_num&amp;gt;w{2}d{3})\" | stats count by cart_num"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 19 May 2015 21:39:19 GMT</pubDate>
    <dc:creator>stephanefotso</dc:creator>
    <dc:date>2015-05-19T21:39:19Z</dc:date>
    <item>
      <title>searchmanager : Error extracting fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/searchmanager-Error-extracting-fields/m-p/114372#M30242</link>
      <description>&lt;P&gt;Hi&lt;BR /&gt;
Today I started to work with the Django binding and I am trying to extract a field, but I encountered an error. I am not sure what is wrong. I tried to run the search inline and it worked correctly.&lt;/P&gt;

&lt;P&gt;{% searchmanager&lt;BR /&gt;
        id="stats_count_by_cart_num"&lt;BR /&gt;
    search="index=jobevent NOT "Racu name" | rex  "For\sCartNumber\s(?&amp;lt;cart_num&amp;gt;\w{2}\d{3})" | stats count by cart_num"&lt;BR /&gt;
    earliest_time="-2y@y"&lt;BR /&gt;
    latest_time="now"&lt;BR /&gt;
    cache=False&lt;BR /&gt;
    %}&lt;/P&gt;

&lt;P&gt;⚠ Error in 'rex' command: The regex '"For\sCartNumber\s(?&amp;lt;cart_num&amp;gt;\w{2}\d{3})"' does not extract anything. It should specify at least one named group. Format: (?...). &lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 19:59:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/searchmanager-Error-extracting-fields/m-p/114372#M30242</guid>
      <dc:creator>edrivera3</dc:creator>
      <dc:date>2020-09-28T19:59:26Z</dc:date>
    </item>
    <item>
      <title>Re: searchmanager : Error extracting fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/searchmanager-Error-extracting-fields/m-p/114373#M30243</link>
      <description>&lt;P&gt;UPDATE: ;&lt;BR /&gt;
I decided to extract the field in props.conf, but I encountered an error anyway: No results found.&lt;/P&gt;

&lt;P&gt;search="index=jobevent NOT "Racu name" | stats count by cart_num"&lt;/P&gt;</description>
      <pubDate>Tue, 19 May 2015 20:27:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/searchmanager-Error-extracting-fields/m-p/114373#M30243</guid>
      <dc:creator>edrivera3</dc:creator>
      <dc:date>2015-05-19T20:27:47Z</dc:date>
    </item>
    <item>
      <title>Re: searchmanager : Error extracting fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/searchmanager-Error-extracting-fields/m-p/114374#M30244</link>
      <description>&lt;P&gt;I think the problem should be your regular expression. Try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;search="index=jobevent NOT \"Racu name\" | rex field=_raw  \"ForsCartNumbers(?&amp;lt;cart_num&amp;gt;w{2}d{3})\" | stats count by cart_num"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 19 May 2015 21:39:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/searchmanager-Error-extracting-fields/m-p/114374#M30244</guid>
      <dc:creator>stephanefotso</dc:creator>
      <dc:date>2015-05-19T21:39:19Z</dc:date>
    </item>
    <item>
      <title>Re: searchmanager : Error extracting fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/searchmanager-Error-extracting-fields/m-p/114375#M30245</link>
      <description>&lt;P&gt;Now, I am extracting the field using props.conf. I verified it in the Splunk App and the field values are correct so there is no problem with the regex. But for some reason there is not result found from the search. I think maybe the problem is related to some permission limitation but I am not sure where to look for them.&lt;/P&gt;</description>
      <pubDate>Tue, 19 May 2015 22:10:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/searchmanager-Error-extracting-fields/m-p/114375#M30245</guid>
      <dc:creator>edrivera3</dc:creator>
      <dc:date>2015-05-19T22:10:47Z</dc:date>
    </item>
    <item>
      <title>Re: searchmanager : Error extracting fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/searchmanager-Error-extracting-fields/m-p/114376#M30246</link>
      <description>&lt;P&gt;I'm not sure about some permission here. I think you must escape &lt;STRONG&gt;double quotes&lt;/STRONG&gt; properly. In some cases, instead of enclose your search wth double quotes you must use simple quotes. Something like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; search='index=jobevent NOT \"Racu name\" | rex field=_raw  \"ForsCartNumbers(?&amp;amp;lt;cart_num&amp;amp;gt;w{2}d{3})\" | stats count by cart_num'
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 19 May 2015 22:31:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/searchmanager-Error-extracting-fields/m-p/114376#M30246</guid>
      <dc:creator>stephanefotso</dc:creator>
      <dc:date>2015-05-19T22:31:43Z</dc:date>
    </item>
    <item>
      <title>Re: searchmanager : Error extracting fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/searchmanager-Error-extracting-fields/m-p/114377#M30247</link>
      <description>&lt;P&gt;Thank you. You were right. I made the changes and it worked perfectly. &lt;/P&gt;</description>
      <pubDate>Wed, 20 May 2015 14:41:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/searchmanager-Error-extracting-fields/m-p/114377#M30247</guid>
      <dc:creator>edrivera3</dc:creator>
      <dc:date>2015-05-20T14:41:14Z</dc:date>
    </item>
  </channel>
</rss>

