<?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: Splunk Query required to add Inclusion and exclusion condition in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-Query-required-to-add-Inclusion-and-exclusion-condition/m-p/695984#M115526</link>
    <description>&lt;P&gt;So, if an ip address from lookup_ist_cs_checkin_rooms.csv matches with a message&amp;nbsp;"display button:panel-*" &lt;U&gt;and&lt;/U&gt; it&lt;SPAN&gt;&amp;nbsp;matches with an ip address in a message with&amp;nbsp;"Ipaddress(from request header)", do you want to include it or exclude it? That is, which condition takes precedence?&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 12 Aug 2024 11:44:55 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2024-08-12T11:44:55Z</dc:date>
    <item>
      <title>Splunk Query required to add Inclusion and exclusion condition</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-Query-required-to-add-Inclusion-and-exclusion-condition/m-p/695980#M115525</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The following query retrieves &lt;FONT color="#FF6600"&gt;confroom_ipaddress&lt;/FONT&gt; values from the lookup table that do not match IP addresses found in the indexed logs:&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;FONT color="#008000"&gt;&lt;SPAN class=""&gt;|&lt;/SPAN&gt; inputlookup lookup_ist_cs_checkin_rooms.csv &lt;SPAN class=""&gt;where&lt;/SPAN&gt; &lt;SPAN class=""&gt;NOT&lt;/SPAN&gt; [&lt;SPAN class=""&gt;search&lt;/SPAN&gt; index&lt;SPAN class=""&gt;=&lt;/SPAN&gt;fow_checkin message&lt;SPAN class=""&gt;=&lt;/SPAN&gt;"display button:panel-*" &lt;SPAN class=""&gt;|&lt;/SPAN&gt; rex field&lt;SPAN class=""&gt;=&lt;/SPAN&gt;message "ipaddress: (?&amp;lt;ipaddress&amp;gt;[^ ]+)" &lt;SPAN class=""&gt;|&lt;/SPAN&gt; stats &lt;SPAN class=""&gt;values&lt;/SPAN&gt;(ipaddress) &lt;SPAN class=""&gt;as&lt;/SPAN&gt; confroom_ipaddress &lt;SPAN class=""&gt;|&lt;/SPAN&gt; &lt;SPAN class=""&gt;table&lt;/SPAN&gt; confroom_ipaddress] &lt;SPAN class=""&gt;|&lt;/SPAN&gt; rename confroom_ipaddress &lt;SPAN class=""&gt;as&lt;/SPAN&gt; ipaddress1&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;I would like to add an additional condition to include IP addresses that match those found in the following logs:&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;FONT color="#339966"&gt;index&lt;SPAN class=""&gt;=&lt;/SPAN&gt;fow_checkin "Ipaddress(from request header)" &lt;SPAN class=""&gt;|&lt;/SPAN&gt; rex field&lt;SPAN class=""&gt;=&lt;/SPAN&gt;message "IpAddress\(from request header\):\s*(?&amp;lt;ip_address&amp;gt;\S+)$" &lt;SPAN class=""&gt;|&lt;/SPAN&gt; stats &lt;SPAN class=""&gt;values&lt;/SPAN&gt;(ip_address) &lt;SPAN class=""&gt;as&lt;/SPAN&gt; ip_address2&lt;/FONT&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;This means we need to include&amp;nbsp;IP addresses from &lt;FONT color="#FF0000"&gt;lookup_ist_cs_checkin_rooms.csv&lt;/FONT&gt; that match with the message &lt;FONT color="#0000FF"&gt;"&lt;/FONT&gt;&lt;FONT color="#0000FF"&gt;Ipaddress(from request header)"&lt;/FONT&gt; andexclude IP addresses from lookup_ist_cs_checkin_rooms.csv that match with the message &lt;FONT color="#0000FF"&gt;"display button:panel-*"&amp;nbsp;&lt;/FONT&gt;&amp;nbsp;as&amp;nbsp;well.&amp;nbsp;Please&amp;nbsp;help.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Aug 2024 11:02:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-Query-required-to-add-Inclusion-and-exclusion-condition/m-p/695980#M115525</guid>
      <dc:creator>Tajuddin</dc:creator>
      <dc:date>2024-08-12T11:02:48Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Query required to add Inclusion and exclusion condition</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-Query-required-to-add-Inclusion-and-exclusion-condition/m-p/695984#M115526</link>
      <description>&lt;P&gt;So, if an ip address from lookup_ist_cs_checkin_rooms.csv matches with a message&amp;nbsp;"display button:panel-*" &lt;U&gt;and&lt;/U&gt; it&lt;SPAN&gt;&amp;nbsp;matches with an ip address in a message with&amp;nbsp;"Ipaddress(from request header)", do you want to include it or exclude it? That is, which condition takes precedence?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Aug 2024 11:44:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-Query-required-to-add-Inclusion-and-exclusion-condition/m-p/695984#M115526</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-08-12T11:44:55Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Query required to add Inclusion and exclusion condition</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-Query-required-to-add-Inclusion-and-exclusion-condition/m-p/695995#M115531</link>
      <description>&lt;P&gt;Your initial search might not be the best way to get what you're searching in the first place. Remember that Splunk's subsearches have their limits and might behave weirdly and give empty or wrong results if those limits are reached.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Aug 2024 13:28:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-Query-required-to-add-Inclusion-and-exclusion-condition/m-p/695995#M115531</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2024-08-12T13:28:18Z</dc:date>
    </item>
  </channel>
</rss>

