<?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 question in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/join-question/m-p/229445#M67949</link>
    <description>&lt;P&gt;By "what I have is one line that represents all the samplings. I'd like to have a line for each system", do you mean in chart you're getting one line for overall %busy and you want to have a separate line for each System?&lt;/P&gt;

&lt;P&gt;Can you provide some sample data as well? I don't think you need join here (join anyways is used to join two result sets, all I see it one single result set).&lt;/P&gt;</description>
    <pubDate>Tue, 01 Mar 2016 17:59:21 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2016-03-01T17:59:21Z</dc:date>
    <item>
      <title>join question</title>
      <link>https://community.splunk.com/t5/Splunk-Search/join-question/m-p/229444#M67948</link>
      <description>&lt;P&gt;here is my search - | dbquery "TQOMA" "SELECT "System", "%busy" FROM TQSTDBO.CPUVMSUM where "System" LIKE '%ntx%'"&lt;/P&gt;

&lt;P&gt;basically, this returns a result for each system every sampling period.  So, what I have is one line that represents all the samplings.  I'd like to have a line for each system, but can't figure out how to do this.  I was thinking something like this, but doesn't seem to work.&lt;/P&gt;

&lt;P&gt;join System [| dbquery "TQOMA" "SELECT "System", "%busy" FROM TQSTDBO.CPUVMSUM where "System" LIKE '%ntx%'"]&lt;/P&gt;

&lt;P&gt;Thanks for any feedback!&lt;/P&gt;</description>
      <pubDate>Tue, 01 Mar 2016 17:34:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/join-question/m-p/229444#M67948</guid>
      <dc:creator>mark_chuman</dc:creator>
      <dc:date>2016-03-01T17:34:14Z</dc:date>
    </item>
    <item>
      <title>Re: join question</title>
      <link>https://community.splunk.com/t5/Splunk-Search/join-question/m-p/229445#M67949</link>
      <description>&lt;P&gt;By "what I have is one line that represents all the samplings. I'd like to have a line for each system", do you mean in chart you're getting one line for overall %busy and you want to have a separate line for each System?&lt;/P&gt;

&lt;P&gt;Can you provide some sample data as well? I don't think you need join here (join anyways is used to join two result sets, all I see it one single result set).&lt;/P&gt;</description>
      <pubDate>Tue, 01 Mar 2016 17:59:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/join-question/m-p/229445#M67949</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-03-01T17:59:21Z</dc:date>
    </item>
    <item>
      <title>Re: join question</title>
      <link>https://community.splunk.com/t5/Splunk-Search/join-question/m-p/229446#M67950</link>
      <description>&lt;P&gt;I got it.&lt;/P&gt;

&lt;P&gt;| dbquery "TQOMA" "SELECT "Time", "System", "%busy" FROM TQSTDBO.CPUVMSUM where "System" LIKE '%ntx%'" | eval _time=Time | timechart avg(%busy) by System&lt;/P&gt;</description>
      <pubDate>Tue, 01 Mar 2016 18:19:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/join-question/m-p/229446#M67950</guid>
      <dc:creator>mark_chuman</dc:creator>
      <dc:date>2016-03-01T18:19:27Z</dc:date>
    </item>
    <item>
      <title>Re: join question</title>
      <link>https://community.splunk.com/t5/Splunk-Search/join-question/m-p/229447#M67951</link>
      <description>&lt;P&gt;Hi Mark, I believe you will want to use the dbquery command to get your initial events, and then pipe it to stats values to get the set of %busy by system. Like so:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| dbquery "TQOMA" "SELECT "System", "%busy" FROM TQSTDBO.CPUVMSUM where "System" LIKE '%ntx%'" | stats values(%busy) by System
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Or at least, something along those lines. Join is used to make a table with two data sets, joining on a particular common field, which I don't think is exactly what you are after in this case.&lt;/P&gt;

&lt;P&gt;Please let me know if this helps!&lt;/P&gt;</description>
      <pubDate>Tue, 01 Mar 2016 18:25:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/join-question/m-p/229447#M67951</guid>
      <dc:creator>muebel</dc:creator>
      <dc:date>2016-03-01T18:25:30Z</dc:date>
    </item>
  </channel>
</rss>

