<?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: Need help on timechart with value in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Need-help-on-timechart-with-value/m-p/573453#M199836</link>
    <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;Hi,&lt;/P&gt;&lt;P&gt;Its looks as working but but it not showing any values and error msg's&lt;BR /&gt;can you give me any suggestions to my query OR can you help any different way to calculate the&amp;nbsp; 2 metrics.&lt;/P&gt;</description>
    <pubDate>Wed, 03 Nov 2021 08:37:52 GMT</pubDate>
    <dc:creator>jackin</dc:creator>
    <dc:date>2021-11-03T08:37:52Z</dc:date>
    <item>
      <title>Need help on timechart with value</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-on-timechart-with-value/m-p/573448#M199833</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Here's my query -&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;| mstats max(_value) avg(_value) min(_value) prestats=true WHERE metric_name="cpu.system" AND"index"="osnixperf" AND &lt;BR /&gt;[| inputlookup Unix.csv] BY host span=1h &lt;BR /&gt;| stats Avg(_value) AS Avg1 BY host &lt;BR /&gt;| join &lt;BR /&gt;[| mstats max(_value) avg(_value) min(_value) prestats=true WHERE metric_name="cpu.user" AND"index"="osnixperf" AND &lt;BR /&gt;[| inputlookup Unix.csv] BY host span=1h &lt;BR /&gt;| stats Avg(_value) AS Avg2 BY host] &lt;BR /&gt;| eval totalavg=Avg1+Avg2,totalavg=round(totalavg,2)&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;I need the timechart that shows&amp;nbsp;with totalavg value like below image.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jackin_0-1635926340469.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/16714i09666D36BBE32019/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jackin_0-1635926340469.png" alt="jackin_0-1635926340469.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;jackin_0-1635926340469.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Nov 2021 08:01:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-on-timechart-with-value/m-p/573448#M199833</guid>
      <dc:creator>jackin</dc:creator>
      <dc:date>2021-11-03T08:01:55Z</dc:date>
    </item>
    <item>
      <title>Re: Need help on timechart with value</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-on-timechart-with-value/m-p/573450#M199834</link>
      <description>&lt;P&gt;Your stats commands are removing the time element from your results - try something like this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| mstats max(_value) avg(_value) AS Avg1 min(_value) prestats=true WHERE metric_name="cpu.system" AND"index"="osnixperf" AND 
[| inputlookup Unix.csv] BY host span=1h 
| join 
[| mstats max(_value) avg(_value) AS Avg2 min(_value) prestats=true WHERE metric_name="cpu.user" AND"index"="osnixperf" AND 
[| inputlookup Unix.csv] BY host span=1h 
| eval totalavg=Avg1+Avg2,totalavg=round(totalavg,2)&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 03 Nov 2021 08:10:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-on-timechart-with-value/m-p/573450#M199834</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-11-03T08:10:41Z</dc:date>
    </item>
    <item>
      <title>Re: Need help on timechart with value</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-on-timechart-with-value/m-p/573453#M199836</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;Hi,&lt;/P&gt;&lt;P&gt;Its looks as working but but it not showing any values and error msg's&lt;BR /&gt;can you give me any suggestions to my query OR can you help any different way to calculate the&amp;nbsp; 2 metrics.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Nov 2021 08:37:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-on-timechart-with-value/m-p/573453#M199836</guid>
      <dc:creator>jackin</dc:creator>
      <dc:date>2021-11-03T08:37:52Z</dc:date>
    </item>
    <item>
      <title>Re: Need help on timechart with value</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-on-timechart-with-value/m-p/573454#M199837</link>
      <description>&lt;P&gt;OK start with the first mstats - does this give you what you expect from just that index?&lt;/P&gt;&lt;P&gt;Then try the second mstats separately - does this give you what you expect from just that index?&lt;/P&gt;</description>
      <pubDate>Wed, 03 Nov 2021 08:44:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-on-timechart-with-value/m-p/573454#M199837</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-11-03T08:44:25Z</dc:date>
    </item>
  </channel>
</rss>

