<?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: Working with where clause in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Working-with-where-clause/m-p/691904#M235553</link>
    <description>&lt;P&gt;The &lt;FONT face="courier new,courier"&gt;IN&lt;/FONT&gt; operator is not supported by the &lt;FONT face="courier new,courier"&gt;where&lt;/FONT&gt; command.&amp;nbsp; You can use &lt;FONT face="courier new,courier"&gt;IN&lt;/FONT&gt; with the &lt;FONT face="courier new,courier"&gt;search&lt;/FONT&gt; command or the &lt;FONT face="courier new,courier"&gt;in()&lt;/FONT&gt; function with the &lt;FONT face="courier new,courier"&gt;where&lt;/FONT&gt; command.&amp;nbsp; In this case, however, the &lt;FONT face="courier new,courier"&gt;IN&lt;/FONT&gt; is not needed if the subsearch is part of the base search (before the first pipe).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=provisioning_index cf_org_name=abcd cf_app_name=xyz "ReconCount:"
jobNumber [search index=provisioning_index cf_org_name=abcd cf_app_name=xyz operation="operation1" status=SUCCESS
  |search NOT jobType="Canc"|table jobNumber
  ]
| stats count by deliveryInd
| addcoltotals&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;</description>
    <pubDate>Fri, 28 Jun 2024 17:53:29 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2024-06-28T17:53:29Z</dc:date>
    <item>
      <title>Working with where clause</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Working-with-where-clause/m-p/691900#M235551</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm fairly new to splunk, trying to search using where clause and filter the results. The query is running long, wondering if i'm not doin this right.&lt;/P&gt;
&lt;P&gt;a tone down version of the search:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;index=provisioning_index cf_org_name=abcd cf_app_name=xyz "ReconCount:"
|where jobNumber IN ([search index=provisioning_index cf_org_name=abcd cf_app_name=xyz operation="operation1" status=SUCCESS
|search NOT jobType="Canc"|table jobNumber
])
|stats count by deliveryInd
| addcoltotals&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 27 Jun 2024 23:53:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Working-with-where-clause/m-p/691900#M235551</guid>
      <dc:creator>RamMur</dc:creator>
      <dc:date>2024-06-27T23:53:13Z</dc:date>
    </item>
    <item>
      <title>Re: Working with where clause</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Working-with-where-clause/m-p/691904#M235553</link>
      <description>&lt;P&gt;The &lt;FONT face="courier new,courier"&gt;IN&lt;/FONT&gt; operator is not supported by the &lt;FONT face="courier new,courier"&gt;where&lt;/FONT&gt; command.&amp;nbsp; You can use &lt;FONT face="courier new,courier"&gt;IN&lt;/FONT&gt; with the &lt;FONT face="courier new,courier"&gt;search&lt;/FONT&gt; command or the &lt;FONT face="courier new,courier"&gt;in()&lt;/FONT&gt; function with the &lt;FONT face="courier new,courier"&gt;where&lt;/FONT&gt; command.&amp;nbsp; In this case, however, the &lt;FONT face="courier new,courier"&gt;IN&lt;/FONT&gt; is not needed if the subsearch is part of the base search (before the first pipe).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=provisioning_index cf_org_name=abcd cf_app_name=xyz "ReconCount:"
jobNumber [search index=provisioning_index cf_org_name=abcd cf_app_name=xyz operation="operation1" status=SUCCESS
  |search NOT jobType="Canc"|table jobNumber
  ]
| stats count by deliveryInd
| addcoltotals&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;</description>
      <pubDate>Fri, 28 Jun 2024 17:53:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Working-with-where-clause/m-p/691904#M235553</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2024-06-28T17:53:29Z</dc:date>
    </item>
    <item>
      <title>Re: Working with where clause</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Working-with-where-clause/m-p/691961#M235564</link>
      <description>&lt;P&gt;Afte trying that , it errors out saying&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;"Error in 'search' command: Unable to parse the search: Right hand side of IN must be a collection of literals. '((jobNumber = "3333") OR (jobNumber = "11111")&amp;nbsp;. OR ..."&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jun 2024 17:29:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Working-with-where-clause/m-p/691961#M235564</guid>
      <dc:creator>RamMur</dc:creator>
      <dc:date>2024-06-28T17:29:53Z</dc:date>
    </item>
    <item>
      <title>Re: Working with where clause</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Working-with-where-clause/m-p/691964#M235565</link>
      <description>&lt;P&gt;Ah, I should have expected that.&amp;nbsp; Try my revised query without &lt;FONT face="courier new,courier"&gt;IN&lt;/FONT&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jun 2024 17:51:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Working-with-where-clause/m-p/691964#M235565</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2024-06-28T17:51:46Z</dc:date>
    </item>
  </channel>
</rss>

