<?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 check how long splunk uf agents are down on particular servers? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-check-how-long-splunk-uf-agents-are-down-on-particular/m-p/385687#M69266</link>
    <description>&lt;P&gt;Hi somesoni2&lt;/P&gt;

&lt;P&gt;This query is not working .Not getting any output &lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
Splunker969&lt;/P&gt;</description>
    <pubDate>Tue, 07 Aug 2018 16:38:48 GMT</pubDate>
    <dc:creator>splunker969</dc:creator>
    <dc:date>2018-08-07T16:38:48Z</dc:date>
    <item>
      <title>How to check how long splunk uf agents are down on particular servers?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-check-how-long-splunk-uf-agents-are-down-on-particular/m-p/385676#M69255</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt;

&lt;P&gt;We had list of servers  a,b,c,d,e,f. How can we check how long splunk uf agents are down on the servers a,b,c,d,e,f? At present we restarted uf agents. I am looking for a query. Any help would be great. Thanks in advance &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Aug 2018 15:27:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-check-how-long-splunk-uf-agents-are-down-on-particular/m-p/385676#M69255</guid>
      <dc:creator>splunker969</dc:creator>
      <dc:date>2018-08-06T15:27:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to check how long splunk uf agents are down on particular servers?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-check-how-long-splunk-uf-agents-are-down-on-particular/m-p/385677#M69256</link>
      <description>&lt;P&gt;Assuming that you're using a deployment server to manage your UF configuration and you forwarder your deployment server's internal logs to your indexers, try like this (accuracy of the downtime will be +/- phonehome period for your UF, in last where clause, replace PutPhoneHomePeriodInSecsHere with your actual phone home interval).&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal host=a OR host=b OR host=..all other hosts.. component=HttpPubSubConnection Running phone
| table _time host | sort 0 host _time | streamstats current=f window=1 values(_time) as prev_time 
| eval duration=abs(_time-prev_time) | stats max(duration) as downtime by host | where downtime&amp;gt;PutPhoneHomePeriodInSecsHere
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 06 Aug 2018 15:38:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-check-how-long-splunk-uf-agents-are-down-on-particular/m-p/385677#M69256</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2018-08-06T15:38:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to check how long splunk uf agents are down on particular servers?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-check-how-long-splunk-uf-agents-are-down-on-particular/m-p/385678#M69257</link>
      <description>&lt;P&gt;Hi somesoni2 , &lt;/P&gt;

&lt;P&gt;Thanks for the query. In above query How  can i know from which time to when the splunk server is down for example 8/3/2018  7 am to 8/4/2018 6 am .. and .Down time in hours Please ?&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
splunker969&lt;/P&gt;</description>
      <pubDate>Mon, 06 Aug 2018 15:51:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-check-how-long-splunk-uf-agents-are-down-on-particular/m-p/385678#M69257</guid>
      <dc:creator>splunker969</dc:creator>
      <dc:date>2018-08-06T15:51:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to check how long splunk uf agents are down on particular servers?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-check-how-long-splunk-uf-agents-are-down-on-particular/m-p/385679#M69258</link>
      <description>&lt;P&gt;Give this version a try&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal host=a OR host=b OR host=..all other hosts.. component=HttpPubSubConnection Running phone
 | table _time host | sort 0 host _time | streamstats current=f window=1 values(_time) as prev_time 
 | eval downtime=abs(_time-prev_time) | where downtime&amp;gt;PutPhoneHomePeriodInSecsHere
| eval DownFrom=strftime(prev_time,"%+") | eval DownTo=strftime(_time,"%+") | eval downtime_hours=round(downtime/3600)| eval downtime=tostring(downtime,"duration")
| table host DownFrom DownTo downtime downtime_hours
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 06 Aug 2018 15:56:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-check-how-long-splunk-uf-agents-are-down-on-particular/m-p/385679#M69258</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2018-08-06T15:56:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to check how long splunk uf agents are down on particular servers?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-check-how-long-splunk-uf-agents-are-down-on-particular/m-p/385680#M69259</link>
      <description>&lt;P&gt;Hi somesoni2 &lt;/P&gt;

