<?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 Multi Index combination in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Multi-Index-combination/m-p/525071#M148133</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;Need to combine 2 index together and also need the values to be added/summed together.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Code 1 :&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=nw_syslog message_type="BGP-5-ADJCHANGE"
| stats count by nodelabel, message_type
| table nodelabel, message_type, count&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table 1 :&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;TABLE border="1" width="99.87096774193549%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="34.193548387096776%"&gt;nodelabel&lt;/TD&gt;&lt;TD width="26.96774193548387%"&gt;message_type&lt;/TD&gt;&lt;TD width="38.70967741935484%"&gt;count&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="34.193548387096776%"&gt;AOKBF&lt;/TD&gt;&lt;TD width="26.96774193548387%"&gt;BGP PEER LOST&lt;/TD&gt;&lt;TD width="38.70967741935484%"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="34.193548387096776%"&gt;CMPRS&lt;/TD&gt;&lt;TD width="26.96774193548387%"&gt;BGP PEER LOST&lt;/TD&gt;&lt;TD width="38.70967741935484%"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Code 2:&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=opennms 
| stats count by nodelabel, message_type
| table nodelabel, message_type, count&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table 2:&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;TABLE border="1" width="99.87096774193549%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="34.193548387096776%"&gt;nodelabel&lt;/TD&gt;&lt;TD width="26.96774193548387%"&gt;message_type&lt;/TD&gt;&lt;TD width="38.70967741935484%"&gt;count&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="34.193548387096776%"&gt;AOKBF&lt;/TD&gt;&lt;TD width="26.96774193548387%"&gt;BGP PEER LOST&lt;/TD&gt;&lt;TD width="38.70967741935484%"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="34.193548387096776%"&gt;CMPRS&lt;/TD&gt;&lt;TD width="26.96774193548387%"&gt;BGP PEER LOST&lt;/TD&gt;&lt;TD width="38.70967741935484%"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I used &lt;STRONG&gt;append&lt;/STRONG&gt; and also&amp;nbsp;&amp;nbsp;&lt;STRONG&gt;join type=outer nodelabel&amp;nbsp; &lt;/STRONG&gt;but the value is not added.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Expected&lt;/STRONG&gt;&lt;STRONG&gt;&amp;nbsp; Table Final :&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;TABLE border="1" width="99.87096774193549%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="34.193548387096776%"&gt;nodelabel&lt;/TD&gt;&lt;TD width="26.96774193548387%"&gt;message_type&lt;/TD&gt;&lt;TD width="38.70967741935484%"&gt;count&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="34.193548387096776%"&gt;AOKBF&lt;/TD&gt;&lt;TD width="26.96774193548387%"&gt;BGP PEER LOST&lt;/TD&gt;&lt;TD width="38.70967741935484%"&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="34.193548387096776%"&gt;CMPRS&lt;/TD&gt;&lt;TD width="26.96774193548387%"&gt;BGP PEER LOST&lt;/TD&gt;&lt;TD width="38.70967741935484%"&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
    <pubDate>Fri, 16 Oct 2020 14:40:58 GMT</pubDate>
    <dc:creator>jerinvarghese</dc:creator>
    <dc:date>2020-10-16T14:40:58Z</dc:date>
    <item>
      <title>Multi Index combination</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Multi-Index-combination/m-p/525071#M148133</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;Need to combine 2 index together and also need the values to be added/summed together.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Code 1 :&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=nw_syslog message_type="BGP-5-ADJCHANGE"
