<?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: Help with a search language that could determine full disks and system logins after core hours? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Help-with-a-search-language-that-could-determine-full-disks-and/m-p/502192#M139781</link>
    <description>&lt;P&gt;Hi &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/31275"&gt;@essibong1&lt;/a&gt;,&lt;BR /&gt;
did you already take the information on disks from your servers using TA_Windows and TA_nix or not?&lt;BR /&gt;
If not, you have to install these TAs or enable the stanzas to read disks.&lt;/P&gt;

&lt;P&gt;Then you have to run something like this for windows:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=windows sourcetype=WinHostMon DriveType=fixed
| stats latest(TotalSpaceKB) AS TotalSpaceKB latest(FreeSpaceKB) AS FreeSpaceKB by host, Name 
| eval Perc=(FreeSpaceKB/TotalSpaceKB)*100, TotalSpaceGB=TotalSpaceKB/1024/1024, FreeSpaceGB=FreeSpaceKB/1024/1024, host=upper(host) 
| sort host
| table Name TotalSpaceGB FreeSpaceGB Perc
| rename host AS "Server Name" Name AS "Drive" Perc AS "FreeSpace%"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and for Linux&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=os sourcetype=hardware 
| dedup host
| eval host=upper(host)
| table HARD_DRIVES  fd0 hdc sda
| rename HARD_DRIVES AS "Hard Disks" fd0 AS "Floppy Disk" hdc AS "Hard Disk" sda AS "Virtual disk"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Ciao.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
    <pubDate>Wed, 30 Sep 2020 03:12:07 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2020-09-30T03:12:07Z</dc:date>
    <item>
      <title>Help with a search language that could determine full disks and system logins after core hours?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-with-a-search-language-that-could-determine-full-disks-and/m-p/502191#M139780</link>
      <description>&lt;P&gt;Can any one help with a search language that could determine full disks and system logins after core hours?&lt;/P&gt;</description>
      <pubDate>Fri, 06 Dec 2019 12:34:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-with-a-search-language-that-could-determine-full-disks-and/m-p/502191#M139780</guid>
      <dc:creator>essibong1</dc:creator>
      <dc:date>2019-12-06T12:34:35Z</dc:date>
    </item>
    <item>
      <title>Re: Help with a search language that could determine full disks and system logins after core hours?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-with-a-search-language-that-could-determine-full-disks-and/m-p/502192#M139781</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/31275"&gt;@essibong1&lt;/a&gt;,&lt;BR /&gt;
did you already take the information on disks from your servers using TA_Windows and TA_nix or not?&lt;BR /&gt;
If not, you have to install these TAs or enable the stanzas to read disks.&lt;/P&gt;

&lt;P&gt;Then you have to run something like this for windows:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=windows sourcetype=WinHostMon DriveType=fixed
| stats latest(TotalSpaceKB) AS TotalSpaceKB latest(FreeSpaceKB) AS FreeSpaceKB by host, Name 
| eval Perc=(FreeSpaceKB/TotalSpaceKB)*100, TotalSpaceGB=TotalSpaceKB/1024/1024, FreeSpaceGB=FreeSpaceKB/1024/1024, host=upper(host) 
| sort host
| table Name TotalSpaceGB FreeSpaceGB Perc
| rename host AS "Server Name" Name AS "Drive" Perc AS "FreeSpace%"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and for Linux&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=os sourcetype=hardware 
| dedup host
| eval host=upper(host)
| table HARD_DRIVES  fd0 hdc sda
| rename HARD_DRIVES AS "Hard Disks" fd0 AS "Floppy Disk" hdc AS "Hard Disk" sda AS "Virtual disk"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Ciao.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 03:12:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-with-a-search-language-that-could-determine-full-disks-and/m-p/502192#M139781</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2020-09-30T03:12:07Z</dc:date>
    </item>
  </channel>
</rss>