&lt;P&gt;This query is not working .&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
Splunker969&lt;/P&gt;</description>
      <pubDate>Mon, 06 Aug 2018 16:25:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-check-how-long-splunk-uf-agents-are-down-on-particular/m-p/385680#M69259</guid>
      <dc:creator>splunker969</dc:creator>
      <dc:date>2018-08-06T16:25:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to check how long splunk uf agents are down on particular servers?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-check-how-long-splunk-uf-agents-are-down-on-particular/m-p/385681#M69260</link>
      <description>&lt;P&gt;We use -&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| inputlookup &amp;lt;lookup with host column&amp;gt;.csv 
| fields host 
| join type=left host 
    [| metadata type=hosts index=&amp;lt;index name&amp;gt;
    | eval host=lower(host) 
    | eval _time=recentTime 
    | sort host, _time 
    | stats latest(_time) as recentTime by host ] 
| eval LAST=strftime(recentTime,"%a %m/%d/%Y-%T %Z(%z)"), DAYS_AGO=round((recentTime-now())/86400,0)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 06 Aug 2018 19:25:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-check-how-long-splunk-uf-agents-are-down-on-particular/m-p/385681#M69260</guid>
      <dc:creator>ddrillic</dc:creator>
      <dc:date>2018-08-06T19:25:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to check how long splunk uf agents are down on particular servers?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-check-how-long-splunk-uf-agents-are-down-on-particular/m-p/385682#M69261</link>
      <description>&lt;P&gt;Not getting any output OR not getting correct output?&lt;/P&gt;</description>
      <pubDate>Mon, 06 Aug 2018 19:28:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-check-how-long-splunk-uf-agents-are-down-on-particular/m-p/385682#M69261</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2018-08-06T19:28:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to check how long splunk uf agents are down on particular servers?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-check-how-long-splunk-uf-agents-are-down-on-particular/m-p/385683#M69262</link>
      <description>&lt;P&gt;I would've suggested similar but they've restarted UF so logs would be coming through and that recentTime would be updated. They want to know for how long it was down.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Aug 2018 19:29:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-check-how-long-splunk-uf-agents-are-down-on-particular/m-p/385683#M69262</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2018-08-06T19:29:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to check how long splunk uf agents are down on particular servers?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-check-how-long-splunk-uf-agents-are-down-on-particular/m-p/385684#M69263</link>
      <description>&lt;P&gt;oh oh oh - got it. Thank you @somesoni2.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Aug 2018 19:30:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-check-how-long-splunk-uf-agents-are-down-on-particular/m-p/385684#M69263</guid>
      <dc:creator>ddrillic</dc:creator>
      <dc:date>2018-08-06T19:30:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to check how long splunk uf agents are down on particular servers?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-check-how-long-splunk-uf-agents-are-down-on-particular/m-p/385685#M69264</link>
      <description>&lt;P&gt;Not getting any output &lt;/P&gt;</description>
      <pubDate>Mon, 06 Aug 2018 19:34:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-check-how-long-splunk-uf-agents-are-down-on-particular/m-p/385685#M69264</guid>
      <dc:creator>splunker969</dc:creator>
      <dc:date>2018-08-06T19:34:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to check how long splunk uf agents are down on particular servers?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-check-how-long-splunk-uf-agents-are-down-on-particular/m-p/385686#M69265</link>
      <description>&lt;P&gt;How about this one?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal host=a OR host=b OR host=..all other hosts.. component=HttpPubSubConnection Running phone
 | table _time host | sort 0 host _time | streamstats current=f window=1 values(_time) as prev_time 
 | eval duration=abs(_time-prev_time) | eventstats max(duration) as downtime by host | where downtime&amp;gt;PutPhoneHomePeriodInSecsHere AND downtime=duration | eval DownFrom=strftime(prev_time,"%+") | eval DownTo=strftime(_time,"%+")
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 06 Aug 2018 20:46:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-check-how-long-splunk-uf-agents-are-down-on-particular/m-p/385686#M69265</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2018-08-06T20:46:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to check how long splunk uf agents are down on particular servers?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-check-how-long-splunk-uf-agents-are-down-on-particular/m-p/385687#M69266</link>
      <description>&lt;P&gt;Hi somesoni2&lt;/P&gt;

