<?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: Is there a way to monitor servers through Splunk? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Is-there-a-way-to-monitor-servers-through-Splunk/m-p/502148#M139767</link>
    <description>&lt;P&gt;Hi @rahul1502133,&lt;BR /&gt;
you should creata a lookup (called e.g. perimeter.csv) containing all the servers to monitor (in a column called host) and then run a search like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| metasearch index=_internal
| eval host=upper(host)
| stats count BY host
| append [ | inputlookup perimeter.csv | eval count=0, host=upper(host) | fields host count ]
| stats sum(count) AS total BY host
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;In this way all the servers with total=0 are down and the other are up.&lt;BR /&gt;
You can create an alert adding at the end of the search | where total=0 triggering when there are down servers.&lt;/P&gt;

&lt;P&gt;If instead you want a dashboard, eventually in graphic mode, you can see my answer &lt;A href="https://answers.splunk.com/answers/788233/servers-availability-status.html#answer-787047"&gt;https://answers.splunk.com/answers/788233/servers-availability-status.html#answer-787047&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;If you want, you can also enrich your panel, adding to the lookup other information (e.g. IP, role, description, etc...) and adding them to the search, something like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| metasearch index=_internal
| eval host=upper(host)
| stats count BY host
| append [ | inputlookup perimeter.csv | eval count=0, host=upper(host) | fields host count IP Role Description ]
| stats values(IP) AS IP values(Role) AS Role values(Description) AS Description sum(count) AS total BY host
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Ciao.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
    <pubDate>Fri, 06 Dec 2019 12:00:31 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2019-12-06T12:00:31Z</dc:date>
    <item>
      <title>Is there a way to monitor servers through Splunk?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-there-a-way-to-monitor-servers-through-Splunk/m-p/502145#M139764</link>
      <description>&lt;P&gt;Hey everyone,&lt;/P&gt;

&lt;P&gt;I just had a small search, is there any way to monitor servers using Splunk and get data on their availability statistics.&lt;BR /&gt;
FYI I am using Splunk Cloud,&lt;BR /&gt;
Pls respond ASAP&lt;/P&gt;</description>
      <pubDate>Fri, 06 Dec 2019 07:48:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-there-a-way-to-monitor-servers-through-Splunk/m-p/502145#M139764</guid>
      <dc:creator>rahul1502133</dc:creator>
      <dc:date>2019-12-06T07:48:15Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to monitor servers through Splunk?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-there-a-way-to-monitor-servers-through-Splunk/m-p/502146#M139765</link>
      <description>&lt;P&gt;Hi @rahul1502133,&lt;BR /&gt;
Splunk is born to do this, and then is also used for many other uses (security, business insight, etc...).&lt;/P&gt;

&lt;P&gt;Anyway stop with marketing, you have to take logs from your servers using an agent called Universal Forwarder (it's no cost) that sends logs to Splunk Cloud.&lt;BR /&gt;
Usually when it's used Splunk Cloud, there are two intermediate Heavy Forwarders to concentrate logs and opening only one port between targets and Splunk Cloud.&lt;/P&gt;

&lt;P&gt;To configure Universal Forwarders to take logs are used some dedicated apps, called Technical_Add-ons (TAs), that contains all the inputs to take logs, execute scripts, etc... that you can create custom by yourself or take from apps.splunk.com,&lt;/P&gt;

&lt;P&gt;With the few information you share, this is what I can hint, in addition I suggest to read at &lt;A href="https://docs.splunk.com/Documentation/SplunkCloud/8.0.0/User/DataSplunkCloudcanindex"&gt;https://docs.splunk.com/Documentation/SplunkCloud/8.0.0/User/DataSplunkCloudcanindex&lt;/A&gt; how to get data in Splunk Cloud and see at apps.splunk.com the list of the sources you can take.&lt;/P&gt;

&lt;P&gt;Ciao.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Fri, 06 Dec 2019 08:16:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-there-a-way-to-monitor-servers-through-Splunk/m-p/502146#M139765</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2019-12-06T08:16:21Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to monitor servers through Splunk?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-there-a-way-to-monitor-servers-through-Splunk/m-p/502147#M139766</link>
      <description>&lt;P&gt;So what u are saying is that Install Universal forwarder on the servers and then index the data in splunk   thats fine .....but here my question is that how to find the availability (UP OR DOWN) status of a server based in the indexed data &lt;BR /&gt;
Coz if we consider a scenario of logs not coming into splunk as benchmark  to say that a server is up or down it could only mean that the agent is down and the server might be running.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Dec 2019 09:50:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-there-a-way-to-monitor-servers-through-Splunk/m-p/502147#M139766</guid>
      <dc:creator>rahul1502133</dc:creator>
      <dc:date>2019-12-06T09:50:10Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to monitor servers through Splunk?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-there-a-way-to-monitor-servers-through-Splunk/m-p/502148#M139767</link>
      <description>&lt;P&gt;Hi @rahul1502133,&lt;BR /&gt;
you should creata a lookup (called e.g. perimeter.csv) containing all the servers to monitor (in a column called host) and then run a search like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| metasearch index=_internal
| eval host=upper(host)
| stats count BY host
| append [ | inputlookup perimeter.csv | eval count=0, host=upper(host) | fields host count ]
| stats sum(count) AS total BY host
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;In this way all the servers with total=0 are down and the other are up.&lt;BR /&gt;
You can create an alert adding at the end of the search | where total=0 triggering when there are down servers.&lt;/P&gt;

&lt;P&gt;If instead you want a dashboard, eventually in graphic mode, you can see my answer &lt;A href="https://answers.splunk.com/answers/788233/servers-availability-status.html#answer-787047"&gt;https://answers.splunk.com/answers/788233/servers-availability-status.html#answer-787047&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;If you want, you can also enrich your panel, adding to the lookup other information (e.g. IP, role, description, etc...) and adding them to the search, something like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| metasearch index=_internal
| eval host=upper(host)
| stats count BY host
| append [ | inputlookup perimeter.csv | eval count=0, host=upper(host) | fields host count IP Role Description ]
| stats values(IP) AS IP values(Role) AS Role values(Description) AS Description sum(count) AS total BY host
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Ciao.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Fri, 06 Dec 2019 12:00:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-there-a-way-to-monitor-servers-through-Splunk/m-p/502148#M139767</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2019-12-06T12:00:31Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to monitor servers through Splunk?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-there-a-way-to-monitor-servers-through-Splunk/m-p/502149#M139768</link>
      <description>&lt;P&gt;HI @gcusello &lt;BR /&gt;
Thank you for the query ......but the above query only works if the logs are coming, what if the&lt;BR /&gt;
 Splunk agent on the server is down but the server is still up..... so according to the query that server will be concluded as &lt;STRONG&gt;down&lt;/STRONG&gt;... could you pls come up with a solution for this scenario.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Dec 2019 13:57:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-there-a-way-to-monitor-servers-through-Splunk/m-p/502149#M139768</guid>
      <dc:creator>rahul1502133</dc:creator>
      <dc:date>2019-12-06T13:57:32Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to monitor servers through Splunk?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-there-a-way-to-monitor-servers-through-Splunk/m-p/502150#M139769</link>
      <description>&lt;P&gt;Hi @rahul1502133,&lt;BR /&gt;
If the Splunk Universal Forwarder is down you cannot monitor your server, so I think that there's a good reason to intervene even if the server is up because without UF you're blind!&lt;/P&gt;

&lt;P&gt;If instead for you is acceptable that the UF is down and the server is up, you have to create a different way to check this, e.g. a script on one Splunk server that pings all the servers indexing the results, then the search it's very similar.&lt;/P&gt;

&lt;P&gt;I don't hint this solution, because (as I said) without UF you're completely blind!&lt;/P&gt;

&lt;P&gt;Ciao.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Fri, 06 Dec 2019 14:33:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-there-a-way-to-monitor-servers-through-Splunk/m-p/502150#M139769</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2019-12-06T14:33:24Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to monitor servers through Splunk?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-there-a-way-to-monitor-servers-through-Splunk/m-p/574121#M200080</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;can you provide same for single host&lt;/P&gt;</description>
      <pubDate>Tue, 09 Nov 2021 04:53:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-there-a-way-to-monitor-servers-through-Splunk/m-p/574121#M200080</guid>
      <dc:creator>jackin</dc:creator>
      <dc:date>2021-11-09T04:53:07Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to monitor servers through Splunk?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-there-a-way-to-monitor-servers-through-Splunk/m-p/574141#M200095</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/239496"&gt;@jackin&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;for a single host try something like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=your_index host=your_host&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if you have events the server is up, if you haven't events the server is down.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Tue, 09 Nov 2021 06:51:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-there-a-way-to-monitor-servers-through-Splunk/m-p/574141#M200095</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2021-11-09T06:51:11Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to monitor servers through Splunk?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-there-a-way-to-monitor-servers-through-Splunk/m-p/574142#M200096</link>
      <description>&lt;P&gt;HI&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/203755"&gt;@rahul1502133&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;if the server is up and the Splunk agent is down you're completely blind so it's a good idea to have an alert when this occurs!&lt;/P&gt;&lt;P&gt;Anyway, you could create a script in another server that pings all ther servers in your network and sends the output of the script to Splunk, so you can immediately find if the ping fails, but I don't like this solution because the most important thing isn't to&lt;SPAN&gt;&amp;nbsp;test if the server is up, but if the Splunk agent is up and sending logs.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Ciao.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Giuseppe&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Nov 2021 06:58:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-there-a-way-to-monitor-servers-through-Splunk/m-p/574142#M200096</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2021-11-09T06:58:38Z</dc:date>
    </item>
  </channel>
</rss>

