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
Reading OTRS logs on CentOS
Moderator: crythias
-
- 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
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
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
-
- 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
Thanks reneeb - very usefulreneeb wrote:You can watch the syslog withCode: Select all
less +F /var/log/messages

Re: Reading OTRS logs on CentOS
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.
-
- 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
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.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.
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
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
Re: Reading OTRS logs on CentOS
Thanks for the hints, I was using my own file, but I changed to because I was not getting anything in the syslog.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.
At least I now know the webinterface has less info than the console.
OTRS 6.0.x on CentOS 7 with a PostgreSQL database.