<?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: Extract Field Issue, but when using in a search. in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Extract-Field-Issue-but-when-using-in-a-search/m-p/541036#M153158</link>
    <description>&lt;P&gt;I'm sorry, I'm not sure exactly what you mean. Are you suggesting to use CASE and not use the extracted field or to use CASE with the extracted field? Either way, I'm not really sure the correct syntax to use...I should add, I'm very new to Splunk. I've used it for about 2 weeks &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I checked this page and its not very clear:&amp;nbsp;&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.1.1/Search/UseCASEandTERMtomatchphrases" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/8.1.1/Search/UseCASEandTERMtomatchphrases&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 23 Feb 2021 15:55:26 GMT</pubDate>
    <dc:creator>kgs</dc:creator>
    <dc:date>2021-02-23T15:55:26Z</dc:date>
    <item>
      <title>Extract Field Issue, but when using in a search.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-Field-Issue-but-when-using-in-a-search/m-p/540923#M153093</link>
      <description>&lt;P&gt;&lt;SPAN&gt;My goal is to match whatever is after "Commit Description:" up until but not including the " after TASK0123456. I don't want to match the specific TASK[0-9]*, just whatever someone enters in a Palo Alto commit description.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I am using the following regex string and it shows to match fine in the regex query field extraction page.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;(?&amp;lt;=Description:\s)(?P&amp;lt;pansys_commitdes&amp;gt;\w+)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;However, my issue is when doing a search in Splunk, the field shows up and seems to work correctly...until I use it in a search. My goal is to effectively look for pansys_commitdes!="*CHG*" OR&amp;nbsp;pansys_commitdes!="*TASK*" with the intent of creating a report of changes that are not following change control processes. With these searches I get no matches. I also tried pansys_commitdes=* and&amp;nbsp;pansys_commitdes="*" and also get no matches...but if I do pansys_commitdes=TASK0123456 it matches fine.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="kgs_0-1614035797164.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/13015i7B8155007E77DE32/image-size/medium?v=v2&amp;amp;px=400" role="button" title="kgs_0-1614035797164.png" alt="kgs_0-1614035797164.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="kgs_1-1614035802286.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/13016i14D0C9D3F0843572/image-size/medium?v=v2&amp;amp;px=400" role="button" title="kgs_1-1614035802286.png" alt="kgs_1-1614035802286.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This is an example of a log I'm trying to match on:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;Feb 22 09:08:52 paloalto.contoso.com 1,2021/02/22 09:08:52,01234567890,SYSTEM,general,0,2021/02/22 09:08:52,,general,,0,0,general,informational,"CommitAll job started processing. Dequeue time=2021/02/22 09:08:52. JobId=3938587.User: abc . Commit Description: TASK0123456",22356363,0x0,0,0,0,0,,pan-01&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Feb 2021 23:17:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-Field-Issue-but-when-using-in-a-search/m-p/540923#M153093</guid>
      <dc:creator>kgs</dc:creator>
      <dc:date>2021-02-22T23:17:43Z</dc:date>
    </item>
    <item>
      <title>Re: Extract Field Issue, but when using in a search.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-Field-Issue-but-when-using-in-a-search/m-p/540933#M153098</link>
      <description>&lt;P&gt;try &lt;STRONG&gt;CASE("")&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;NOT ( CASE("TASK") OR CASE("CHG") )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;sample:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=_internal NOT (CASE("Metrics") OR CASE("splunkd") OR CASE("WARN") )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Feb 2021 00:03:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-Field-Issue-but-when-using-in-a-search/m-p/540933#M153098</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2021-02-23T00:03:40Z</dc:date>
    </item>
    <item>
      <title>Re: Extract Field Issue, but when using in a search.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-Field-Issue-but-when-using-in-a-search/m-p/541036#M153158</link>
      <description>&lt;P&gt;I'm sorry, I'm not sure exactly what you mean. Are you suggesting to use CASE and not use the extracted field or to use CASE with the extracted field? Either way, I'm not really sure the correct syntax to use...I should add, I'm very new to Splunk. I've used it for about 2 weeks &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I checked this page and its not very clear:&amp;nbsp;&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.1.1/Search/UseCASEandTERMtomatchphrases" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/8.1.1/Search/UseCASEandTERMtomatchphrases&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Feb 2021 15:55:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-Field-Issue-but-when-using-in-a-search/m-p/541036#M153158</guid>
      <dc:creator>kgs</dc:creator>
      <dc:date>2021-02-23T15:55:26Z</dc:date>
    </item>
  </channel>
</rss>

