Problem with otrs log file

Moderator: crythias

Post Reply
bayerex
OTRS expert
Posts: 164
Joined: 03 Dec 2012, 00:30
OTRS Version?: 3.2.7

Problem with otrs log file

Post by bayerex »

Hi all,

Since yesterday otrs.log is no longer writable and has been wiped of all its contents. Surely if the log file exists in a tmp directory then Linux will periodically wipe this file?

-rw-r----- 1 syslog adm 0 Jul 9 19:42 /tmp/otrs.log

Shouldn't it exist in /opt/otrs/var/tmp/otrs.log?

Is this the correct prcoedure to update this path?:
Update log path in: Core::Log
Update log path in: Kernel/Config.pm

Strangely enough if I look in /index.pl?Action=AdminLog then I see logs. Where is this being stored if not /tmp/otrs.log as it states?

Grateful if someone could solve this confusion for me.
Current Production Server (recently switched from Windows)
OTRS 3.2.7 on Ubuntu 12.04LTS 64bit
PHP 5.3.10-1ubuntu3.6
mysql Ver 14.14 Distrib 5.5.31

Previous Production Server:
Windows 2008
MySQL 5.1.51 Community Server
Strawberry Perl 5.12.3.0

crythias
Moderator
Posts: 10122
Joined: 04 May 2010, 18:38
OTRS Version?: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Problem with otrs log file

Post by crythias »

Defaults.pm

Code: Select all

    $Self->{LogModule} = 'Kernel::System::Log::SysLog';
#    $Self->{'LogModule'} = 'Kernel::System::Log::File';
    $Self->{'LogModule::SysLog::Facility'} = 'user';
    $Self->{'LogModule::SysLog::LogSock'} = 'unix';
    $Self->{'LogModule::LogFile'} = '/tmp/otrs.log'; #not relevant because SysLog, not File 
Where does SysLog go? Wherever it points within rsyslog... usually /var/log/messages or /var/log/syslog

For more information: viewtopic.php?f=60&t=16826
OTRS 5.0.x (private/testing/public) on Linux with MySQL database. Also on github.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask

Post Reply