<?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: Join index's together. in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Join-index-s-together/m-p/512999#M143923</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;thanks for the reply, i got the output, but there is a problem, output ignores all those values which doesn't have Incidnet_number.&lt;/P&gt;&lt;P&gt;I need those nodelabel as well with blank value for&amp;nbsp;Incident_number.&amp;nbsp;&lt;/P&gt;&lt;P&gt;please help in that&lt;/P&gt;&lt;P&gt;i used below command, hope this is right method.&lt;/P&gt;&lt;P&gt;| join type=outer nodelabel&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 07 Aug 2020 13:28:43 GMT</pubDate>
    <dc:creator>jerinvarghese</dc:creator>
    <dc:date>2020-08-07T13:28:43Z</dc:date>
    <item>
      <title>Join index's together.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Join-index-s-together/m-p/512990#M143921</link>
      <description>&lt;P&gt;HI all,&lt;/P&gt;&lt;P&gt;I have 2 index, that have same common field together.&amp;nbsp; I want to join both together.&lt;/P&gt;&lt;P&gt;Query 1:&amp;nbsp;&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=opennms "uei.opennms.org/nodes/nodeUp" OR "uei.opennms.org/nodes/nodeDown" 
| rex field=eventuei "uei.opennms.org/nodes/node(?&amp;lt;Status&amp;gt;.+)"
| stats max(_time) as Time latest(Status) as Status by nodelabel
| table nodelabel, Status, Time &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Query 2 :&amp;nbsp;&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=itsm sourcetype=remedy_midtier
| rename _time as Time
| fieldformat Time=strftime(Time,"%Y-%m-%d %l:%M:%S %p")
| table nodelabel, Incident_Number, Time &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Output table 1:&amp;nbsp;&lt;/P&gt;&lt;P&gt;nodelabel Status Time&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;CASCO&lt;/TD&gt;&lt;TD&gt;Up&lt;/TD&gt;&lt;TD&gt;2020-08-07 5:45:28 PM&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;AERIB&lt;/TD&gt;&lt;TD&gt;Up&lt;/TD&gt;&lt;TD&gt;2020-08-07 5:30:05 PM&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;CNPYU&lt;/TD&gt;&lt;TD&gt;Up&lt;/TD&gt;&lt;TD&gt;2020-08-07 5:34:41 PM&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;BR /&gt;Output Table 2:&amp;nbsp;&lt;/P&gt;&lt;P&gt;nodelabel Incident_Number Time&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="70px"&gt;CASCO&lt;/TD&gt;&lt;TD width="153px"&gt;INC000013850038&lt;/TD&gt;&lt;TD width="184px"&gt;2020-08-07 5:45:28 PM&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="70px"&gt;CNPTT&lt;/TD&gt;&lt;TD width="153px"&gt;INC000013850032&lt;/TD&gt;&lt;TD width="184px"&gt;2020-08-07 5:34:42 PM&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="70px"&gt;CNPYU&lt;/TD&gt;&lt;TD width="153px"&gt;INC000013850032&lt;/TD&gt;&lt;TD width="184px"&gt;2020-08-07 5:34:41 PM&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;expected output:&amp;nbsp;&lt;/P&gt;&lt;P&gt;nodelabel Incident_Number Status Time&lt;/P&gt;&lt;TABLE width="418px"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="68px"&gt;CASCO&lt;/TD&gt;&lt;TD width="153px"&gt;INC000013850038&lt;/TD&gt;&lt;TD width="92px"&gt;UP&lt;/TD&gt;&lt;TD width="104px"&gt;2020-08-07 5:45:28 PM&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="68px"&gt;CNPTT&lt;/TD&gt;&lt;TD width="153px"&gt;INC000013850032&lt;/TD&gt;&lt;TD width="92px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="104px"&gt;2020-08-07 5:34:42 PM&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="68px"&gt;CNPYU&lt;/TD&gt;&lt;TD width="153px"&gt;INC000013850032&lt;/TD&gt;&lt;TD width="92px"&gt;UP&lt;/TD&gt;&lt;TD width="104px"&gt;2020-08-07 5:34:41 PM&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 join inner command but it failed. please help me in the join function. here nodelabel should be the common factor.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Aug 2020 12:25:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Join-index-s-together/m-p/512990#M143921</guid>
      <dc:creator>jerinvarghese</dc:creator>
      <dc:date>2020-08-07T12:25:50Z</dc:date>
    </item>
    <item>
      <title>Re: Join index's together.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Join-index-s-together/m-p/512991#M143922</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;you could use the join command&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=opennms "uei.opennms.org/nodes/nodeUp" OR "uei.opennms.org/nodes/nodeDown" 
| rex field=eventuei "uei.opennms.org/nodes/node(?&amp;lt;Status&amp;gt;.+)"
| stats max(_time) as Time latest(Status) as Status by nodelabel
| table nodelabel Status Time 
| join nodelabel [ search 
     index=itsm sourcetype=remedy_midtier
     | rename _time as Time
     | fieldformat Time=strftime(Time,"%Y-%m-%d %l:%M:%S %p")
     | table nodelabel Incident_Number Time 
     ]
| table table nodelabel Incident_Number Status Time&lt;/LI-CODE&gt;&lt;P&gt;but I don't like because&amp;nbsp; it's very slow and there's the limit of 50,000 results in subsearch.&lt;/P&gt;&lt;P&gt;So I hint to explore a different approach using the stats command:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;(index=opennms "uei.opennms.org/nodes/nodeUp" OR "uei.opennms.org/nodes/nodeDown") OR (index=itsm sourcetype=remedy_midtier) 
| rex field=eventuei "uei.opennms.org/nodes/node(?&amp;lt;Status&amp;gt;.+)"
| stats max(_time) as Time values(Incident_Number) AS Incident_Number latest(Status) as Status by nodelabel
| table table nodelabel Incident_Number Status Time&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Fri, 07 Aug 2020 12:35:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Join-index-s-together/m-p/512991#M143922</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2020-08-07T12:35:43Z</dc:date>
    </item>
    <item>
      <title>Re: Join index's together.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Join-index-s-together/m-p/512999#M143923</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;thanks for the reply, i got the output, but there is a problem, output ignores all those values which doesn't have Incidnet_number.&lt;/P&gt;&lt;P&gt;I need those nodelabel as well with blank value for&amp;nbsp;Incident_number.&amp;nbsp;&lt;/P&gt;&lt;P&gt;please help in that&lt;/P&gt;&lt;P&gt;i used below command, hope this is right method.&lt;/P&gt;&lt;P&gt;| join type=outer nodelabel&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Aug 2020 13:28:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Join-index-s-together/m-p/512999#M143923</guid>
      <dc:creator>jerinvarghese</dc:creator>
      <dc:date>2020-08-07T13:28:43Z</dc:date>
    </item>
    <item>
      <title>Re: Join index's together.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Join-index-s-together/m-p/513025#M143933</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;as I said, I don't like join so I prefer the second solution that I hint to explore and use:&lt;/P&gt;&lt;P&gt;you are using a DB approach, but Splunk isn't a DB!&lt;/P&gt;&lt;P&gt;About your problem, did you tried to invert the two searches?&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;&lt;P&gt;P.s.: Karma Points are appreciated &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Aug 2020 15:05:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Join-index-s-together/m-p/513025#M143933</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2020-08-07T15:05:52Z</dc:date>
    </item>
  </channel>
</rss>

