initial commit
This commit is contained in:
@@ -0,0 +1,58 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
'db' => [
|
||||
'path' => '/app/data/logging.db',
|
||||
],
|
||||
'worker' => [
|
||||
'file_check_interval' => 500000,
|
||||
],
|
||||
'sources' => [],
|
||||
'rules' => [
|
||||
[
|
||||
'name' => 'PHP Error',
|
||||
'pattern' => '/PHP (Fatal|Parse|Catchable|Notice|Warning)/i',
|
||||
'severity' => 'warning',
|
||||
'rate_limit_seconds' => 60,
|
||||
],
|
||||
[
|
||||
'name' => 'PHP Exception',
|
||||
'pattern' => '/Uncaught (Exception|Error)/',
|
||||
'severity' => 'critical',
|
||||
'rate_limit_seconds' => 30,
|
||||
],
|
||||
[
|
||||
'name' => 'HTTP 5xx',
|
||||
'pattern' => '/" (50[0-9]) /',
|
||||
'severity' => 'critical',
|
||||
],
|
||||
[
|
||||
'name' => 'HTTP 4xx',
|
||||
'pattern' => '/" (4[0-9]{2}) /',
|
||||
'severity' => 'warning',
|
||||
'rate_limit_seconds' => 60,
|
||||
],
|
||||
[
|
||||
'name' => 'Failed Login',
|
||||
'pattern' => '/Failed (login|password|authentication)/i',
|
||||
'severity' => 'critical',
|
||||
],
|
||||
[
|
||||
'name' => 'Out of Memory',
|
||||
'pattern' => '/out of memory/i',
|
||||
'severity' => 'critical',
|
||||
'rate_limit_seconds' => 60,
|
||||
],
|
||||
[
|
||||
'name' => 'Connection Refused',
|
||||
'pattern' => '/Connection (refused|reset|timed? out)/i',
|
||||
'severity' => 'warning',
|
||||
],
|
||||
[
|
||||
'name' => 'Disk Space',
|
||||
'pattern' => '/disk (full|space|usage|low)/i',
|
||||
'severity' => 'warning',
|
||||
'rate_limit_seconds' => 300,
|
||||
],
|
||||
],
|
||||
];
|
||||
Reference in New Issue
Block a user