Files
jakach-logging/config/default.php
T
2026-05-06 11:28:41 +02:00

58 lines
1.6 KiB
PHP

<?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,
],
],
];