LinuxQuestions.org
Review your favorite Linux distribution.
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-19-2015, 03:59 AM   #1
byran cheung
Member
 
Registered: Sep 2013
Posts: 321

Rep: Reputation: Disabled
export system log


I know there is /var/log/messages for looging the system error , as we have many servers , and some data in the log is duplicated , it seems time consuming to check regularly , is there any way to extract the important error from the log rather than check it frequently ?

thanks
 
Old 01-19-2015, 04:21 AM   #2
descendant_command
Senior Member
 
Registered: Mar 2012
Posts: 1,479

Rep: Reputation: 388Reputation: 388Reputation: 388Reputation: 388
logwatch

or tail & grep etc.

or multitail

depends what you want...

Last edited by descendant_command; 01-19-2015 at 04:28 AM.
 
1 members found this post helpful.
Old 01-19-2015, 08:05 AM   #3
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 9,349

Rep: Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748
Probably I misunderstood, but you will never be sure what will be logged, so you cannot filter important messages before they arrived. Most of those messages will only important in case of a trouble. If you have a lot of annoying messages you may try to lower the log levels of specific applications/daemons.
 
Old 01-19-2015, 08:37 AM   #4
Habitual
LQ Addict
 
Registered: Jan 2011
Posts: 8,348
Blog Entries: 11

Rep: Reputation: 2327Reputation: 2327Reputation: 2327Reputation: 2327Reputation: 2327Reputation: 2327Reputation: 2327Reputation: 2327Reputation: 2327Reputation: 2327Reputation: 2327
Well, if you're as worn out as I am from visiting 25 machines to grep|awk|sed|tail all the logs, you could implement an Elasticsearch+Logstash+Kibana (ELK) solution and just read them all in one place.

I forward only key files to a central server using rsyslog and use ELK to 'read' them on that same host.

How To Use Logstash and Kibana To Centralize Logs On Ubuntu 14.04 or
How To Use Logstash and Kibana To Centralize Logs On CentOS 7 or
How To Use Logstash and Kibana To Centralize Logs On CentOS 6

logstash.net
http://www.elasticsearch.org/
http://www.elasticsearch.org/overview/kibana/
http://www.rsyslog.com/

Now, I suppose "important" is left to interpretation.
 
Old 01-22-2015, 10:41 PM   #5
byran cheung
Member
 
Registered: Sep 2013
Posts: 321

Original Poster
Rep: Reputation: Disabled
thanks reply ,

there are many methods , I think I can't try all of these , would advise which one is the most common method ? thanks
 
  


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
how to export squid access.log file in readable format? danialnaeem Linux - General 15 05-16-2014 02:52 AM
how to Export squid access log in good excel format?? danialnaeem Linux - General 1 05-14-2014 05:13 AM
[SOLVED] fstab or export options needed to write to an nfs mounted ntfs export chief427 Linux - General 2 07-21-2011 07:07 AM
/var/log file system and monitoring health of system drManhattan Red Hat 7 04-30-2011 05:15 PM


All times are GMT -5. The time now is 01:06 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