| stats count by nodelabel, message_type
| table nodelabel, message_type, count&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table 1 :&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;TABLE border="1" width="99.87096774193549%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="34.193548387096776%"&gt;nodelabel&lt;/TD&gt;&lt;TD width="26.96774193548387%"&gt;message_type&lt;/TD&gt;&lt;TD width="38.70967741935484%"&gt;count&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="34.193548387096776%"&gt;AOKBF&lt;/TD&gt;&lt;TD width="26.96774193548387%"&gt;BGP PEER LOST&lt;/TD&gt;&lt;TD width="38.70967741935484%"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="34.193548387096776%"&gt;CMPRS&lt;/TD&gt;&lt;TD width="26.96774193548387%"&gt;BGP PEER LOST&lt;/TD&gt;&lt;TD width="38.70967741935484%"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Code 2:&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=opennms 
| stats count by nodelabel, message_type
| table nodelabel, message_type, count&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table 2:&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;TABLE border="1" width="99.87096774193549%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="34.193548387096776%"&gt;nodelabel&lt;/TD&gt;&lt;TD width="26.96774193548387%"&gt;message_type&lt;/TD&gt;&lt;TD width="38.70967741935484%"&gt;count&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="34.193548387096776%"&gt;AOKBF&lt;/TD&gt;&lt;TD width="26.96774193548387%"&gt;BGP PEER LOST&lt;/TD&gt;&lt;TD width="38.70967741935484%"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="34.193548387096776%"&gt;CMPRS&lt;/TD&gt;&lt;TD width="26.96774193548387%"&gt;BGP PEER LOST&lt;/TD&gt;&lt;TD width="38.70967741935484%"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I used &lt;STRONG&gt;append&lt;/STRONG&gt; and also&amp;nbsp;&amp;nbsp;&lt;STRONG&gt;join type=outer nodelabel&amp;nbsp; &lt;/STRONG&gt;but the value is not added.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Expected&lt;/STRONG&gt;&lt;STRONG&gt;&amp;nbsp; Table Final :&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;TABLE border="1" width="99.87096774193549%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="34.193548387096776%"&gt;nodelabel&lt;/TD&gt;&lt;TD width="26.96774193548387%"&gt;message_type&lt;/TD&gt;&lt;TD width="38.70967741935484%"&gt;count&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="34.193548387096776%"&gt;AOKBF&lt;/TD&gt;&lt;TD width="26.96774193548387%"&gt;BGP PEER LOST&lt;/TD&gt;&lt;TD width="38.70967741935484%"&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="34.193548387096776%"&gt;CMPRS&lt;/TD&gt;&lt;TD width="26.96774193548387%"&gt;BGP PEER LOST&lt;/TD&gt;&lt;TD width="38.70967741935484%"&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Fri, 16 Oct 2020 14:40:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Multi-Index-combination/m-p/525071#M148133</guid>
      <dc:creator>jerinvarghese</dc:creator>
      <dc:date>2020-10-16T14:40:58Z</dc:date>
    </item>
    <item>
      <title>Re: Multi Index combination</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Multi-Index-combination/m-p/525077#M148135</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/33379"&gt;@jerinvarghese&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;if you have the same field names in both indexes is easier you can think:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;(index=nw_syslog message_type="BGP-5-ADJCHANGE") OR (index=opennms)
| stats count BY nodelabel message_type
| table nodelabel, message_type, count&lt;/LI-CODE&gt;&lt;P&gt;if instead you have different field names, you have to rename them to have the same field names.&lt;/P&gt;&lt;P&gt;In this way, you haven't the limit of 50,000 results in subsearches that you'd have using join or append.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Fri, 16 Oct 2020 15:03:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Multi-Index-combination/m-p/525077#M148135</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2020-10-16T15:03:45Z</dc:date>
    </item>
    <item>
      <title>Re: Multi Index combination</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Multi-Index-combination/m-p/525558#M148325</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Got another solution&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=nw_syslog message_type="BGP-5-ADJCHANGE"
| table nodelabel, message_type, count

| append [ search index=opennms 
| table nodelabel, message_type, count ]

| stats count by nodelabel, message_type, count&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;this provided me the desired value. thanks so much for your suggestion too. that to helped me in the result.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Oct 2020 13:20:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Multi-Index-combination/m-p/525558#M148325</guid>
      <dc:creator>jerinvarghese</dc:creator>
      <dc:date>2020-10-20T13:20:03Z</dc:date>
    </item>
    <item>
      <title>Re: Multi Index combination</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Multi-Index-combination/m-p/525575#M148330</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/33379"&gt;@jerinvarghese&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;your solution is like mine, but beware if the second search could have more than 50,000 results, because there's this limit in subsearches.&lt;/P&gt;&lt;P&gt;then beware to use the same field name for count.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Tue, 20 Oct 2020 14:16:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Multi-Index-combination/m-p/525575#M148330</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2020-10-20T14:16:45Z</dc:date>
    </item>
  </channel>
</rss>

