<?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: Hunk: Searching two different virtual indexes using OR: should work? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Hunk-Searching-two-different-virtual-indexes-using-OR-should/m-p/304982#M161063</link>
    <description>&lt;P&gt;It should work in Hunk.&lt;BR /&gt;
Can I assume that these two queries work without a problem?&lt;BR /&gt;
index=index1 a=term | stats count by index&lt;BR /&gt;
index=index2 a=term | stats count by index&lt;BR /&gt;
but this one does not?&lt;BR /&gt;
index=index1 OR index=index2 a=term | stats count by index&lt;/P&gt;</description>
    <pubDate>Sat, 20 May 2017 20:07:51 GMT</pubDate>
    <dc:creator>rdagan_splunk</dc:creator>
    <dc:date>2017-05-20T20:07:51Z</dc:date>
    <item>
      <title>Hunk: Searching two different virtual indexes using OR: should work?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Hunk-Searching-two-different-virtual-indexes-using-OR-should/m-p/304981#M161062</link>
      <description>&lt;P&gt;In regular Splunk I can easily search for &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=index1 OR index=index2 &amp;lt;search term&amp;gt; | stats count by index
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Then I get results from either index.&lt;/P&gt;

&lt;P&gt;When I setup a virtual index in Hunk 6.5.3 searching ORC files and I do a similar query I seem to only get results from one index.&lt;BR /&gt;
Is there something inherently different in the way Hunk searches that this wouldn't work?&lt;/P&gt;</description>
      <pubDate>Sat, 20 May 2017 07:29:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Hunk-Searching-two-different-virtual-indexes-using-OR-should/m-p/304981#M161062</guid>
      <dc:creator>burwell</dc:creator>
      <dc:date>2017-05-20T07:29:21Z</dc:date>
    </item>
    <item>
      <title>Re: Hunk: Searching two different virtual indexes using OR: should work?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Hunk-Searching-two-different-virtual-indexes-using-OR-should/m-p/304982#M161063</link>
      <description>&lt;P&gt;It should work in Hunk.&lt;BR /&gt;
Can I assume that these two queries work without a problem?&lt;BR /&gt;
index=index1 a=term | stats count by index&lt;BR /&gt;
index=index2 a=term | stats count by index&lt;BR /&gt;
but this one does not?&lt;BR /&gt;
index=index1 OR index=index2 a=term | stats count by index&lt;/P&gt;</description>
      <pubDate>Sat, 20 May 2017 20:07:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Hunk-Searching-two-different-virtual-indexes-using-OR-should/m-p/304982#M161063</guid>
      <dc:creator>rdagan_splunk</dc:creator>
      <dc:date>2017-05-20T20:07:51Z</dc:date>
    </item>
    <item>
      <title>Re: Hunk: Searching two different virtual indexes using OR: should work?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Hunk-Searching-two-different-virtual-indexes-using-OR-should/m-p/304983#M161064</link>
      <description>&lt;P&gt;Hi Raanan. Your query above is exactly what I was experimenting with.&lt;/P&gt;

&lt;P&gt;So I did some more experiments. &lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;If my virtual indexes points to 2 Hive databases, then the query with OR works fine. I get results from two different indexes.&lt;/LI&gt;
&lt;LI&gt;If my virtual indexes point to 2 ORC files, I can only get the results for one.&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;I will file a support ticket. Thanks for confirming the expected results.&lt;/P&gt;</description>
      <pubDate>Mon, 22 May 2017 18:06:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Hunk-Searching-two-different-virtual-indexes-using-OR-should/m-p/304983#M161064</guid>
      <dc:creator>burwell</dc:creator>
      <dc:date>2017-05-22T18:06:43Z</dc:date>
    </item>
  </channel>
</rss>

