<?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: How to create a timechart with multiple values? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-timechart-with-multiple-values/m-p/391584#M113998</link>
    <description>&lt;P&gt;I didn't know that diference about both(stats and chart), thanks it works perfectly!!!&lt;/P&gt;</description>
    <pubDate>Wed, 16 May 2018 10:12:22 GMT</pubDate>
    <dc:creator>ppatrikfr</dc:creator>
    <dc:date>2018-05-16T10:12:22Z</dc:date>
    <item>
      <title>How to create a timechart with multiple values?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-timechart-with-multiple-values/m-p/391582#M113996</link>
      <description>&lt;P&gt;Hello!&lt;BR /&gt;
I'm trying to make a timechart like this one below, but I have some hosts that I need to show their medium cpu usage per hour (0am - 11 pm. I'm getting one-month data and trying to show their average per hour, but I only can put the average of all hosts, but I need the average for each one.&lt;/P&gt;

&lt;P&gt;My search until now:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;earliest=04/01/2018:00:00:00 latest=04/30/2018:23:59:00 index="summary" instance="cpu.usage.average" source=Summary_VMhost 
| rename media as Value 
| table * 
| where VMhost="" OR like(VMhost,"hostname00020.somecorp.net") OR like(VMhost,"hostname00021.somecorp.net") OR like(VMhost,"hostname052073.somecorp.net") OR like(VMhost,"hostname052074.somecorp.net") OR like(VMhost,"hostname052075.somecorp.net") OR like(VMhost,"hostname052076.somecorp.net") OR like(VMhost,"hostname631.somecorp.net") OR like(VMhost,"hostname632.somecorp.net") OR like(VMhost,"hostname641.somecorp.net") OR like(VMhost,"hostname642.somecorp.net") 
| eval date_hour=strftime(_time,"%H") 
| eval Horario_critico=if((date_hour&amp;gt;=7 AND date_hour&amp;lt;11) OR (date_hour&amp;gt;=13 AND date_hour&amp;lt;17),100,null) 
| stats avg(Value) max(Horario_critico) by date_hour
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 15 May 2018 16:46:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-timechart-with-multiple-values/m-p/391582#M113996</guid>
      <dc:creator>ppatrikfr</dc:creator>
      <dc:date>2018-05-15T16:46:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a timechart with multiple values?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-timechart-with-multiple-values/m-p/391583#M113997</link>
      <description>&lt;P&gt;Instead of stats use chart to have date_hour on x-axis and split by &lt;CODE&gt;VMhost&lt;/CODE&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; &amp;lt;YourCurrentSearch&amp;gt;
| chart avg(Value) by date_hour VMhost
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 15 May 2018 17:35:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-timechart-with-multiple-values/m-p/391583#M113997</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2018-05-15T17:35:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a timechart with multiple values?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-timechart-with-multiple-values/m-p/391584#M113998</link>
      <description>&lt;P&gt;I didn't know that diference about both(stats and chart), thanks it works perfectly!!!&lt;/P&gt;</description>
      <pubDate>Wed, 16 May 2018 10:12:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-timechart-with-multiple-values/m-p/391584#M113998</guid>
      <dc:creator>ppatrikfr</dc:creator>
      <dc:date>2018-05-16T10:12:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a timechart with multiple values?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-timechart-with-multiple-values/m-p/391585#M113999</link>
      <description>&lt;P&gt;@ppatrikfr glad it worked, I have converted my comment to answer. Please accept to mark this question as answered! &lt;/P&gt;</description>
      <pubDate>Wed, 16 May 2018 11:22:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-timechart-with-multiple-values/m-p/391585#M113999</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2018-05-16T11:22:59Z</dc:date>
    </item>
  </channel>
</rss>

