Reading OTRS logs on CentOS

Moderator: crythias

Locked
davidbann
Znuny newbie
Posts: 92
Joined: 21 Jun 2010, 22:51
Znuny Version: 6.5.2
Real Name: David Bann
Location: South Africa

Reading OTRS logs on CentOS

Post by davidbann »

Hi there,

I am very new to the Linux world - we recently migrated from a Windows environment to CentOS 7. I am researched what I can about the logs in CentOS and the best I have found is to use the journalctl command to read the system logs, although it shows a lot more than I would like to see...

Are there any tips for a noob on CentOS on what logs to look at and tricks to show only what is relevant to OTRS, including logs for cron jobs, and email logs?

Thanks
reneeb
Znuny guru
Posts: 5018
Joined: 13 Mar 2011, 09:54
Znuny Version: 6.0.x
Real Name: Renée Bäcker
Company: Perl-Services.de
Contact:

Re: Reading OTRS logs on CentOS

Post by reneeb »

You can watch the syslog with

Code: Select all

less +F /var/log/messages
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
davidbann
Znuny newbie
Posts: 92
Joined: 21 Jun 2010, 22:51
Znuny Version: 6.5.2
Real Name: David Bann
Location: South Africa

Re: Reading OTRS logs on CentOS

Post by davidbann »

reneeb wrote:You can watch the syslog with

Code: Select all

less +F /var/log/messages
Thanks reneeb - very useful :)
jjurkus
Znuny newbie
Posts: 54
Joined: 29 Jan 2016, 15:36
Znuny Version: 6.0.17

Re: Reading OTRS logs on CentOS

Post by jjurkus »

Also use the system logs under the admin tab in the webinterface. I'm not getting everything in /var/log/messages, only mention of new sessions.
OTRS 6.0.x on CentOS 7 with a PostgreSQL database.
reneeb
Znuny guru
Posts: 5018
Joined: 13 Mar 2011, 09:54
Znuny Version: 6.0.x
Real Name: Renée Bäcker
Company: Perl-Services.de
Contact:

Re: Reading OTRS logs on CentOS

Post by reneeb »

jjurkus wrote:Also use the system logs under the admin tab in the webinterface. I'm not getting everything in /var/log/messages, only mention of new sessions.
That's weird. Do you use Syslog for logging or your own file? If you use your own logfile, you should "less +F" this file... There is one problem with the system log in the admin area of OTRS: For each log entry it shows only the first line. If a log entry has several lines (e.g. a "dump" of a Perl datastructure) you get no information about the issue.
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
jjurkus
Znuny newbie
Posts: 54
Joined: 29 Jan 2016, 15:36
Znuny Version: 6.0.17

Re: Reading OTRS logs on CentOS

Post by jjurkus »

reneeb wrote:That's weird. Do you use Syslog for logging or your own file? If you use your own logfile, you should "less +F" this file... There is one problem with the system log in the admin area of OTRS: For each log entry it shows only the first line. If a log entry has several lines (e.g. a "dump" of a Perl datastructure) you get no information about the issue.
Thanks for the hints, I was using my own file, but I changed to because I was not getting anything in the syslog.
At least I now know the webinterface has less info than the console.
OTRS 6.0.x on CentOS 7 with a PostgreSQL database.
Locked