<?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: Realtime Combined Search in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Realtime-Combined-Search/m-p/82191#M4424</link>
    <description>&lt;P&gt;In general, every subsearch finishes before the main search starts. Real-time searches do not finish, hence subsearches cannot be real-time.&lt;/P&gt;

&lt;P&gt;I see you have one timechart without a by field, and one timechart with by process, so I'm assuming your end result columns look something like this?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;_time User System process1 process2 process3 process4
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;?&lt;/P&gt;

&lt;P&gt;If that's the case you should be able to combine your two searches using OR:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=o host=x38dev10 (source=cpu OR sourcetype=ps)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Then do field extractions, filtering, eval, whatnot, and give your cpu source a process:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | eval process=if(source=cpu, "CPU", process)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And throw it all into one timechart by process. &lt;/P&gt;</description>
    <pubDate>Tue, 02 Apr 2013 17:57:35 GMT</pubDate>
    <dc:creator>martin_mueller</dc:creator>
    <dc:date>2013-04-02T17:57:35Z</dc:date>
    <item>
      <title>Realtime Combined Search</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Realtime-Combined-Search/m-p/82190#M4423</link>
      <description>&lt;P&gt;What is the best way to combine two different searches with results that can be used in a realtime dashboard? We used appendcols but found out that you cannot use it with realtime. &lt;/P&gt;

&lt;P&gt;We have this search right now but how would be transform it to be realtime compatable?&lt;/P&gt;

&lt;P&gt;index=os source=cpu host=x38dev10 | multikv fields | timechart span=30s avg(pctUser) as User, avg(pctSystem) as System | appendcols [search index="os" sourcetype="ps" host=x38dev10 | multikv fields pctCPU, COMMAND, USER | search USER=redis OR tomcat | eval process=USER."/".COMMAND | timechart  span=30s avg(pctCPU) by process useother="f"]&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 02 Apr 2013 17:40:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Realtime-Combined-Search/m-p/82190#M4423</guid>
      <dc:creator>aaronkorn</dc:creator>
      <dc:date>2013-04-02T17:40:12Z</dc:date>
    </item>
    <item>
      <title>Re: Realtime Combined Search</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Realtime-Combined-Search/m-p/82191#M4424</link>
      <description>&lt;P&gt;In general, every subsearch finishes before the main search starts. Real-time searches do not finish, hence subsearches cannot be real-time.&lt;/P&gt;

&lt;P&gt;I see you have one timechart without a by field, and one timechart with by process, so I'm assuming your end result columns look something like this?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;_time User System process1 process2 process3 process4
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;?&lt;/P&gt;

&lt;P&gt;If that's the case you should be able to combine your two searches using OR:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=o host=x38dev10 (source=cpu OR sourcetype=ps)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Then do field extractions, filtering, eval, whatnot, and give your cpu source a process:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | eval process=if(source=cpu, "CPU", process)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And throw it all into one timechart by process. &lt;/P&gt;</description>
      <pubDate>Tue, 02 Apr 2013 17:57:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Realtime-Combined-Search/m-p/82191#M4424</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2013-04-02T17:57:35Z</dc:date>
    </item>
  </channel>
</rss>

