<?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: script to check if the server is up in Deployment Architecture</title>
    <link>https://community.splunk.com/t5/Deployment-Architecture/script-to-check-if-the-server-is-up/m-p/545289#M18679</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/232748"&gt;@nirt00&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;why should you change the tag?&lt;/P&gt;&lt;P&gt;usually the requisite is the continuity without knowing the source of the service.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
    <pubDate>Thu, 25 Mar 2021 07:56:46 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2021-03-25T07:56:46Z</dc:date>
    <item>
      <title>script to check if the server is up</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/script-to-check-if-the-server-is-up/m-p/544756#M18664</link>
      <description>&lt;P&gt;Hi, I new at Splunk and need some help.&lt;/P&gt;&lt;P&gt;I have two sites, primary with deployment server, heavy forwarder, and DR with deployment server and cluster master.&lt;/P&gt;&lt;P&gt;I'm trying to write a script that check if the primary site is up.&lt;/P&gt;&lt;P&gt;My line of thought is something like -&lt;/P&gt;&lt;P&gt;Primary -&amp;nbsp; &amp;nbsp;if it up, I have TAG "primary".&lt;/P&gt;&lt;P&gt;DR -&amp;nbsp; As long as there is a TAG called "primary", I am "standby".&lt;BR /&gt;If not, then now I have the TAG called "primary" and at cluster master server enable the service.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Mar 2021 11:56:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/script-to-check-if-the-server-is-up/m-p/544756#M18664</guid>
      <dc:creator>nirt00</dc:creator>
      <dc:date>2021-03-22T11:56:26Z</dc:date>
    </item>
    <item>
      <title>Re: script to check if the server is up</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/script-to-check-if-the-server-is-up/m-p/544766#M18665</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/232748"&gt;@nirt00&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;you could create an alert that's searching if you're receiving Splunk internal logs from the servers in the primary site, something like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=_internal (host=host_primary_1 OR host=host_primary_2 OR host=host_primary_3 OR ...)
| stats dc(host) AS hosts
| where hosts!=&amp;lt;number_of_host_in_primary_site&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Mon, 22 Mar 2021 13:05:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/script-to-check-if-the-server-is-up/m-p/544766#M18665</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2021-03-22T13:05:46Z</dc:date>
    </item>
    <item>
      <title>Re: script to check if the server is up</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/script-to-check-if-the-server-is-up/m-p/545268#M18677</link>
      <description>&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;how can I change the "TAGS" on the DR site (stanby) to "Primary" if the primary site is down?&lt;/P&gt;&lt;P&gt;can I do it in script? or this is the recommended solution?&lt;/P&gt;</description>
      <pubDate>Thu, 25 Mar 2021 06:40:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/script-to-check-if-the-server-is-up/m-p/545268#M18677</guid>
      <dc:creator>nirt00</dc:creator>
      <dc:date>2021-03-25T06:40:16Z</dc:date>
    </item>
    <item>
      <title>Re: script to check if the server is up</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/script-to-check-if-the-server-is-up/m-p/545289#M18679</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/232748"&gt;@nirt00&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;why should you change the tag?&lt;/P&gt;&lt;P&gt;usually the requisite is the continuity without knowing the source of the service.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Thu, 25 Mar 2021 07:56:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/script-to-check-if-the-server-is-up/m-p/545289#M18679</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2021-03-25T07:56:46Z</dc:date>
    </item>
    <item>
      <title>Re: script to check if the server is up</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/script-to-check-if-the-server-is-up/m-p/545386#M18681</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;thanks for your reply.&lt;/P&gt;&lt;P&gt;let me understand, I have several splunk server in primary site and several server in DR site, if the primary site is down the DR site continues work regular?&amp;nbsp; I don't need to "TAG" it as primary? what regarding splunk service that down in primary site - I need to enable it on the DR site?&lt;/P&gt;&lt;P&gt;I apologize for all the questions, but I feel I lack information or knowledge.&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Nir&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Mar 2021 13:09:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/script-to-check-if-the-server-is-up/m-p/545386#M18681</guid>
      <dc:creator>nirt00</dc:creator>
      <dc:date>2021-03-25T13:09:11Z</dc:date>
    </item>
    <item>
      <title>Re: script to check if the server is up</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/script-to-check-if-the-server-is-up/m-p/545391#M18682</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/232748"&gt;@nirt00&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;I don't know how your DR is organized, but I think that the recovery site starts to work automatically, without manual intervene.&lt;/P&gt;&lt;P&gt;Probably in the DR site you have the Indexers and Search Heads to continue the normal work and probably you have only some management roles (e.g. Deployer or Deployment Servers) in waiting state.&lt;/P&gt;&lt;P&gt;So if you receive an alert that the Primary Site is down, you have only to decide if you have to manually start (if needed) the waiting roles or wait for the restart the primary Site.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Thu, 25 Mar 2021 13:34:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/script-to-check-if-the-server-is-up/m-p/545391#M18682</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2021-03-25T13:34:49Z</dc:date>
    </item>
  </channel>
</rss>

