<?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 find difference in value between search strings? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-difference-in-value-between-search-strings/m-p/348166#M174875</link>
    <description>&lt;P&gt;How about this?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index_earliest=-1d@d index=index source="PerfmonMk:Free Disk Space" "%_Free_Space"="*" E 
| eval volume=Free_Megabytes/1024 
| bin _time bins=30 
| stats avg(volume) as daily_Kilobytes by _time
| append 
 [
 search index_earliest=-1mon@mon index_latest=@m index=index source="PerfmonMk:Free Disk Space" "%_Free_Space"="*" E 
| bin _time span=1d
| eval volume=Free_Megabytes/1024 
| stats avg(volume) as monthly_Kilobytes by _time
 ]
| timechart values(daily_Kilobytes) values(monthly_Kilobytes) 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 24 Apr 2017 14:36:07 GMT</pubDate>
    <dc:creator>jkat54</dc:creator>
    <dc:date>2017-04-24T14:36:07Z</dc:date>
    <item>
      <title>How to find difference in value between search strings?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-difference-in-value-between-search-strings/m-p/348164#M174873</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I am using a single search string with two different time rage to find the disk space.&lt;/P&gt;

&lt;P&gt;Search string :  index= source="PerfmonMk:Free Disk Space" "%_Free_Space"="*" E | eval volume=Free_Megabytes/1024 | chart avg(volume)&lt;BR /&gt;
1. Time range of last 24 hours &lt;BR /&gt;
2. Time range of Previous month&lt;/P&gt;

&lt;P&gt;By using this I am getting two different charts as output.&lt;/P&gt;

&lt;P&gt;I need the string to find the difference between these two charts. or a single string to define the disk space of current day and 30 days before (previous month)&lt;/P&gt;

&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 13:49:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-find-difference-in-value-between-search-strings/m-p/348164#M174873</guid>
      <dc:creator>Gowtham0809</dc:creator>
      <dc:date>2020-09-29T13:49:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to find difference in value between search strings?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-difference-in-value-between-search-strings/m-p/348165#M174874</link>
      <description>&lt;P&gt;how about using timechart command? set the timepicker to last 30 days&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; index= source="PerfmonMk:Free Disk Space" "%_Free_Space"="*" E | eval volume=Free_Megabytes/1024 | timechart span=24h avg(volume)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;hope it helps&lt;/P&gt;</description>
      <pubDate>Mon, 24 Apr 2017 14:06:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-find-difference-in-value-between-search-strings/m-p/348165#M174874</guid>
      <dc:creator>adonio</dc:creator>
      <dc:date>2017-04-24T14:06:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to find difference in value between search strings?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-difference-in-value-between-search-strings/m-p/348166#M174875</link>
      <description>&lt;P&gt;How about this?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index_earliest=-1d@d index=index source="PerfmonMk:Free Disk Space" "%_Free_Space"="*" E 
| eval volume=Free_Megabytes/1024 
| bin _time bins=30 
| stats avg(volume) as daily_Kilobytes by _time
| append 
 [
 search index_earliest=-1mon@mon index_latest=@m index=index source="PerfmonMk:Free Disk Space" "%_Free_Space"="*" E 
| bin _time span=1d
| eval volume=Free_Megabytes/1024 
| stats avg(volume) as monthly_Kilobytes by _time
 ]
| timechart values(daily_Kilobytes) values(monthly_Kilobytes) 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 24 Apr 2017 14:36:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-find-difference-in-value-between-search-strings/m-p/348166#M174875</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2017-04-24T14:36:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to find difference in value between search strings?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-difference-in-value-between-search-strings/m-p/348167#M174876</link>
      <description>&lt;P&gt;@jkat54 - &lt;CODE&gt;m&lt;/CODE&gt; is minute.  Probably need to use &lt;CODE&gt;-30d@d&lt;/CODE&gt;.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Apr 2017 16:58:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-find-difference-in-value-between-search-strings/m-p/348167#M174876</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2017-04-24T16:58:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to find difference in value between search strings?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-difference-in-value-between-search-strings/m-p/348168#M174877</link>
      <description>&lt;P&gt;i always do that, thanks... updated to mon for month&lt;/P&gt;</description>
      <pubDate>Mon, 24 Apr 2017 18:17:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-find-difference-in-value-between-search-strings/m-p/348168#M174877</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2017-04-24T18:17:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to find difference in value between search strings?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-difference-in-value-between-search-strings/m-p/348169#M174878</link>
      <description>&lt;P&gt;Thank you and it worked&lt;/P&gt;</description>
      <pubDate>Tue, 25 Apr 2017 05:23:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-find-difference-in-value-between-search-strings/m-p/348169#M174878</guid>
      <dc:creator>Gowtham0809</dc:creator>
      <dc:date>2017-04-25T05:23:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to find difference in value between search strings?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-difference-in-value-between-search-strings/m-p/348170#M174879</link>
      <description>&lt;P&gt;Thank you and it worked&lt;/P&gt;</description>
      <pubDate>Tue, 25 Apr 2017 05:23:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-find-difference-in-value-between-search-strings/m-p/348170#M174879</guid>
      <dc:creator>Gowtham0809</dc:creator>
      <dc:date>2017-04-25T05:23:15Z</dc:date>
    </item>
  </channel>
</rss>