&lt;P&gt;This query is not working .Not getting any output &lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
Splunker969&lt;/P&gt;</description>
      <pubDate>Tue, 07 Aug 2018 16:38:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-check-how-long-splunk-uf-agents-are-down-on-particular/m-p/385687#M69266</guid>
      <dc:creator>splunker969</dc:creator>
      <dc:date>2018-08-07T16:38:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to check how long splunk uf agents are down on particular servers?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-check-how-long-splunk-uf-agents-are-down-on-particular/m-p/385688#M69267</link>
      <description>&lt;P&gt;Need help on this question can anybody help me? Thanks in advance !&lt;/P&gt;</description>
      <pubDate>Wed, 08 Aug 2018 18:48:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-check-how-long-splunk-uf-agents-are-down-on-particular/m-p/385688#M69267</guid>
      <dc:creator>splunker969</dc:creator>
      <dc:date>2018-08-08T18:48:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to check how long splunk uf agents are down on particular servers?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-check-how-long-splunk-uf-agents-are-down-on-particular/m-p/385689#M69268</link>
      <description>&lt;P&gt;Have you replaced PutPhoneHomePeriodInSecsHere with your phone home interval?&lt;/P&gt;</description>
      <pubDate>Wed, 08 Aug 2018 19:47:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-check-how-long-splunk-uf-agents-are-down-on-particular/m-p/385689#M69268</guid>
      <dc:creator>thambisetty</dc:creator>
      <dc:date>2018-08-08T19:47:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to check how long splunk uf agents are down on particular servers?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-check-how-long-splunk-uf-agents-are-down-on-particular/m-p/385690#M69269</link>
      <description>&lt;P&gt;Does this yield in something?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal host=a OR host=b OR host=..all other hosts.. component=HttpPubSubConnection Running phone
  | table _time host | sort 0 host _time | streamstats current=f window=1 values(_time) as prev_time 
  | eval duration=abs(_time-prev_time) | eval DownFrom=strftime(prev_time,"%+") | eval DownTo=strftime(_time,"%+")
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 08 Aug 2018 19:50:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-check-how-long-splunk-uf-agents-are-down-on-particular/m-p/385690#M69269</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2018-08-08T19:50:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to check how long splunk uf agents are down on particular servers?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-check-how-long-splunk-uf-agents-are-down-on-particular/m-p/385691#M69270</link>
      <description>&lt;P&gt;Hi Somesoni2 ,&lt;/P&gt;

&lt;P&gt;This search gives results .In DownFROM is august 13 DownTo is august12. Which is I changed as below .Please Correct query if anything not correct .Thanks In advance &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;index=_internal host=a OR host=b OR host=..all other hosts.. component=HttpPubSubConnection Running phone&lt;BR /&gt;
| table _time host | sort 0 host _time | streamstats current=f window=1 values(_time) as prev_time &lt;BR /&gt;
   | eval duration=abs(_time-prev_time) | eval DownTo=strftime(prev_time,"%+") | eval DownFrom=strftime(_time,"%+") |dedup host &lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 20:54:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-check-how-long-splunk-uf-agents-are-down-on-particular/m-p/385691#M69270</guid>
      <dc:creator>splunker969</dc:creator>
      <dc:date>2020-09-29T20:54:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to check how long splunk uf agents are down on particular servers?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-check-how-long-splunk-uf-agents-are-down-on-particular/m-p/385692#M69271</link>
      <description>&lt;P&gt;kind of an old thread, but it seems to me that the streamstats needs a "by host" clause.  Otherwise it will be comparing the last entry for one host with the first entry of another host&lt;/P&gt;</description>
      <pubDate>Wed, 15 Apr 2020 23:06:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-check-how-long-splunk-uf-agents-are-down-on-particular/m-p/385692#M69271</guid>
      <dc:creator>MonkeyK</dc:creator>
      <dc:date>2020-04-15T23:06:45Z</dc:date>
    </item>
  </channel>
</rss>

