<?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: Create alert for disk usage in Alerting</title>
    <link>https://community.splunk.com/t5/Alerting/How-to-create-an-alert-for-disk-usage/m-p/613848#M14276</link>
    <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;&amp;nbsp;i have an issue here with this regex... it is not filtering&amp;nbsp; this type of event:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;/dev/mapper/group1-mountpoint_www	xfs	9.0G	674M	8.4G	8%	4.5M	33K	4.5M	1%	/var/www&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;basically what changes is the filesystem name (uses "-" and "_") and the size of the numbers and the sizy (M, G, K).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PS: I know that in your example the disk needs to be higher than 80, but i changed the value to 2.&lt;/P&gt;</description>
    <pubDate>Tue, 20 Sep 2022 21:07:37 GMT</pubDate>
    <dc:creator>uchoavaz</dc:creator>
    <dc:date>2022-09-20T21:07:37Z</dc:date>
    <item>
      <title>How to create an alert for disk usage?</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-create-an-alert-for-disk-usage/m-p/613502#M14267</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;i am sending from a host to splunk cloud logs from the disk usage. Here is an example how the events are:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;/dev/nvme4n1p1	xfs	50G	555M	50G	2%	25M	33K	25M	1%	/var/www&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;where "2%" field is called as "Use_". How can i create an alert/search when this number (without the percentage symbol) is higher than 80 ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Sun, 18 Sep 2022 23:41:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-create-an-alert-for-disk-usage/m-p/613502#M14267</guid>
      <dc:creator>uchoavaz</dc:creator>
      <dc:date>2022-09-18T23:41:49Z</dc:date>
    </item>
    <item>
      <title>Re: Create alert for disk usage</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-create-an-alert-for-disk-usage/m-p/613504#M14268</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/248492"&gt;@uchoavaz&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;you have to extract the remaining disk space using a regex and then cheate a condition:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index?your_index
| rex "^(?&amp;lt;device&amp;gt;[^ ]+)\s+\w+\s+\w+\s+\w+\s+\w+\s+(?&amp;lt;disk&amp;gt;\d+)"
| where disk&amp;gt;80&lt;/LI-CODE&gt;&lt;P&gt;You can test the regex at&amp;nbsp;&lt;A href="https://regex101.com/r/3W8h6m/1" target="_blank"&gt;https://regex101.com/r/3W8h6m/1&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Sat, 17 Sep 2022 14:17:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-create-an-alert-for-disk-usage/m-p/613504#M14268</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-09-17T14:17:38Z</dc:date>
    </item>
    <item>
      <title>Re: Create alert for disk usage</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-create-an-alert-for-disk-usage/m-p/613528#M14269</link>
      <description>&lt;P&gt;Worked! Thanks.&lt;/P&gt;</description>
      <pubDate>Sun, 18 Sep 2022 14:19:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-create-an-alert-for-disk-usage/m-p/613528#M14269</guid>
      <dc:creator>uchoavaz</dc:creator>
      <dc:date>2022-09-18T14:19:33Z</dc:date>
    </item>
    <item>
      <title>Re: Create alert for disk usage</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-create-an-alert-for-disk-usage/m-p/613848#M14276</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;&amp;nbsp;i have an issue here with this regex... it is not filtering&amp;nbsp; this type of event:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;/dev/mapper/group1-mountpoint_www	xfs	9.0G	674M	8.4G	8%	4.5M	33K	4.5M	1%	/var/www&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;basically what changes is the filesystem name (uses "-" and "_") and the size of the numbers and the sizy (M, G, K).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PS: I know that in your example the disk needs to be higher than 80, but i changed the value to 2.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Sep 2022 21:07:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-create-an-alert-for-disk-usage/m-p/613848#M14276</guid>
      <dc:creator>uchoavaz</dc:creator>
      <dc:date>2022-09-20T21:07:37Z</dc:date>
    </item>
    <item>
      <title>Re: Create alert for disk usage</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-create-an-alert-for-disk-usage/m-p/613849#M14277</link>
      <description>&lt;P&gt;I know that the issue is at the dot (".") that can exist or not in the column 3,4 or 5. But how can i put that in the regex?&lt;/P&gt;</description>
      <pubDate>Tue, 20 Sep 2022 21:26:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-create-an-alert-for-disk-usage/m-p/613849#M14277</guid>
      <dc:creator>uchoavaz</dc:creator>
      <dc:date>2022-09-20T21:26:35Z</dc:date>
    </item>
    <item>
      <title>Re: Create alert for disk usage</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-create-an-alert-for-disk-usage/m-p/613879#M14279</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/248492"&gt;@uchoavaz&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;please try this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index?your_index
| rex "^(?&amp;lt;device&amp;gt;[^ ]+)(\s+[^ ]+){4}\s+(?&amp;lt;disk&amp;gt;\d+)"
| where disk&amp;gt;80&lt;/LI-CODE&gt;&lt;P&gt;that you can test at&amp;nbsp;&lt;A href="https://regex101.com/r/3W8h6m/3" target="_blank"&gt;https://regex101.com/r/3W8h6m/3&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Wed, 21 Sep 2022 06:41:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-create-an-alert-for-disk-usage/m-p/613879#M14279</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-09-21T06:41:55Z</dc:date>
    </item>
  </channel>
</rss>

