LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 11-28-2012, 04:11 PM   #1
batfastad
Member
 
Registered: Nov 2004
Location: London, UK
Distribution: CentOS, RHEL, Debian, IPCop, PS2Linux
Posts: 95

Rep: Reputation: 23
Question CentOS centralised logging, syslogd, rsyslog, syslog-ng, logstash sender?


Hi everyone

I'm trying to figure out the best way to setup a central place to store and interrogate server logs, using CentOS 5.x. syslog, Apache, MySQL etc all in one place.

I've found a few different options but I'm not sure what's best. I'm looking for something that is easy to install and keep updated on many virtual machines. I can add it to a VM template going forward but I'd also like it to be light, easy to install so I can keep the VM complexity down.

The options I've found so far are:
  • syslogd
  • syslog-ng
  • rsyslog
  • syslogd/syslog-ng/rsyslog to logstash/ElasticSearch
  • logstash agent in each log "client" to send to Redis/logstash/ElasticSearch

And all sorts of permutations of the above.

What's the most resilient and light from the log "client" perspective?
I'd like to avoid the situation where log "clients" hang because they are unable to send their logs to the logging server. Also I would still like to keep local logging and the rotation/retention provided by logrotate in place.

Any ideas/suggestions or reasons for or against any of the above?
Or suggestions of a different structure entirely?

Cheers, B
 
Old 11-28-2012, 04:26 PM   #2
custangro
Senior Member
 
Registered: Nov 2006
Location: California
Distribution: Fedora , CentOS , RHEL
Posts: 1,979
Blog Entries: 1

Rep: Reputation: 209Reputation: 209Reputation: 209
rsyslog can do it.

You can set it up to where it "logs locally" if the log server isn't answering.

--C
 
Old 11-28-2012, 04:36 PM   #3
batfastad
Member
 
Registered: Nov 2004
Location: London, UK
Distribution: CentOS, RHEL, Debian, IPCop, PS2Linux
Posts: 95

Original Poster
Rep: Reputation: 23
Yeah, I looked at rsyslog but was concerned about the age of the version in the repos.
I just checked on the version in the CentOS repos, it's 3.22.1-7.el5 which appears to be from 07-2009. I thought it might be older considering the latest stable version seems to be v7.2
I don't really want to be compiling stuff from source on loads of VMs. A yum install I could deal with though.

Having said that, if v3.22 does the job and is included in the CentOS base repo, then that might be the way to go. It wouldn't be included in the CentOS base repo if it didn't work pretty damn well.

Is there nothing of use built-in to CentOS's shipped syslogd or sysklogd or whatever it is (confused)?

If rsyslog is the modern equivalent and recommended way then I'll look into it, sending straight to logstash running on another server.

Cheers, B

Last edited by batfastad; 11-29-2012 at 03:09 AM.
 
Old 11-28-2012, 06:10 PM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
See http://rpms.adiscon.com/v7-stable/, it's got a .repo file as well.
 
Old 11-29-2012, 03:56 AM   #5
batfastad
Member
 
Registered: Nov 2004
Location: London, UK
Distribution: CentOS, RHEL, Debian, IPCop, PS2Linux
Posts: 95

Original Poster
Rep: Reputation: 23
That's brilliant. I wanted to avoid compiling anything from source on the VM template, installing another repo to get the latest rsyslog package is a good solution.

Will give it a go.

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
rsyslog filtering syslog messages sanjose Linux - Newbie 13 11-07-2012 03:08 PM
[SOLVED] Send syslog log to rsyslog server? is possible? JohnV2 Slackware 9 10-13-2011 01:37 PM
[SOLVED] syslog remote logging with rsyslog server Chenchu Linux - Newbie 3 09-17-2011 01:34 PM
*realtime* syslog monitoring/alerting with Rsyslog? TotalDefiance Linux - Software 3 11-01-2005 10:23 AM
syslog via kiwi syslogd Sammy2ooo Linux - Newbie 2 10-10-2003 11:05 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 09:30 AM.

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