Revise logging .conf files

This commit is contained in:
ionutboangiu
2023-06-22 12:10:55 -04:00
committed by Dan Christian Bogos
parent e99d0f63bf
commit cf36f67d87
2 changed files with 5 additions and 3 deletions

View File

@@ -8,6 +8,6 @@
sharedscripts
su root adm
postrotate
/usr/lib/rsyslog/rsyslog-rotate
/usr/lib/rsyslog/rsyslog-rotate
endscript
}

View File

@@ -1,2 +1,4 @@
if $programname contains "cgr-engine" or $programname contains "CGRateS" then /var/log/cgrates/CGRateS.log
& stop
if ($programname startswith 'cgr-engine' or $msg contains 'CGRateS') then {
action(type="omfile" File="/var/log/cgrates/CGRateS.log")
stop
}