<?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: Exclude results from lookup table in search in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Exclude-results-from-lookup-table-in-search/m-p/547355#M155203</link>
    <description>&lt;P&gt;HI&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/233045"&gt;@Dalador&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;try like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;(index IN (index1, index2)) EventCode=4698 [inputlookup scheduled_tasks |fields Arguments, Command | format "(" "(" "AND" ")" "NOT" ")"] | fillnull Arguments value="-" | rex field=_raw "(?P&amp;lt;Command&amp;gt;((?&amp;lt;=\bCommand&amp;gt;).*(?=&amp;lt;)))" | rex field=_raw "(?P&amp;lt;Arguments&amp;gt;((?&amp;lt;=\bArguments&amp;gt;).*(?=&amp;lt;)))" |table Command,Arguments |dedup Command,Arguments&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Karma given or solution confirmation appreciated&lt;/P&gt;&lt;P&gt;Alessandro&lt;/P&gt;</description>
    <pubDate>Fri, 09 Apr 2021 12:36:33 GMT</pubDate>
    <dc:creator>aasabatini</dc:creator>
    <dc:date>2021-04-09T12:36:33Z</dc:date>
    <item>
      <title>Exclude results from lookup table in search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Exclude-results-from-lookup-table-in-search/m-p/547334#M155189</link>
      <description>&lt;DIV class="lia-quilt-row lia-quilt-row-message-author"&gt;&lt;DIV class="lia-quilt-column lia-quilt-column-04 lia-quilt-column-right lia-quilt-column-message-post-times-content"&gt;&lt;DIV class="lia-quilt-column-alley lia-quilt-column-alley-right"&gt;&lt;DIV class="lia-message-post-date lia-component-post-date lia-component-message-view-widget-post-date"&gt;&lt;SPAN&gt;I have a lookup table with Scheduled Tasks called scheduled_tasks, and Columns Command, Arguments.&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="lia-quilt-row lia-quilt-row-message-body"&gt;&lt;DIV class="lia-quilt-column lia-quilt-column-24 lia-quilt-column-single lia-quilt-column-message-body-content"&gt;&lt;DIV class="lia-quilt-column-alley lia-quilt-column-alley-single"&gt;&lt;DIV class="lia-message-body lia-component-message-view-widget-body lia-component-body-signature-highlight-escalation lia-component-message-view-widget-body-signature-highlight-escalation"&gt;&lt;DIV class="lia-message-body-content"&gt;&lt;P&gt;I need to do a search where I only display results where the Arguments, Command fields in events DOES NOT contain a value in the scheduled_tasks lookup table. Where it is going wrong? Thank you!&lt;BR /&gt;My query is:&amp;nbsp;&lt;/P&gt;&lt;P&gt;(index IN (index1, index2)) EventCode=4698 NOT [|inputlookup scheduled_tasks |fields Arguments, Command] | fillnull Arguments value="-" | rex field=_raw "(?P&amp;lt;Command&amp;gt;((?&amp;lt;=\bCommand&amp;gt;).*(?=&amp;lt;)))" | rex field=_raw "(?P&amp;lt;Arguments&amp;gt;((?&amp;lt;=\bArguments&amp;gt;).*(?=&amp;lt;)))" |table Command,Arguments |dedup Command,Arguments&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My lookup table:&amp;nbsp;&lt;/P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="example3.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/13688i202C267671A2EACA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="example3.png" alt="example3.png" /&gt;&lt;/span&gt;&lt;P&gt; &lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 09 Apr 2021 10:00:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Exclude-results-from-lookup-table-in-search/m-p/547334#M155189</guid>
      <dc:creator>Dalador</dc:creator>
      <dc:date>2021-04-09T10:00:33Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude results from lookup table in search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Exclude-results-from-lookup-table-in-search/m-p/547355#M155203</link>
      <description>&lt;P&gt;HI&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/233045"&gt;@Dalador&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;try like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;(index IN (index1, index2)) EventCode=4698 [inputlookup scheduled_tasks |fields Arguments, Command | format "(" "(" "AND" ")" "NOT" ")"] | fillnull Arguments value="-" | rex field=_raw "(?P&amp;lt;Command&amp;gt;((?&amp;lt;=\bCommand&amp;gt;).*(?=&amp;lt;)))" | rex field=_raw "(?P&amp;lt;Arguments&amp;gt;((?&amp;lt;=\bArguments&amp;gt;).*(?=&amp;lt;)))" |table Command,Arguments |dedup Command,Arguments&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Karma given or solution confirmation appreciated&lt;/P&gt;&lt;P&gt;Alessandro&lt;/P&gt;</description>
      <pubDate>Fri, 09 Apr 2021 12:36:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Exclude-results-from-lookup-table-in-search/m-p/547355#M155203</guid>
      <dc:creator>aasabatini</dc:creator>
      <dc:date>2021-04-09T12:36:33Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude results from lookup table in search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Exclude-results-from-lookup-table-in-search/m-p/547357#M155204</link>
      <description>&lt;P&gt;Same result &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Apr 2021 12:23:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Exclude-results-from-lookup-table-in-search/m-p/547357#M155204</guid>
      <dc:creator>Dalador</dc:creator>
      <dc:date>2021-04-09T12:23:22Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude results from lookup table in search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Exclude-results-from-lookup-table-in-search/m-p/547360#M155206</link>
      <description>&lt;P&gt;hey&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/233045"&gt;@Dalador&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;can you show me the results of this search?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;|inputlookup scheduled_tasks |fields Arguments, Command | format "(" "(" "AND" ")" "NOT" ")"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if the results is 0 please check if the permission of the lookup is set on&amp;nbsp; global.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Apr 2021 12:46:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Exclude-results-from-lookup-table-in-search/m-p/547360#M155206</guid>
      <dc:creator>aasabatini</dc:creator>
      <dc:date>2021-04-09T12:46:36Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude results from lookup table in search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Exclude-results-from-lookup-table-in-search/m-p/547364#M155208</link>
      <description>&lt;P&gt;I rewrote my query:&amp;nbsp;&lt;BR /&gt;&amp;nbsp; EventCode=4698 | fillnull Arguments value="-" | rex field=_raw "(?P&amp;lt;Command&amp;gt;((?&amp;lt;=\bCommand&amp;gt;).*(?=&amp;lt;)))" | rex field=_raw "(?P&amp;lt;Arguments&amp;gt;((?&amp;lt;=\bArguments&amp;gt;).*(?=&amp;lt;)))" |search NOT [|inputlookup scheduled_task |fields Arguments, Command]|table Task_Name, ComputerName,Command,_time,Arguments, Account_Name&lt;BR /&gt;&lt;BR /&gt;This works for me &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Apr 2021 12:59:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Exclude-results-from-lookup-table-in-search/m-p/547364#M155208</guid>
      <dc:creator>Dalador</dc:creator>
      <dc:date>2021-04-09T12:59:18Z</dc:date>
    </item>
  </channel>
</rss>

