<?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: Get list of servers not sending logs in Deployment Architecture</title>
    <link>https://community.splunk.com/t5/Deployment-Architecture/Get-list-of-servers-not-sending-logs/m-p/520880#M17925</link>
    <description>&lt;P&gt;Please refer below to get list of host which are not sending logs without using a lookup.&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.splunk.com/en_us/blog/tips-and-tricks/how-to-determine-when-a-host-stops-sending-logs-to-splunk-expeditiously.html" target="_blank"&gt;https://www.splunk.com/en_us/blog/tips-and-tricks/how-to-determine-when-a-host-stops-sending-logs-to-splunk-expeditiously.html&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 22 Sep 2020 15:32:52 GMT</pubDate>
    <dc:creator>Luthufudheen</dc:creator>
    <dc:date>2020-09-22T15:32:52Z</dc:date>
    <item>
      <title>Get list of servers not sending logs</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Get-list-of-servers-not-sending-logs/m-p/478376#M16639</link>
      <description>&lt;P&gt;i want to get list of servers from the csv which are not sending any logs to splunk like for past 48 hours with time when it stopped ingesting. i am trying below query but no success.&lt;/P&gt;

&lt;P&gt;| metadata type=hosts index=*&lt;BR /&gt;
| where lastTime &amp;lt; relative_time(now(),"-24h") AND totalCount &amp;gt; 0 &lt;BR /&gt;
| convert ctime(lastTime) as "Time when stopped" ctime(firstTime) as "Time when Started"&lt;BR /&gt;
| table host "Time when stopped"&lt;BR /&gt;
| search &lt;BR /&gt;
    [| inputlookup xyz.csv |fields hostname] | table host "Time when stopped"&lt;/P&gt;</description>
      <pubDate>Mon, 09 Sep 2019 12:04:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Get-list-of-servers-not-sending-logs/m-p/478376#M16639</guid>
      <dc:creator>walia_sapient</dc:creator>
      <dc:date>2019-09-09T12:04:05Z</dc:date>
    </item>
    <item>
      <title>Re: Get list of servers not sending logs</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Get-list-of-servers-not-sending-logs/m-p/478377#M16640</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;If your are just looking for sever list, below query will do the work, (select time range for 48 hours)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| metadata type=hosts index=*
| lookup xyz.csv hostname as host OUTPUTNEW other_field as other_field
| where isnull(other_field)
| table host
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;other_field - select any field from the lookup&lt;/P&gt;

&lt;P&gt;happy splunking .....!!!!&lt;/P&gt;</description>
      <pubDate>Mon, 09 Sep 2019 13:33:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Get-list-of-servers-not-sending-logs/m-p/478377#M16640</guid>
      <dc:creator>gaurav_maniar</dc:creator>
      <dc:date>2019-09-09T13:33:51Z</dc:date>
    </item>
    <item>
      <title>Re: Get list of servers not sending logs</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Get-list-of-servers-not-sending-logs/m-p/478378#M16641</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;

&lt;P&gt;List the hosts who have not sent any data in last 48 hours.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| tstats count WHERE index=* earliest=-48h [| inputlookup xyz.csv |table hostname | rename hostname as host ] by host 
| append  [| inputlookup xyz.csv |table hostname | rename hostname as host | eval count=0 ] 
| stats max(count) as count by host | where count=0 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 09 Sep 2019 13:59:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Get-list-of-servers-not-sending-logs/m-p/478378#M16641</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2019-09-09T13:59:41Z</dc:date>
    </item>
    <item>
      <title>Re: Get list of servers not sending logs</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Get-list-of-servers-not-sending-logs/m-p/478379#M16642</link>
      <description>&lt;P&gt;Please try below query &lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;| tstats latest(_time) as l earliest(_time) as e where index=* &lt;BR /&gt;
    [| inputlookup x.csv &lt;BR /&gt;
    | rename hostname as host &lt;BR /&gt;
    | table host] by host&lt;BR /&gt;
