LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-27-2009, 09:32 AM   #1
hotspot
LQ Newbie
 
Registered: Jan 2009
Posts: 4

Rep: Reputation: 0
Question Where to find system logs?


Hi,

Is there exist any linux OS logs, that could be useful for me while finding out what went wrong on software process level, what is/went wrong on the OS drivers level, especially regarding the network drivers, and so on.

The reason for this question is that I am running a Java application inside Tomcat, and there are some problems I experience from time to time, like JVM processes or threads hangs/freezes, JVM process abnormal terminations and others.

The command cat /proc/version returned following result:
Linux version 2.6.9-42.ELsmp (bhcompile@hs20-bc1-1.build.redhat.com) (gcc version 3.4.6 20060404 (Red Hat 3.4.6-2)) #1 SMP Wed Jul 12 23:27:17 EDT 2006
So I guess it is Red Hat system I am talking about (yes, this is remote third-party server with limited information and access right for me, but I can requested the needed logs).
 
Old 01-27-2009, 09:47 AM   #2
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
They should be all in /var/log. If you don't have root privileges you cannot read their content on a Red Hat system. Anyway, as soon as an error comes out you can do a list of the files in /var/log sorted by time, so you can see which is the last modified log file and do a specific request to the administrator:
Code:
ls -lrt /var/log
form this command the file at the bottom of the list has the most recent modification time. If there is some error message, most likely it will be in it.
 
Old 01-27-2009, 03:38 PM   #3
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,923
Blog Entries: 44

Rep: Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158
Hi,

As stated you can look at '/var/log' to get logged messages. You can look at the kernel ring buffer with 'dmesg'. This can be very helpful while diagnosing problems.

Code:
sample;

# ls /var/log
Xorg.0.log      cron.1   debug.3  maillog.1   messages.4         secure     spooler.2  uucp/
Xorg.0.log.old  cron.2   debug.4  maillog.2   nfsd/              secure.1   spooler.3  wtmp
Xorg.1.log      cron.3   dmesg    maillog.3   packages/          secure.2   spooler.4  wtmp.1
Xorg.1.log.old  cron.4   faillog  maillog.4   removed_packages/  secure.3   syslog
acpid           cups/    httpd/   messages    removed_scripts/   secure.4   syslog.1
btmp            debug    iptraf/  messages.1  sa/                setup/     syslog.2
btmp.1          debug.1  lastlog  messages.2  samba/             spooler    syslog.3
cron            debug.2  maillog  messages.3  scripts/           spooler.1  syslog.4
 
Old 02-22-2009, 06:42 PM   #4
palisetty_suman
Member
 
Registered: Feb 2007
Location: TX, USA
Distribution: fedora
Posts: 191

Rep: Reputation: 33
Thumbs up hi

Hi first of all to see the log messages u have to be the root.

then type command

cd /var/log

then u will be shown the output as in the one sir shown.

Then to see the output of particular service u have to use cat

eg: cat messages ..etc

All the Best.
 
Old 02-22-2009, 08:31 PM   #5
gergely89
Member
 
Registered: Feb 2009
Posts: 100

Rep: Reputation: 21
I am not sure if a Java application inside Tomcat will provide enough information into the /var/log located log-files, at least not for proper debugging. You also have to consider that for lengthy operations (I don't know what your Java app is doing) time-outs can occur. Web servers, especially on mass-hosting installments, are likely to kill slave processes after some amount of time.

linux

Last edited by gergely89; 02-27-2009 at 10:44 PM.
 
Old 04-26-2019, 06:07 PM   #6
hotspot
LQ Newbie
 
Registered: Jan 2009
Posts: 4

Original Poster
Rep: Reputation: 0
Better late than never : )

Thank you all for your help!
 
  


Reply

Tags
logs


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
qmail can't find my logs :) OTIM Linux - Server 2 12-05-2007 02:27 PM
Where can i find the logs for Ftp? ZAMO Linux - Server 2 07-09-2007 05:12 AM
Where I can find firewall logs? Vie Linux - Software 3 02-07-2006 12:15 AM
Logs: What to check and where to find them? Swakoo Linux - General 2 01-12-2006 03:35 AM
where to find improper shutdown logs linylion Linux - General 4 09-07-2004 11:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:41 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration