<?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 Compare week and last week by host in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Compare-week-and-last-week-by-host/m-p/179121#M186807</link>
    <description>&lt;P&gt;I am trying to improve on the query below to show timechart by host for last week and this week. When I do "by host" it is not showing last week comparision. here is the query:&lt;BR /&gt;
sourcetype=permon host="abc*" earliest=-2w@w latest=@w|eval marker = if(_time &amp;lt; relative_time(now(),"-1w@w"),"last week","this week")|eval _time = if(marker == "last week", _time + 7*24*60*60,_time)  | timechart span=15m avg(PercentProcessorTime) as AvgPercentProcessorTime by marker (here how to do by host and by marker)&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 19:49:01 GMT</pubDate>
    <dc:creator>nravichandran</dc:creator>
    <dc:date>2020-09-28T19:49:01Z</dc:date>
    <item>
      <title>Compare week and last week by host</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Compare-week-and-last-week-by-host/m-p/179121#M186807</link>
      <description>&lt;P&gt;I am trying to improve on the query below to show timechart by host for last week and this week. When I do "by host" it is not showing last week comparision. here is the query:&lt;BR /&gt;
sourcetype=permon host="abc*" earliest=-2w@w latest=@w|eval marker = if(_time &amp;lt; relative_time(now(),"-1w@w"),"last week","this week")|eval _time = if(marker == "last week", _time + 7*24*60*60,_time)  | timechart span=15m avg(PercentProcessorTime) as AvgPercentProcessorTime by marker (here how to do by host and by marker)&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 19:49:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Compare-week-and-last-week-by-host/m-p/179121#M186807</guid>
      <dc:creator>nravichandran</dc:creator>
      <dc:date>2020-09-28T19:49:01Z</dc:date>
    </item>
    <item>
      <title>Re: Compare week and last week by host</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Compare-week-and-last-week-by-host/m-p/179122#M186808</link>
      <description>&lt;P&gt;Timewrap:&lt;BR /&gt;
&lt;A href="https://splunkbase.splunk.com/app/1645/"&gt;https://splunkbase.splunk.com/app/1645/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 02 May 2015 21:28:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Compare-week-and-last-week-by-host/m-p/179122#M186808</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-05-02T21:28:21Z</dc:date>
    </item>
    <item>
      <title>Re: Compare week and last week by host</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Compare-week-and-last-week-by-host/m-p/179123#M186809</link>
      <description>&lt;P&gt;Unfortunately I cannot use this app as I am a normal user of splunk in my organization.&lt;/P&gt;</description>
      <pubDate>Sat, 02 May 2015 22:36:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Compare-week-and-last-week-by-host/m-p/179123#M186809</guid>
      <dc:creator>nravichandran</dc:creator>
      <dc:date>2015-05-02T22:36:34Z</dc:date>
    </item>
    <item>
      <title>Re: Compare week and last week by host</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Compare-week-and-last-week-by-host/m-p/179124#M186810</link>
      <description>&lt;P&gt;Even if you cannot use the app, you can download it and look at the code, searches, macros, etc. and learn how it works.  It is actually somewhat complicated to do what you are trying to do and look at how Timewrap works will be a huge help in you getting it done, even without being able to install it.  Also, depending on what privileges you do have, you might very well be able to recreate the app by copying and adding all of the Knowledge Objects by hand.&lt;/P&gt;</description>
      <pubDate>Sat, 02 May 2015 23:20:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Compare-week-and-last-week-by-host/m-p/179124#M186810</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-05-02T23:20:07Z</dc:date>
    </item>
    <item>
      <title>Re: Compare week and last week by host</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Compare-week-and-last-week-by-host/m-p/179125#M186811</link>
      <description>&lt;P&gt;Unfortunately I cannot use timewrap as I cannot import the app. Is there any other way to get the desired result?&lt;/P&gt;</description>
      <pubDate>Mon, 04 May 2015 15:39:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Compare-week-and-last-week-by-host/m-p/179125#M186811</guid>
      <dc:creator>nravichandran</dc:creator>
      <dc:date>2015-05-04T15:39:58Z</dc:date>
    </item>
  </channel>
</rss>