| eval diff=now()-l&lt;BR /&gt;
| eval diff_in_days = round(diff/86400,2)&lt;BR /&gt;
| convert ctime(l) as lasttime ctime(e) as first&lt;BR /&gt;
| where diff_in_days&amp;gt;1&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Sep 2019 16:53:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Get-list-of-servers-not-sending-logs/m-p/478379#M16642</guid>
      <dc:creator>sanjeev543</dc:creator>
      <dc:date>2019-09-09T16:53:16Z</dc:date>
    </item>
    <item>
      <title>Re: Get list of servers not sending logs</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Get-list-of-servers-not-sending-logs/m-p/478380#M16643</link>
      <description>&lt;P&gt;It didn't work giving false results&lt;/P&gt;</description>
      <pubDate>Tue, 10 Sep 2019 12:19:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Get-list-of-servers-not-sending-logs/m-p/478380#M16643</guid>
      <dc:creator>walia_sapient</dc:creator>
      <dc:date>2019-09-10T12:19:38Z</dc:date>
    </item>
    <item>
      <title>Re: Get list of servers not sending logs</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Get-list-of-servers-not-sending-logs/m-p/478381#M16644</link>
      <description>&lt;P&gt;shows error in the query&lt;/P&gt;</description>
      <pubDate>Tue, 10 Sep 2019 12:20:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Get-list-of-servers-not-sending-logs/m-p/478381#M16644</guid>
      <dc:creator>walia_sapient</dc:creator>
      <dc:date>2019-09-10T12:20:00Z</dc:date>
    </item>
    <item>
      <title>Re: Get list of servers not sending logs</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Get-list-of-servers-not-sending-logs/m-p/478382#M16645</link>
      <description>&lt;P&gt;@walia_sapient Could you please give the error message ?&lt;/P&gt;</description>
      <pubDate>Tue, 10 Sep 2019 13:02:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Get-list-of-servers-not-sending-logs/m-p/478382#M16645</guid>
      <dc:creator>sanjeev543</dc:creator>
      <dc:date>2019-09-10T13:02:08Z</dc:date>
    </item>
    <item>
      <title>Re: Get list of servers not sending logs</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Get-list-of-servers-not-sending-logs/m-p/478383#M16646</link>
      <description>&lt;P&gt;okay there was a extra dot in the query mistakenly , errors removed but the query is not returning any results though there are few servers from csv which are not sending logs&lt;/P&gt;</description>
      <pubDate>Tue, 10 Sep 2019 13:10:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Get-list-of-servers-not-sending-logs/m-p/478383#M16646</guid>
      <dc:creator>walia_sapient</dc:creator>
      <dc:date>2019-09-10T13:10:49Z</dc:date>
    </item>
    <item>
      <title>Re: Get list of servers not sending logs</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Get-list-of-servers-not-sending-logs/m-p/478384#M16647</link>
      <description>&lt;P&gt;For me it did work, however there is otherway &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| tstats latest(_time) as l earliest(_time) as e where index=* host IN (x,y,z,a,.......) by host | eval diff=now()-l | eval diff_in_days = round(diff/86400,2) | convert ctime(l) as lasttime ctime(e) as first | where diff_in_days&amp;gt;1
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;place the host names from your CSV the above query for host IN by separating them with &lt;CODE&gt;,&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Sep 2019 13:47:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Get-list-of-servers-not-sending-logs/m-p/478384#M16647</guid>
      <dc:creator>sanjeev543</dc:creator>
      <dc:date>2019-09-10T13:47:56Z</dc:date>
    </item>
    <item>
      <title>Re: Get list of servers not sending logs</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Get-list-of-servers-not-sending-logs/m-p/520880#M17925</link>
      <description>&lt;P&gt;Please refer below to get list of host which are not sending logs without using a lookup.&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.splunk.com/en_us/blog/tips-and-tricks/how-to-determine-when-a-host-stops-sending-logs-to-splunk-expeditiously.html" target="_blank"&gt;https://www.splunk.com/en_us/blog/tips-and-tricks/how-to-determine-when-a-host-stops-sending-logs-to-splunk-expeditiously.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Sep 2020 15:32:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Get-list-of-servers-not-sending-logs/m-p/520880#M17925</guid>
      <dc:creator>Luthufudheen</dc:creator>
      <dc:date>2020-09-22T15:32:52Z</dc:date>
    </item>
  </channel>
</rss>

