<?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 How to create timechart of events from servers that appeared last week, but not the last 24 hours? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-timechart-of-events-from-servers-that-appeared/m-p/183066#M52713</link>
    <description>&lt;P&gt;Hi,&lt;BR /&gt;
I have hundreds of servers that report to Splunk.&lt;BR /&gt;
I would like to create a timechart that will include only events from servers that didn't report in last 24 hours (but did report in the past week).&lt;/P&gt;

&lt;P&gt;What is the best way to do that?&lt;/P&gt;

&lt;P&gt;Thanks,&lt;/P&gt;

&lt;P&gt;Yaniv  &lt;/P&gt;</description>
    <pubDate>Thu, 14 Aug 2014 20:11:05 GMT</pubDate>
    <dc:creator>yanivamram</dc:creator>
    <dc:date>2014-08-14T20:11:05Z</dc:date>
    <item>
      <title>How to create timechart of events from servers that appeared last week, but not the last 24 hours?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-timechart-of-events-from-servers-that-appeared/m-p/183066#M52713</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;
I have hundreds of servers that report to Splunk.&lt;BR /&gt;
I would like to create a timechart that will include only events from servers that didn't report in last 24 hours (but did report in the past week).&lt;/P&gt;

&lt;P&gt;What is the best way to do that?&lt;/P&gt;

&lt;P&gt;Thanks,&lt;/P&gt;

&lt;P&gt;Yaniv  &lt;/P&gt;</description>
      <pubDate>Thu, 14 Aug 2014 20:11:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-timechart-of-events-from-servers-that-appeared/m-p/183066#M52713</guid>
      <dc:creator>yanivamram</dc:creator>
      <dc:date>2014-08-14T20:11:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to create timechart of events from servers that appeared last week, but not the last 24 hours?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-timechart-of-events-from-servers-that-appeared/m-p/183067#M52714</link>
      <description>&lt;P&gt;You could do this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| tstats count where index=yourindex AND
    [ tstats latest(_time) as latest where index=yourindex by host
    | where latest &amp;lt; relative_time(now(), "-24h") | fields host ]
  by _time host | timechart count by host
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Run that over the last 7 days.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Aug 2014 21:05:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-timechart-of-events-from-servers-that-appeared/m-p/183067#M52714</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2014-08-14T21:05:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to create timechart of events from servers that appeared last week, but not the last 24 hours?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-timechart-of-events-from-servers-that-appeared/m-p/183068#M52715</link>
      <description>&lt;P&gt;Thanks for the quick response.&lt;BR /&gt;
I probably didn't explain myself properly &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;BR /&gt;
I've a log collector that write a single log file from many servers, and this log reported to Splunk.&lt;BR /&gt;
So the Server that I'm looking for is part of the event reported to Splunk(it is NOT the 'host' field).&lt;BR /&gt;
The log will look like:&lt;BR /&gt;
&lt;TIMESTAMP&gt; ServerName=&lt;SOME server="" name="" or="" ip="" address=""&gt; &lt;SOME other="" text=""&gt;&lt;/SOME&gt;&lt;/SOME&gt;&lt;/TIMESTAMP&gt;&lt;/P&gt;

&lt;P&gt;is that doable to search for all Servers that appeared in last week but doesn't appear in last 24H?&lt;/P&gt;

&lt;P&gt;Thanks again,&lt;BR /&gt;
Yaniv&lt;/P&gt;</description>
      <pubDate>Thu, 14 Aug 2014 21:34:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-timechart-of-events-from-servers-that-appeared/m-p/183068#M52715</guid>
      <dc:creator>yanivamram</dc:creator>
      <dc:date>2014-08-14T21:34:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to create timechart of events from servers that appeared last week, but not the last 24 hours?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-timechart-of-events-from-servers-that-appeared/m-p/183069#M52716</link>
      <description>&lt;P&gt;Sure. Same strategy, except that - unless the field is indexed - you can't speed things up with &lt;CODE&gt;tstats&lt;/CODE&gt; so it'd look like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=yourindex sourcetype=yoursourcetype
  [ search index=yourindex sourcetype=yoursourcetype | stats latest(_time) as latest by ServerName | where latest &amp;lt; relative_time(now(), "-24h") | fields ServerName ]
| timechart count by ServerName
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 14 Aug 2014 21:47:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-timechart-of-events-from-servers-that-appeared/m-p/183069#M52716</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2014-08-14T21:47:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to create timechart of events from servers that appeared last week, but not the last 24 hours?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-timechart-of-events-from-servers-that-appeared/m-p/183070#M52717</link>
      <description>&lt;P&gt;Thanks Martin, &lt;BR /&gt;
It was very helpful &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 17 Aug 2014 07:12:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-timechart-of-events-from-servers-that-appeared/m-p/183070#M52717</guid>
      <dc:creator>yanivamram</dc:creator>
      <dc:date>2014-08-17T07:12:04Z</dc:date>
    </item>
  </channel>
</rss>

