<?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: To show the difference for two values in timechart Splunk in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/To-show-the-difference-for-two-values-in-timechart-Splunk/m-p/712596#M58293</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/268961"&gt;@Raja_Selvaraj&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;if you know the names of the host you can follow my solution.&lt;/P&gt;&lt;P&gt;Cisao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 26 Feb 2025 13:38:07 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2025-02-26T13:38:07Z</dc:date>
    <item>
      <title>To show the difference for two values in timechart Splunk</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/To-show-the-difference-for-two-values-in-timechart-Splunk/m-p/712492#M58284</link>
      <description>&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;Can someone please help me with Splunk query to show difference of two values in timechart for the period of time. The sample result which i get from the query with Column A with time range and other columns with the respective host values.&lt;BR /&gt;&lt;BR /&gt;Column A Column B Column C Column D&lt;/P&gt;&lt;P&gt;02/22/2025&amp;nbsp; 10&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;12&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;14&lt;BR /&gt;02/23/2025&amp;nbsp; &amp;nbsp;11&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;13&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;15&lt;/P&gt;&lt;P&gt;02/24/2025&amp;nbsp; &amp;nbsp;12&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;15&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;17&amp;nbsp;&lt;BR /&gt;02/25/2025&amp;nbsp; &amp;nbsp; 16&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;20&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 21&lt;/P&gt;&lt;P&gt;I need the difference of values of Column B C D from previous time period and show it one time chart. Let me know if any other details are required.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Feb 2025 16:00:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/To-show-the-difference-for-two-values-in-timechart-Splunk/m-p/712492#M58284</guid>
      <dc:creator>Raja_Selvaraj</dc:creator>
      <dc:date>2025-02-25T16:00:04Z</dc:date>
    </item>
    <item>
      <title>Re: To show the difference for two values in timechart Splunk</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/To-show-the-difference-for-two-values-in-timechart-Splunk/m-p/712495#M58285</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/268961"&gt;@Raja_Selvaraj&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;use delta command (&amp;nbsp;&lt;A href="https://docs.splunk.com/Documentation/SplunkCloud/latest/SearchReference/Delta" target="_blank"&gt;https://docs.splunk.com/Documentation/SplunkCloud/latest/SearchReference/Delta&lt;/A&gt;&amp;nbsp;).&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;your_search&amp;gt;
| timechart span=1d count BY column
| delta columnA AS new_columnA
| delta columnB AS new_columnC
| delta columnC AS new_columnC
| eval 
     deltaA=new_columnA-columnA,
     deltaB=new_columnB-columnB,
     deltaC=new_columnC-columnC&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Feb 2025 16:09:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/To-show-the-difference-for-two-values-in-timechart-Splunk/m-p/712495#M58285</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2025-02-25T16:09:01Z</dc:date>
    </item>
    <item>
      <title>Re: To show the difference for two values in timechart Splunk</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/To-show-the-difference-for-two-values-in-timechart-Splunk/m-p/712516#M58287</link>
      <description>&lt;P&gt;Hello &lt;SPAN&gt;Giuseppe&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;Thanks for the reply, but when my data looks like this (shared in screenshot) and how do we compare difference with current date values &amp;amp; previous date values for each host values and show it as timechart series:-&lt;BR /&gt;&lt;BR /&gt;my query ends with:-&lt;BR /&gt;&lt;BR /&gt;| timechart span=1d avg(File_Total) by HOST&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Raja_Selvaraj_0-1740506913177.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/34703iAF3C188B2F32AFCA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Raja_Selvaraj_0-1740506913177.png" alt="Raja_Selvaraj_0-1740506913177.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Feb 2025 18:13:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/To-show-the-difference-for-two-values-in-timechart-Splunk/m-p/712516#M58287</guid>
      <dc:creator>Raja_Selvaraj</dc:creator>
      <dc:date>2025-02-25T18:13:28Z</dc:date>
    </item>
    <item>
      <title>Re: To show the difference for two values in timechart Splunk</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/To-show-the-difference-for-two-values-in-timechart-Splunk/m-p/712596#M58293</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/268961"&gt;@Raja_Selvaraj&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;if you know the names of the host you can follow my solution.&lt;/P&gt;&lt;P&gt;Cisao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Feb 2025 13:38:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/To-show-the-difference-for-two-values-in-timechart-Splunk/m-p/712596#M58293</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2025-02-26T13:38:07Z</dc:date>
    </item>
    <item>
      <title>Re: To show the difference for two values in timechart Splunk</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/To-show-the-difference-for-two-values-in-timechart-Splunk/m-p/712619#M58294</link>
      <description>&lt;P class="lia-align-left"&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P class="lia-align-left"&gt;There are many host names like more than 80 host names from the mentioned search results.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Feb 2025 16:47:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/To-show-the-difference-for-two-values-in-timechart-Splunk/m-p/712619#M58294</guid>
      <dc:creator>Raja_Selvaraj</dc:creator>
      <dc:date>2025-02-26T16:47:25Z</dc:date>
    </item>
    <item>
      <title>Re: To show the difference for two values in timechart Splunk</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/To-show-the-difference-for-two-values-in-timechart-Splunk/m-p/712671#M58297</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/268961"&gt;@Raja_Selvaraj&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;if you have more than 80 columns, how do you think that you can read 80 columns of values plus 80 columnd of differences from the previous values, it's anyway unreadable!&lt;/P&gt;&lt;P&gt;Maybe you should think a different visualization!&lt;/P&gt;&lt;P&gt;Anyway, you could use something like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;your_search&amp;gt;
| bin span=1d _time
| stats count BY host _time
| delta count AS previous_count
| delta host AS previous_host
| where host=previous_host
| eval deltaA=previous_count-count&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Thu, 27 Feb 2025 07:17:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/To-show-the-difference-for-two-values-in-timechart-Splunk/m-p/712671#M58297</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2025-02-27T07:17:32Z</dc:date>
    </item>
  </channel>
</rss>

