<?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: Adding filter to query using IN in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Adding-filter-to-query-using-IN/m-p/554479#M157391</link>
    <description>&lt;P&gt;Try this alternative&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=dev NOT TRAN_CLASS=6 sourcetype IN (ibm:was:performanceLog, ibm:was:cp:performanceLog, ar:mdm) source IN ("/data/sharedDir/wp/*/logs/ARWP*Srv*/performance.log", "/data/sharedDir/cp/*/logs/ARCP*Srv*/sspperformance.log", "/data/infamdm_dev/hub/server/logs/EmpiW**bleep**Stats.log") | fields TRAN_TYPE, respTime | stats count(TRAN_TYPE) as Total_Pages1, count(respTime) as "Total_Pages2" | addtotals fieldname="Total Pages" |fields "Total Pages"&lt;/LI-CODE&gt;</description>
    <pubDate>Fri, 04 Jun 2021 12:39:19 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2021-06-04T12:39:19Z</dc:date>
    <item>
      <title>Adding filter to query using IN</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Adding-filter-to-query-using-IN/m-p/554303#M157343</link>
      <description>&lt;P&gt;Can I please get some assistance on the below?&lt;/P&gt;&lt;P&gt;I'm trying to add a filter TRAN_CLASS!=6 to the below query. When I add the filter to after the index,&amp;nbsp;Total_Pages2 shows a zero.&lt;/P&gt;&lt;P&gt;index=dev sourcetype IN (ibm:was:performanceLog, ibm:was:cp:performanceLog, ar:mdm) source IN ("/data/sharedDir/wp/*/logs/ARWP*Srv*/performance.log", "/data/sharedDir/cp/*/logs/ARCP*Srv*/sspperformance.log", "/data/infamdm_dev/hub/server/logs/EmpiW**bleep**Stats.log") | fields TRAN_TYPE, respTime | stats count(TRAN_TYPE) as Total_Pages1, count(respTime) as "Total_Pages2" | addtotals fieldname="Total Pages" |fields "Total Pages"&lt;/P&gt;&lt;P&gt;Any assistance provided is appreciated.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jun 2021 14:06:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Adding-filter-to-query-using-IN/m-p/554303#M157343</guid>
      <dc:creator>shrogers</dc:creator>
      <dc:date>2021-06-03T14:06:41Z</dc:date>
    </item>
    <item>
      <title>Re: Adding filter to query using IN</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Adding-filter-to-query-using-IN/m-p/554312#M157344</link>
      <description>&lt;P&gt;Please share the exact query using &lt;FONT face="courier new,courier"&gt;TRAN_CLASS!=6&lt;/FONT&gt; so we can see how you're using it.&lt;/P&gt;&lt;P&gt;Have checked that events with TRAN_CLASS values other than 6 have a respTime field?&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jun 2021 14:24:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Adding-filter-to-query-using-IN/m-p/554312#M157344</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2021-06-03T14:24:19Z</dc:date>
    </item>
    <item>
      <title>Re: Adding filter to query using IN</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Adding-filter-to-query-using-IN/m-p/554319#M157346</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Thank you for the assistance.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Please see the query with&amp;nbsp;TRAN_CLASS!=6. TRAN_CLASS is only available in&amp;nbsp;(ibm:was:performanceLog, ibm:was:cp:performanceLog)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;index=dev TRAN_CLASS!=6 sourcetype IN (ibm:was:performanceLog, ibm:was:cp:performanceLog, ar:mdm) source IN ("/data/sharedDir/wp/*/logs/ARWP*Srv*/performance.log", "/data/sharedDir/cp/*/logs/ARCP*Srv*/sspperformance.log", "/data/infamdm_dev/hub/server/logs/EmpiW**bleep**Stats.log") | fields TRAN_TYPE, respTime | stats count(TRAN_TYPE) as Total_Pages1, count(respTime) as "Total_Pages2" | addtotals fieldname="Total Pages" |fields "Total Pages"&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jun 2021 14:41:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Adding-filter-to-query-using-IN/m-p/554319#M157346</guid>
      <dc:creator>shrogers</dc:creator>
      <dc:date>2021-06-03T14:41:05Z</dc:date>
    </item>
    <item>
      <title>Re: Adding filter to query using IN</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Adding-filter-to-query-using-IN/m-p/554479#M157391</link>
      <description>&lt;P&gt;Try this alternative&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=dev NOT TRAN_CLASS=6 sourcetype IN (ibm:was:performanceLog, ibm:was:cp:performanceLog, ar:mdm) source IN ("/data/sharedDir/wp/*/logs/ARWP*Srv*/performance.log", "/data/sharedDir/cp/*/logs/ARCP*Srv*/sspperformance.log", "/data/infamdm_dev/hub/server/logs/EmpiW**bleep**Stats.log") | fields TRAN_TYPE, respTime | stats count(TRAN_TYPE) as Total_Pages1, count(respTime) as "Total_Pages2" | addtotals fieldname="Total Pages" |fields "Total Pages"&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 04 Jun 2021 12:39:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Adding-filter-to-query-using-IN/m-p/554479#M157391</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2021-06-04T12:39:19Z</dc:date>
    </item>
    <item>
      <title>Re: Adding filter to query using IN</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Adding-filter-to-query-using-IN/m-p/554500#M157395</link>
      <description>&lt;P&gt;Thank you for your assistance. That query works.&lt;/P&gt;&lt;P&gt;My only concern with using NOT instead of "!=" is that NOT will bring back all rows even if TRAN_CLASS=' '. Plus TRAN_CLASS is not a field in "ar:mdm" and just using "!=" will affect respTime.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Jun 2021 15:18:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Adding-filter-to-query-using-IN/m-p/554500#M157395</guid>
      <dc:creator>shrogers</dc:creator>
      <dc:date>2021-06-04T15:18:18Z</dc:date>
    </item>
  </channel>
</rss>

