<?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 How to find items from one index across other index's. in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-items-from-one-index-across-other-index-s/m-p/575737#M200615</link>
    <description>&lt;P&gt;We have specific ID's that track how request process through the system. What I want to do search for all these ID's in one index and then join all other index's to see how these funnel down. So essentially track how a request tracks through our system, and then get all the service requests associated. I was thinking something like:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=foo
|fields service, ID
| join ID [index=*]
| stats service&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 19 Nov 2021 22:03:57 GMT</pubDate>
    <dc:creator>SMM10</dc:creator>
    <dc:date>2021-11-19T22:03:57Z</dc:date>
    <item>
      <title>How to find items from one index across other index's.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-items-from-one-index-across-other-index-s/m-p/575737#M200615</link>
      <description>&lt;P&gt;We have specific ID's that track how request process through the system. What I want to do search for all these ID's in one index and then join all other index's to see how these funnel down. So essentially track how a request tracks through our system, and then get all the service requests associated. I was thinking something like:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=foo
|fields service, ID
| join ID [index=*]
| stats service&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Nov 2021 22:03:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-find-items-from-one-index-across-other-index-s/m-p/575737#M200615</guid>
      <dc:creator>SMM10</dc:creator>
      <dc:date>2021-11-19T22:03:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to find items from one index across other index's.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-items-from-one-index-across-other-index-s/m-p/575741#M200617</link>
      <description>&lt;P&gt;If all your events in question had the ID field you could do something like (rough idea)&lt;/P&gt;&lt;PRE&gt;index=* ID=* | stats values(_raw) by ID&lt;/PRE&gt;&lt;P&gt;But that would mean doing stats&amp;nbsp; across all your indexes which is not very effective to say the least.&lt;/P&gt;&lt;P&gt;But your join would be even worse &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Nov 2021 22:56:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-find-items-from-one-index-across-other-index-s/m-p/575741#M200617</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2021-11-19T22:56:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to find items from one index across other index's.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-items-from-one-index-across-other-index-s/m-p/575801#M200651</link>
      <description>&lt;P&gt;At the most basic, if you go for join, then your existing SPL should look something like this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=foo
| stats count by service ID 
[ 
  | join ID [index!=foo]
  | stats values(service) by ID
]&lt;/LI-CODE&gt;&lt;P&gt;but join is never a great option - it is slow and has limitations in the number of results that can be handled by the subsearch - and the solution is not to increase the limit.&lt;/P&gt;&lt;P&gt;As&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/231884"&gt;@PickleRick&lt;/a&gt;&amp;nbsp;says, it is better to run stats across the data set you want to search and then perform stats and test operations on the results.&lt;/P&gt;&lt;P&gt;The question is: What do you want to do having found the correlated services - is there any other data you want to use following the initial search, if so that will dictate how your search will look.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 21 Nov 2021 21:32:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-find-items-from-one-index-across-other-index-s/m-p/575801#M200651</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2021-11-21T21:32:21Z</dc:date>
    </item>
  </channel>
</rss>

