<?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: Splunk Query not generating proper output in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-Query-not-generating-proper-output/m-p/135819#M27957</link>
    <description>&lt;P&gt;I have 2 doubts&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| stats avg(Value) as CpuUsage by role,host 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;from where u are getting roles?&lt;/P&gt;</description>
    <pubDate>Fri, 18 Apr 2014 06:04:39 GMT</pubDate>
    <dc:creator>linu1988</dc:creator>
    <dc:date>2014-04-18T06:04:39Z</dc:date>
    <item>
      <title>Splunk Query not generating proper output</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-Query-not-generating-proper-output/m-p/135816#M27954</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;
We have joined 2 queries for output.When we run individual query we are getting the proper output but when combined we are not getting it. It would be helpful if anyone give thoughts about it.&lt;BR /&gt;
Queries are as follows:&lt;/P&gt;

&lt;P&gt;index=perfmon counter="% Processor Time" source="Perfmon:cputime"  earliest=-15m | stats avg(Value) as CpuUsage by role,host|where CpuUsage &amp;gt; 10 &lt;/P&gt;

&lt;P&gt;index=perfmon counter="% Processor Time"source="Perfmon:Process" | top 6 instance by host|fields instance,host&lt;/P&gt;</description>
      <pubDate>Thu, 17 Apr 2014 23:19:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-Query-not-generating-proper-output/m-p/135816#M27954</guid>
      <dc:creator>shreyasathavale</dc:creator>
      <dc:date>2014-04-17T23:19:00Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Query not generating proper output</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-Query-not-generating-proper-output/m-p/135817#M27955</link>
      <description>&lt;P&gt;Do you join? Not add?&lt;/P&gt;

&lt;P&gt;[join]&lt;BR /&gt;
index=perfmon counter="% Processor Time" source="Perfmon:cputime"  earliest=-15m | stats avg(Value) as CpuUsage by role,host|where CpuUsage &amp;gt; 10 |join host [index=perfmon counter="% Processor Time"source="Perfmon:Process" | top 6 instance by host|fields instance,host]&lt;/P&gt;

&lt;P&gt;[ADD]&lt;BR /&gt;
index=perfmon counter="% Processor Time" source="Perfmon:cputime"  earliest=-15m | stats avg(Value) as CpuUsage by role,host|where CpuUsage &amp;gt; 10 |append [index=perfmon counter="% Processor Time"source="Perfmon:Process" | top 6 instance by host|fields instance,host]&lt;/P&gt;</description>
      <pubDate>Fri, 18 Apr 2014 01:16:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-Query-not-generating-proper-output/m-p/135817#M27955</guid>
      <dc:creator>HiroshiSatoh</dc:creator>
      <dc:date>2014-04-18T01:16:40Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Query not generating proper output</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-Query-not-generating-proper-output/m-p/135818#M27956</link>
      <description>&lt;P&gt;I had used appendcols as well as join but was not able to get the output... I had tried join id [search index=]...I will still try the above .. Thanks..&lt;/P&gt;</description>
      <pubDate>Fri, 18 Apr 2014 02:06:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-Query-not-generating-proper-output/m-p/135818#M27956</guid>
      <dc:creator>shreyasathavale</dc:creator>
      <dc:date>2014-04-18T02:06:55Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Query not generating proper output</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-Query-not-generating-proper-output/m-p/135819#M27957</link>
      <description>&lt;P&gt;I have 2 doubts&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| stats avg(Value) as CpuUsage by role,host 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;from where u are getting roles?&lt;/P&gt;</description>
      <pubDate>Fri, 18 Apr 2014 06:04:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-Query-not-generating-proper-output/m-p/135819#M27957</guid>
      <dc:creator>linu1988</dc:creator>
      <dc:date>2014-04-18T06:04:39Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Query not generating proper output</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-Query-not-generating-proper-output/m-p/135820#M27958</link>
      <description>&lt;P&gt;Hi, I tried the above queries but it is only giving me top 1 instance instead of 3/4/5 .. My requirement is "If the 1st query is true then only run 2nd query else dont run" , since it takes lots of time for parsing.. Any help ??&lt;/P&gt;</description>
      <pubDate>Fri, 18 Apr 2014 17:08:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-Query-not-generating-proper-output/m-p/135820#M27958</guid>
      <dc:creator>shreyasathavale</dc:creator>
      <dc:date>2014-04-18T17:08:00Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Query not generating proper output</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-Query-not-generating-proper-output/m-p/135821#M27959</link>
      <description>&lt;P&gt;I have mentioned roles in serverclass.conf&lt;/P&gt;</description>
      <pubDate>Fri, 18 Apr 2014 19:39:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-Query-not-generating-proper-output/m-p/135821#M27959</guid>
      <dc:creator>shreyasathavale</dc:creator>
      <dc:date>2014-04-18T19:39:43Z</dc:date>
    </item>
  </channel>
</rss>

