<?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 Monitoring console: Splunk Indexer Serves status in Monitoring Splunk</title>
    <link>https://community.splunk.com/t5/Monitoring-Splunk/Monitoring-console-Splunk-Indexer-Serves-status/m-p/500833#M8417</link>
    <description>&lt;P&gt;I can see the total number of servers against resource Usage: Deployment:&lt;/P&gt;

&lt;P&gt;It is showing me 10 out of 12 as two server are out of service due to disk issue.&lt;BR /&gt;
below ist he initial search:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rest /services/server/status/partitions-space splunk_server="*-ID-*" 
        | eval free = if(isnotnull(available), available, free)
        | eval usage = round((capacity - free) / 1024, 2)
        | eval capacity = round(capacity / 1024, 2)
        | eval compare_usage = usage." / ".capacity
        | eval pct_usage = round(usage / capacity * 100, 2)
        | stats first(fs_type) as fs_type first(compare_usage) AS compare_usage first(pct_usage) as pct_usage by splunk_server,mount_point        
        | rename mount_point as "Mount Point", fs_type as "File System Type", compare_usage as "Disk Usage (GB)", pct_usage as "Disk Usage (%)"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;===============&lt;BR /&gt;
below are sample of result:&lt;BR /&gt;
splunk_server   Mount Point File System Type    Disk Usage (GB) Disk Usage (%)&lt;BR /&gt;
A                           /opt/splunk ext4                  7 / 8                            89.32&lt;BR /&gt;
B                          /opt/splunk  ext4                  7 / 8                            89.32&lt;BR /&gt;
C                          /opt/splunk  ext4                7 / 8                              89.32&lt;BR /&gt;
D                           /opt/splunk ext4                 7 / 8                             89.32&lt;BR /&gt;
E                          /opt/splunk  ext4                7 / 8                              89.32&lt;BR /&gt;
F                         /opt/splunk   ext4               7 / 8                               89.32&lt;BR /&gt;
G                        /opt/splunk    ext4                    7 / 8                      89.32&lt;BR /&gt;
H                       /opt/splunk ext4                   7 / 8                               89.32&lt;BR /&gt;
I                      /opt/splunk  ext4               7 / 8                               89.32&lt;/P&gt;

&lt;H1&gt;J                      /opt/splunk  ext4                7 / 8                              89.32&lt;/H1&gt;

&lt;P&gt;total number of resutls are 10. whereas actual servers are 12.&lt;BR /&gt;
so now I want to trigger the alert if   count of result !=12 &lt;/P&gt;</description>
    <pubDate>Wed, 04 Dec 2019 06:27:35 GMT</pubDate>
    <dc:creator>riqbal47010</dc:creator>
    <dc:date>2019-12-04T06:27:35Z</dc:date>
    <item>
      <title>Monitoring console: Splunk Indexer Serves status</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/Monitoring-console-Splunk-Indexer-Serves-status/m-p/500833#M8417</link>
      <description>&lt;P&gt;I can see the total number of servers against resource Usage: Deployment:&lt;/P&gt;

&lt;P&gt;It is showing me 10 out of 12 as two server are out of service due to disk issue.&lt;BR /&gt;
below ist he initial search:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rest /services/server/status/partitions-space splunk_server="*-ID-*" 
        | eval free = if(isnotnull(available), available, free)
        | eval usage = round((capacity - free) / 1024, 2)
        | eval capacity = round(capacity / 1024, 2)
        | eval compare_usage = usage." / ".capacity
        | eval pct_usage = round(usage / capacity * 100, 2)
        | stats first(fs_type) as fs_type first(compare_usage) AS compare_usage first(pct_usage) as pct_usage by splunk_server,mount_point        
        | rename mount_point as "Mount Point", fs_type as "File System Type", compare_usage as "Disk Usage (GB)", pct_usage as "Disk Usage (%)"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;===============&lt;BR /&gt;
below are sample of result:&lt;BR /&gt;
splunk_server   Mount Point File System Type    Disk Usage (GB) Disk Usage (%)&lt;BR /&gt;
A                           /opt/splunk ext4                  7 / 8                            89.32&lt;BR /&gt;
B                          /opt/splunk  ext4                  7 / 8                            89.32&lt;BR /&gt;
C                          /opt/splunk  ext4                7 / 8                              89.32&lt;BR /&gt;
D                           /opt/splunk ext4                 7 / 8                             89.32&lt;BR /&gt;
E                          /opt/splunk  ext4                7 / 8                              89.32&lt;BR /&gt;
F                         /opt/splunk   ext4               7 / 8                               89.32&lt;BR /&gt;
G                        /opt/splunk    ext4                    7 / 8                      89.32&lt;BR /&gt;
H                       /opt/splunk ext4                   7 / 8                               89.32&lt;BR /&gt;
I                      /opt/splunk  ext4               7 / 8                               89.32&lt;/P&gt;

&lt;H1&gt;J                      /opt/splunk  ext4                7 / 8                              89.32&lt;/H1&gt;

&lt;P&gt;total number of resutls are 10. whereas actual servers are 12.&lt;BR /&gt;
so now I want to trigger the alert if   count of result !=12 &lt;/P&gt;</description>
      <pubDate>Wed, 04 Dec 2019 06:27:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/Monitoring-console-Splunk-Indexer-Serves-status/m-p/500833#M8417</guid>
      <dc:creator>riqbal47010</dc:creator>
      <dc:date>2019-12-04T06:27:35Z</dc:date>
    </item>
    <item>
      <title>Re: Monitoring console: Splunk Indexer Serves status</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/Monitoring-console-Splunk-Indexer-Serves-status/m-p/500834#M8418</link>
      <description>&lt;P&gt;Just add this to the bottom:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | eventstats count | where count&amp;lt;12
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Then set your alarm trigger for &lt;CODE&gt;Number of results&lt;/CODE&gt; and &lt;CODE&gt;Greater than 0&lt;/CODE&gt;.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Dec 2019 09:29:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/Monitoring-console-Splunk-Indexer-Serves-status/m-p/500834#M8418</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-12-04T09:29:50Z</dc:date>
    </item>
  </channel>
</rss>

