LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 10-21-2010, 01:31 AM   #1
crahuldba@gmail.com
Member
 
Registered: Apr 2010
Posts: 52

Rep: Reputation: 2
How to enable system logging in linux


Hello Friends
How to enable system logging in linux. can i check the logfile remotely of another system on same network
Thanks & Regards
Rahul
 
Old 10-21-2010, 01:42 AM   #2
prayag_pjs
Senior Member
 
Registered: Feb 2008
Location: Pune - India
Distribution: Fedora,RedHat,CentOS,Gentoo
Posts: 1,145
Blog Entries: 4

Rep: Reputation: 147Reputation: 147
By default almost all logfiles are located under /var/log directory (and subdirectory). You can change to this directory using cd command but you need to be the root user. You can use less, more, cat or tail command to see the logs.

Go to /var/logs directory:# cd /var/logsView common log file /var/log/messages using any one of the following command:# tail -f /var/log/messages

Quote:
# less /var/log/messages
# more -f /var/log/messages
# tail /var/log/messages
You can set Up A Central Syslog Server, check the logfile remotely of another system on same network, as mentioned in this links:

http://news.softpedia.com/news/Setti...er-44063.shtml

http://news.softpedia.com/news/Setti...er-44063.shtml
 
Old 10-22-2010, 10:25 AM   #3
raviteja_s
Member
 
Registered: Jun 2010
Location: India
Distribution: Redhat
Posts: 68

Rep: Reputation: 1
client side:vim /etc/syslog.conf

write in the bottom

*.* @server ip

Server side : vim /etc/sysconfig/syslog

SYSLOGD_OPTIONS=" -r -m 0"
 
  


Reply


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
enable separate logging for watchdog Buddhike G Linux - Software 1 04-07-2009 05:32 PM
Enable maximum logging on RHEL5 matthias.kretschmer Linux - Newbie 1 02-27-2008 04:10 AM
Enable detailed cron logging? OneBinary Debian 1 01-02-2006 06:56 PM
Howto to enable logging in Knoppix 3.8? bigrigdriver Linux - Software 5 10-05-2005 10:38 PM
Do you enable full sendmail logging? hbt Linux - Software 1 12-19-2004 04:06 PM

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

All times are GMT -5. The time now is 11:53 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration