<?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: Timechart show split value (by) and non-split value in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Timechart-show-split-value-by-and-non-split-value/m-p/708805#M57985</link>
    <description>&lt;P&gt;Yes and I don't think that's what I want.&amp;nbsp; That seems to sum the split values, I want the non-split (effectively average) value.&amp;nbsp; If there were a similar avgtotals that would probably be what I'm looking for.&lt;/P&gt;</description>
    <pubDate>Tue, 14 Jan 2025 19:24:23 GMT</pubDate>
    <dc:creator>tomporterfield</dc:creator>
    <dc:date>2025-01-14T19:24:23Z</dc:date>
    <item>
      <title>Timechart show split value (by) and non-split value</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Timechart-show-split-value-by-and-non-split-value/m-p/708781#M57981</link>
      <description>&lt;P&gt;I have a timechart that shows a calculated value split by hostname, Ex:&lt;/P&gt;&lt;P&gt;[[search]] |&amp;nbsp; | eval overhead=(totaltime - routingtime) | timechart span=1s eval(round(avg(overhead),1)) by hostname&lt;/P&gt;&lt;P&gt;What I am trying to do is also show the calculated overhead value not split by hostname:&lt;/P&gt;&lt;P&gt;[[search]] |&amp;nbsp; | eval overhead=(totaltime - routingtime) | timechart span=1s eval(round(avg(overhead),1))&lt;/P&gt;&lt;P&gt;How do I show the split out overhead values and the combined overhead value in the same timechart?&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jan 2025 18:30:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Timechart-show-split-value-by-and-non-split-value/m-p/708781#M57981</guid>
      <dc:creator>tomporterfield</dc:creator>
      <dc:date>2025-01-14T18:30:02Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart show split value (by) and non-split value</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Timechart-show-split-value-by-and-non-split-value/m-p/708787#M57982</link>
      <description>&lt;P&gt;Please provide some anonymised sample events, a description in non-SPL terms of how the events are to be processed and how they relate to an expected output.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jan 2025 19:00:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Timechart-show-split-value-by-and-non-split-value/m-p/708787#M57982</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2025-01-14T19:00:15Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart show split value (by) and non-split value</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Timechart-show-split-value-by-and-non-split-value/m-p/708789#M57983</link>
      <description>Have you look addtotals? &lt;A href="https://docs.splunk.com/Documentation/Splunk/9.4.0/SearchReference/Addtotals" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/9.4.0/SearchReference/Addtotals&lt;/A&gt;</description>
      <pubDate>Tue, 14 Jan 2025 19:01:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Timechart-show-split-value-by-and-non-split-value/m-p/708789#M57983</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2025-01-14T19:01:51Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart show split value (by) and non-split value</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Timechart-show-split-value-by-and-non-split-value/m-p/708804#M57984</link>
      <description>&lt;P&gt;The goal is to calculate an overhead value over a span of 1 second. Overhead is calcuated as being the difference between totaltime and routingtime.&amp;nbsp; Then for each host as identified by hostname, create a line chart that shows the overhead for each host, and include another line on the chart that shows the average overhead across all hosts.&lt;/P&gt;&lt;P&gt;Here are a few anonymized sample records:&lt;/P&gt;&lt;P&gt;{"severity":"Audit","hostname":"ahost02","received":"2025-01-14T19:12:44.623Z","protocol":"http","routingtime":189,"totaltime":234}&lt;BR /&gt;{"severity":"Audit","hostname":"ahost01","received":"2025-01-14T19:12:44.650Z","protocol":"https","routingtime":27,"totaltime":78}&lt;BR /&gt;{"severity":"Audit","hostname":"ahost01","received":"2025-01-14T19:12:44.634Z","protocol":"http","routingtime":36,"totaltime":74}&lt;BR /&gt;{"severity":"Audit","hostname":"ahost02","received":"2025-01-14T19:12:44.427Z","protocol":"http","routingtime":205,"totaltime":220}&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jan 2025 19:22:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Timechart-show-split-value-by-and-non-split-value/m-p/708804#M57984</guid>
      <dc:creator>tomporterfield</dc:creator>
      <dc:date>2025-01-14T19:22:17Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart show split value (by) and non-split value</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Timechart-show-split-value-by-and-non-split-value/m-p/708805#M57985</link>
      <description>&lt;P&gt;Yes and I don't think that's what I want.&amp;nbsp; That seems to sum the split values, I want the non-split (effectively average) value.&amp;nbsp; If there were a similar avgtotals that would probably be what I'm looking for.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jan 2025 19:24:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Timechart-show-split-value-by-and-non-split-value/m-p/708805#M57985</guid>
      <dc:creator>tomporterfield</dc:creator>
      <dc:date>2025-01-14T19:24:23Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart show split value (by) and non-split value</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Timechart-show-split-value-by-and-non-split-value/m-p/708811#M57986</link>
      <description>&lt;P&gt;You can't do it directly since when you so timechart by a field, it will get split. So you have to improvise.&lt;/P&gt;&lt;P&gt;EDIT: Missed the fact that was avg(), not sum(). Of course summing averages is not the way to go so &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt; 's solution is the one to go for.&lt;/P&gt;&lt;P&gt;The obvious solution already provided is timechart | addtotals. You could also try to manually bin _time and stats but it boils down to the same thing.&lt;/P&gt;&lt;P&gt;Several caveats:&lt;/P&gt;&lt;P&gt;1) Careful with rounding.&lt;/P&gt;&lt;P&gt;2) Do fillnull if you can expect the by-field to be empty sometimes. Otherwise your total will be wrong.&lt;/P&gt;&lt;P&gt;3) Either limit=0 or useother=t - without it you'll lose data for the sum.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jan 2025 13:03:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Timechart-show-split-value-by-and-non-split-value/m-p/708811#M57986</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2025-01-15T13:03:17Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart show split value (by) and non-split value</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Timechart-show-split-value-by-and-non-split-value/m-p/708853#M57987</link>
      <description>&lt;LI-CODE lang="markup"&gt;| eval overhead=(totaltime - routingtime)
| appendpipe
    [| bin span=1s _time
    | stats avg(overhead) as overhead by _time
    | eval hostname="Overall"]
| timechart span=1s eval(round(avg(overhead),1)) by hostname&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 15 Jan 2025 08:51:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Timechart-show-split-value-by-and-non-split-value/m-p/708853#M57987</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2025-01-15T08:51:40Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart show split value (by) and non-split value</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Timechart-show-split-value-by-and-non-split-value/m-p/708884#M57989</link>
      <description>&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":clapping_hands:"&gt;👏&lt;/span&gt;Yes, this is the way. Thanks&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp; this is exactly what I was looking for.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jan 2025 12:55:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Timechart-show-split-value-by-and-non-split-value/m-p/708884#M57989</guid>
      <dc:creator>tomporterfield</dc:creator>
      <dc:date>2025-01-15T12:55:02Z</dc:date>
    </item>
  </channel>
</rss>

