<group name="disk_space_utilization,">
<!-- Rule to check C: Drive free space -->
<rule id="100014" level="7">
<if_sid>530</if_sid>
<match>^ossec: output: 'check_win_disk_space': </match>
<regex type="pcre2">[0-1]\d.\d+%$</regex>
<description>C: Drive free space less than 20%.</description>
</rule>
<!-- Rule for disk space between 20% and 50% -->
<rule id="100015" level="5">
<if_sid>530</if_sid>
<match>^ossec: output: 'check_win_disk_space': </match>
<regex type="pcre2">[2-4]\d.\d+%$</regex>
<description>C: Drive free space between 20% and 50%.</description>
</rule>
<!-- Rule for disk space between 50% and 80% -->
<rule id="100016" level="3">
<if_sid>530</if_sid>
<match>^ossec: output: 'check_win_disk_space': </match>
<regex type="pcre2">[5-7]\d.\d+%$</regex>
<description>C: Drive free space between 50% and 80%.</description>
</rule>
<!-- Rule for disk space above 80% -->
<rule id="100017" level="10">
<if_sid>530</if_sid>
<match>^ossec: output: 'check_win_disk_space': </match>
<regex type="pcre2">[89]\d.\d+%$</regex>
<description>C: Drive free space above 80%.</description>
</rule>
</group>