<?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: Indexer in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Indexer/m-p/741392#M240611</link>
    <description>&lt;P&gt;Well... TA_nix without careful tweaking what it reports can be a handful. It's just a bunch of ziptie and duct-tape connected scripts giving you some relatively unfriendly output. And if you just install it and enable all inputs, it can get noisy.&lt;/P&gt;</description>
    <pubDate>Tue, 11 Mar 2025 09:18:19 GMT</pubDate>
    <dc:creator>PickleRick</dc:creator>
    <dc:date>2025-03-11T09:18:19Z</dc:date>
    <item>
      <title>Indexer</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Indexer/m-p/741367#M240605</link>
      <description>&lt;P&gt;I want to get total memory allocated on 1 indexer and how much memory it is using. so that i could get remaining disk space left.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Mar 2025 06:43:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Indexer/m-p/741367#M240605</guid>
      <dc:creator>SN1</dc:creator>
      <dc:date>2025-03-11T06:43:31Z</dc:date>
    </item>
    <item>
      <title>Re: Indexer</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Indexer/m-p/741373#M240606</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/274807"&gt;@SN1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Splunk indexers store data on disk in indexes, and the "total memory allocated" could refer to the total disk space available on the partition where Splunk stores its data (typically under &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;$SPLUNK_HOME/var/lib/splunk&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;). The "memory it is using" would then be the disk space consumed by the indexes, and the "remaining disk space left" would be the free space on that partition.&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;PRE&gt;| rest /services/server/status/partitions-space splunk_server=*&lt;BR /&gt;| eval totalGB = round(capacity/1024/1024, 2)&lt;BR /&gt;| eval freeGB = round(free/1024/1024, 2)&lt;BR /&gt;| eval usedGB = round((capacity - free)/1024/1024, 2)&lt;BR /&gt;| table splunk_server, totalGB, usedGB, freeGB&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="kiran_panchavat_1-1741676768504.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/38076i65670E605892D6B0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="kiran_panchavat_1-1741676768504.png" alt="kiran_panchavat_1-1741676768504.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P class=""&gt;To get the total memory allocated on an indexer and its current usage (which is different from disk space), you can use the following Splunk commands:&lt;/P&gt;&lt;P class=""&gt;&lt;STRONG&gt;For memory information:&lt;/STRONG&gt;&lt;/P&gt;&lt;DIV&gt;| rest /services/server/status/resource-usage/hostwide splunk_server=*&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="kiran_panchavat_2-1741677125898.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/38077iE35838A7B1745D03/image-size/medium?v=v2&amp;amp;px=400" role="button" title="kiran_panchavat_2-1741677125898.png" alt="kiran_panchavat_2-1741677125898.png" /&gt;&lt;/span&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;This will show you key metrics including:&lt;/P&gt;&lt;UL class=""&gt;&lt;LI&gt;Total physical memory on the system&lt;/LI&gt;&lt;LI&gt;Memory currently in use&lt;/LI&gt;&lt;LI&gt;Available memory&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;If you're specifically interested in Splunk's memory usage:&lt;/P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="kiran_panchavat_3-1741677194105.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/38078iA5E1D54CDB23229D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="kiran_panchavat_3-1741677194105.png" alt="kiran_panchavat_3-1741677194105.png" /&gt;&lt;/span&gt;&lt;P&gt;For disk space information (which seems to be what you're actually asking about):&lt;/P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="kiran_panchavat_4-1741677217694.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/38079i19845E21392B7C0D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="kiran_panchavat_4-1741677217694.png" alt="kiran_panchavat_4-1741677217694.png" /&gt;&lt;/span&gt;&lt;P&gt;For specific index volume usage:&lt;/P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="kiran_panchavat_5-1741677292311.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/38080iBD0E3B8B6983661A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="kiran_panchavat_5-1741677292311.png" alt="kiran_panchavat_5-1741677292311.png" /&gt;&lt;/span&gt;&lt;P&gt;Note that memory usage and disk space are different resources. Memory refers to RAM available for processing, while disk space refers to storage capacity for data. Your question mentions memory but ends with disk space, so I've provided commands for both.&lt;/P&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Tue, 11 Mar 2025 07:15:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Indexer/m-p/741373#M240606</guid>
      <dc:creator>kiran_panchavat</dc:creator>
      <dc:date>2025-03-11T07:15:11Z</dc:date>
    </item>
    <item>
      <title>Re: Indexer</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Indexer/m-p/741380#M240607</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/274807"&gt;@SN1&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;in addition to the perfect answer of&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/264857"&gt;@kiran_panchavat&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;you could install the Splunk_TA_nix add-on ( &lt;A href="https://splunkbase.splunk.com/app/833" target="_blank"&gt;https://splunkbase.splunk.com/app/833&lt;/A&gt;&amp;nbsp;) and extract additional information from the linux system you're using.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Tue, 11 Mar 2025 07:44:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Indexer/m-p/741380#M240607</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2025-03-11T07:44:31Z</dc:date>
    </item>
    <item>
      <title>Re: Indexer</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Indexer/m-p/741392#M240611</link>
      <description>&lt;P&gt;Well... TA_nix without careful tweaking what it reports can be a handful. It's just a bunch of ziptie and duct-tape connected scripts giving you some relatively unfriendly output. And if you just install it and enable all inputs, it can get noisy.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Mar 2025 09:18:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Indexer/m-p/741392#M240611</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2025-03-11T09:18:19Z</dc:date>
    </item>
    <item>
      <title>Re: Indexer</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Indexer/m-p/741393#M240612</link>
      <description>&lt;P&gt;The difference between disk usage and memory has already been pointed out.&lt;/P&gt;&lt;P&gt;There is also one more thing worth noting - the disk utilization on indexers is usually managed by adjusting retention parameters (you might also get some additional usage from knowledge bundles and intermediate results but they are rarely very significant). And the memory usage can vary greatly depending on the current load at the time of checking since memory is used mostly for searching. So the more more complicated searches you're running at any given moment, the higher memory usage.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Mar 2025 09:21:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Indexer/m-p/741393#M240612</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2025-03-11T09:21:49Z</dc:date>
    </item>
    <item>
      <title>Re: Indexer</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Indexer/m-p/741411#M240615</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/274807"&gt;@SN1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Some good answers here, its worth noting that for me&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rest /services/server/status/partitions-space&lt;/LI-CODE&gt;&lt;P&gt;doesnt give me the right data, and it can depend on how your partitions are configured (e.g. multiple partitions for hot/warm/cold etc)&lt;/P&gt;&lt;P&gt;If you're using Linux then its worth also checking something as simple as in the linux command line&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;df -h&lt;/LI-CODE&gt;&lt;P&gt;This will list all the filesystems on the server and show you the size, used and available disk space.&lt;/P&gt;&lt;P&gt;I'd definitely recommend setting up some proper monitoring using the &lt;A href="https://splunkbase.splunk.com/app/833" target="_self"&gt;Splunk TA for *Nix&lt;/A&gt;&amp;nbsp;to cover your servers and cover all partitions and filesystems.&lt;/P&gt;&lt;P&gt;Please let me know how you get on and consider adding karma to this or any other answer if it has helped.&lt;BR /&gt;Regards&lt;/P&gt;&lt;P&gt;Will&lt;/P&gt;</description>
      <pubDate>Tue, 11 Mar 2025 14:08:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Indexer/m-p/741411#M240615</guid>
      <dc:creator>livehybrid</dc:creator>
      <dc:date>2025-03-11T14:08:36Z</dc:date>
    </item>
    <item>
      <title>Re: Indexer</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Indexer/m-p/741500#M240632</link>
      <description>&lt;P&gt;when i am running this search it is giving 16GB as total_GB while our total size is 16Tb.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Mar 2025 07:46:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Indexer/m-p/741500#M240632</guid>
      <dc:creator>SN1</dc:creator>
      <dc:date>2025-03-12T07:46:53Z</dc:date>
    </item>
    <item>
      <title>Re: Indexer</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Indexer/m-p/741504#M240635</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/274807"&gt;@SN1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is because the values from the endpoint are in MB but are being divided by 1024 twice in this search hence they become in TB.&amp;nbsp;&lt;BR /&gt;try switching 1024/1024 for just 1024 in each occurrence and see if that resolves for you &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Will&lt;/P&gt;</description>
      <pubDate>Wed, 12 Mar 2025 08:18:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Indexer/m-p/741504#M240635</guid>
      <dc:creator>livehybrid</dc:creator>
      <dc:date>2025-03-12T08:18:23Z</dc:date>
    </item>
    <item>
      <title>Re: Indexer</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Indexer/m-p/741512#M240640</link>
      <description>&lt;P&gt;You can also use an mstats query to query to _metrics index:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| mstats latest(_value) as val WHERE index=_metrics AND metric_name=spl.intr.disk_objects.Partitions.data.* by data.mount_point, metric_name
| rename data.mount_point as mount_point
| eval metric_name=replace(metric_name,"spl.intr.disk_objects.Partitions.data.","")
| eval {metric_name}=val
| stats latest(*) as * by mount_point
| 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(compare_usage) AS compare_usage first(pct_usage) as pct_usage by mount_point 
| rename mount_point as "Mount Point", compare_usage as "Disk Usage (GB)", pct_usage as "Disk Usage (%)"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please let me know how you get on and consider adding karma to this or any other answer if it has helped.&lt;BR /&gt;Regards&lt;/P&gt;&lt;P&gt;Will&lt;/P&gt;</description>
      <pubDate>Wed, 12 Mar 2025 08:44:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Indexer/m-p/741512#M240640</guid>
      <dc:creator>livehybrid</dc:creator>
      <dc:date>2025-03-12T08:44:54Z</dc:date>
    </item>
  </channel>
</rss>

