10 Commits

Author SHA1 Message Date
ionutboangiu
7069ed1cd8 Fix rsyslog config to capture logs across distros
Add three conditions to properly capture CGRateS logs:

- programname startswith 'cgr-engine': catches logs from external
  libraries that don't use our syslogger (e.g. diameter conn errors)
- programname startswith 'CGRateS': handles deb-based distros
  where our syslog tag becomes the program name
- msg contains 'CGRateS': handles rpm-based distros where systemd
  journal overrides programname but our tag remains in message content
2025-05-26 08:10:40 +02:00
gezimbll
535f2e554e updated rsyslog conf to include logs with tag CGRateS 2025-02-26 12:54:53 +01:00
ionutboangiu
29d030bd69 Update files related to rpm packaging 2023-07-21 09:00:46 +02:00
ionutboangiu
cf36f67d87 Revise logging .conf files 2023-06-23 11:54:59 +02:00
Trial97
b237bc40f9 Updated rsyslog files 2021-12-22 17:53:03 +01:00
Trial97
f361026e44 Renamed logrotate config files 2020-05-26 17:47:05 +02:00
Bas Couwenberg
e4e41a3e5d Fix logrotate configuration.
logrotate refused to rotate the logfile due to permissions:
```
logrotate[6248]: error: skipping "/var/log/cgrates/CGRateS.log" because parent directory has insecure permissions (It's world writable or writable by group which is not "root") Set "su" directive in config file to tell logrotate which user/group should be used for rotation
```
Ownership of the directory and logfile is root/adm:
```
total 192
drwxrwxr-x 2 root adm    4096 Jul 17 10:24 .
drwxr-xr-x 8 root root   4096 Jul 17 00:00 ..
-rw-r----- 1 root adm  182485 Jul 16 15:52 CGRateS.log
```
2019-07-18 02:55:53 -10:00
Anthony Somerset
2fca1f3476 logging folder in lower case for better consistency 2019-04-04 14:36:01 +02:00
Anthony Somerset
2dd7202f39 changing logging folder to avoid polluting raw /var/log dir 2019-04-04 14:36:01 +02:00
Anthony Somerset
0305bf40d2 basic Out of Box logging + logrotate config for deb based systems 2019-04-04 14:36:01 +02:00