logging on otrs.log instead of messages

Hello list! My configuration for the LogModule is here: $Self->{'LogModule'} = 'Kernel::System::Log::File'; $Self->{'LogModule::LogFile'} = '/var/log/otrs.log'; I guess this should be OK, but I don't see anything logged to the /var/log/otrs.log file. Instead, if I leave $Self->{'LogModule'} = 'Kernel::System::Log::SysLog'; I get it logging on /var/log/messages. otrs.log file permissions are as follows: -rw-r--r-- 1 root root 0 2006-07-19 13:24 otrs.log I want it to be logging *only* in /var/log/otrs.log, what am I missing? Thanks, -- ---------------------------------- Boniforti Flavio Provincia del Verbano-Cusio-Ossola Ufficio Informatica Tecnoparco del Lago Maggiore Via dell'Industria, 25 28924 Verbania ----------------------------------

Boniforti Flavio wrote:
otrs.log file permissions are as follows:
-rw-r--r-- 1 root root 0 2006-07-19 13:24 otrs.log
I want it to be logging *only* in /var/log/otrs.log, what am I missing?
The permissions don't look okay to me. If you set it like this only the root user can write to otrs.log while OTRS doesn't run as root (probably as user otrs). Change the owner or the permissions to allow user otrs to write to this file. Nils Breunese.

Nils Breunese (Lemonbit Internet) ha scritto:
Boniforti Flavio wrote:
otrs.log file permissions are as follows:
-rw-r--r-- 1 root root 0 2006-07-19 13:24 otrs.log
I want it to be logging *only* in /var/log/otrs.log, what am I missing?
The permissions don't look okay to me. If you set it like this only the root user can write to otrs.log while OTRS doesn't run as root (probably as user otrs). Change the owner or the permissions to allow user otrs to write to this file.
Wo! You're almost right. It was *indeed* the permission thing. It should have been obvious to me that it was writing correctly to /var/log/messages because the syslog facility is run by root. To be able to write to /var/log/otrs.log I just had to use the www-data user (chown-ing to that user/group). There it goes! Thanks! -- ---------------------------------- Boniforti Flavio Provincia del Verbano-Cusio-Ossola Ufficio Informatica Tecnoparco del Lago Maggiore Via dell'Industria, 25 28924 Verbania ----------------------------------
participants (2)
-
Boniforti Flavio
-
Nils Breunese (Lemonbit Internet)