<?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 subsearch and realtime in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Join-subsearch-and-realtime/m-p/41339#M9577</link>
    <description>&lt;P&gt;Does something like this work for your usecase?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype="cswports" OR sourcetype="cswports-sfp" host=sanlacsw2 | stats first(_time) first(swFCPortSpecifier) first(swFCPortPhyState)  first(swSFPTemp) first(swSFPVoltage) first(swSFPCurrent) by swFCPortIndex
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I'm not sure if you want &lt;CODE&gt;first()&lt;/CODE&gt; or &lt;CODE&gt;last()&lt;/CODE&gt; in your search&lt;/P&gt;</description>
    <pubDate>Tue, 27 Aug 2013 09:23:35 GMT</pubDate>
    <dc:creator>dart</dc:creator>
    <dc:date>2013-08-27T09:23:35Z</dc:date>
    <item>
      <title>Join subsearch and realtime</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Join-subsearch-and-realtime/m-p/41338#M9576</link>
      <description>&lt;P&gt;Got 2 input datas, one pulled every two minutes and the other every 10 minutes.&lt;BR /&gt;
I would like to have a table containing columns from the two datas (= 2 sourcetypes) &lt;STRONG&gt;in real-time&lt;/STRONG&gt; &lt;/P&gt;

&lt;P&gt;I used appendcols like this :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype="cswports" host=sanlacsw2|dedup swFCPortIndex sortby -_time|sort +swFCPortIndex | appendcols [sourcetype="cswports-sfp" host=sanlacsw2 |dedup swSFPId sortby -_time|sort +swFCPortIndex]|table _time swFCPortIndex swFCPortSpecifier swFCPortPhyState swSFPTemp swSFPVoltage swSFPCurrent
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But the subsearch is not in real-time.&lt;BR /&gt;
Do you see another way?&lt;BR /&gt;
Thxs for your help,&lt;/P&gt;

&lt;P&gt;Datas look like : (each line=One port)&lt;BR /&gt;
Sourcetype=CSWPorts&lt;BR /&gt;
&lt;IMG src="http://splunk-base.splunk.com//storage/Capture_5.jpg" alt="alt text" /&gt;&lt;BR /&gt;
Sourcetype=CSWPorts-SFP&lt;BR /&gt;
&lt;IMG src="http://splunk-base.splunk.com//storage/Capture2_1.jpg" alt="alt text" /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Aug 2013 07:31:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Join-subsearch-and-realtime/m-p/41338#M9576</guid>
      <dc:creator>timmalos</dc:creator>
      <dc:date>2013-08-21T07:31:01Z</dc:date>
    </item>
    <item>
      <title>Re: Join subsearch and realtime</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Join-subsearch-and-realtime/m-p/41339#M9577</link>
      <description>&lt;P&gt;Does something like this work for your usecase?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype="cswports" OR sourcetype="cswports-sfp" host=sanlacsw2 | stats first(_time) first(swFCPortSpecifier) first(swFCPortPhyState)  first(swSFPTemp) first(swSFPVoltage) first(swSFPCurrent) by swFCPortIndex
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I'm not sure if you want &lt;CODE&gt;first()&lt;/CODE&gt; or &lt;CODE&gt;last()&lt;/CODE&gt; in your search&lt;/P&gt;</description>
      <pubDate>Tue, 27 Aug 2013 09:23:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Join-subsearch-and-realtime/m-p/41339#M9577</guid>
      <dc:creator>dart</dc:creator>
      <dc:date>2013-08-27T09:23:35Z</dc:date>
    </item>
    <item>
      <title>Re: Join subsearch and realtime</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Join-subsearch-and-realtime/m-p/41340#M9578</link>
      <description>&lt;P&gt;was last() but thks !&lt;/P&gt;</description>
      <pubDate>Tue, 27 Aug 2013 12:13:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Join-subsearch-and-realtime/m-p/41340#M9578</guid>
      <dc:creator>timmalos</dc:creator>
      <dc:date>2013-08-27T12:13:57Z</dc:date>
    </item>
  </channel>
</rss>

