LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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-2011, 08:14 PM   #1
pantdk
Member
 
Registered: Oct 2011
Location: New Delhi
Posts: 248
Blog Entries: 3

Rep: Reputation: 17
Syslog-ng,+ rsyslog + logrotation "Need some good configuration example"


Hi All,

Actually i am surfing net for the gd doc or link for log server

based on rsyslog or syslog-ng + log-rotation i found some but
that's confusing so if some one have doc or linke PLZ share
 
Old 11-29-2011, 02:24 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
sharing examples by itself is no use. what do you actually need to achieve, and what specific issues are you facing?
 
Old 11-29-2011, 07:30 AM   #3
pantdk
Member
 
Registered: Oct 2011
Location: New Delhi
Posts: 248

Original Poster
Blog Entries: 3

Rep: Reputation: 17
Hi Chris,

"thanks for reply"
i have to configure a centralized log-server for my 10server "client server". so my need is that i didn't change anything at "configuration" on "client server" side.All configuration has be done at log-server end & that is happen through ssh i think so.in log-server i have 500GB space for the logs.the client server all log came at log-server according to their host-name & with their categorization "messages kernel debug" etc & also i want that through logrotation i want to define the size,backup etc, after one month older bk deleted.
so as of now i found that syslog-ng & rsyslog is a good option for that, now i just found a link for rsyslog & current i am working on it.

Last edited by pantdk; 11-29-2011 at 07:34 AM.
 
Old 12-01-2011, 03:41 PM   #4
agentbuzz
Member
 
Registered: Oct 2010
Location: Texas
Distribution: Debian, Ubuntu, CentOS, RHEL
Posts: 131

Rep: Reputation: 25
On your syslog host, here are the lines that must exist in syslog.conf in order to enable reception of messages over UDP.
Code:
[host]# grep -A 2 Provides.UDP /etc/rsyslog.conf
# Provides UDP syslog reception
$ModLoad imudp.so
$UDPServerRun 514
Also in syslog.conf on the syslog server, you should specify the facility, severity, and log location for messages from the client hosts as follows. This is done so that you will have a single source of messages from client hosts to look through, instead of having the clients' messages mixed in with those sent by the local host

Code:
# Other Hosts logs
local6.*                                  /var/log/yourhosts/syslog.log
Your /etc/logrotate.d/syslog should be changed on the syslog host to look like the following. This ensures that the hosts' logs are properly rotated and compressed, and that enough historical log data is retained for forensic purposes.
Code:
/var/log/messages /var/log/secure /var/log/maillog /var/log/spooler /var/log/boot.log /var/log/cron /var/log/yourhosts/syslog.log {
    daily
    missingok
    rotate 26
    compress
    sharedscripts
    postrotate
        /bin/kill -HUP `cat /var/run/syslogd.pid 2> /dev/null` 2> /dev/null || true
    Endscript	}
 
Old 12-01-2011, 04:45 PM   #5
pantdk
Member
 
Registered: Oct 2011
Location: New Delhi
Posts: 248

Original Poster
Blog Entries: 3

Rep: Reputation: 17
Hi agentbuzz,
Thanks for support
i am looking for the tools which organized my client server logs in a particular LOG-Server so I try syslog-ng & that work correctly right now
 
Old 12-02-2011, 03:24 AM   #6
pantdk
Member
 
Registered: Oct 2011
Location: New Delhi
Posts: 248

Original Poster
Blog Entries: 3

Rep: Reputation: 17
Hi

Now i have made a syslog-ng server which works perfectly
 
  


Reply



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 configure for forwarding "sudo" syslog events in user specified file? nagendrar Linux - Newbie 3 10-27-2011 04:55 AM
What version of syslog generates "last message received x times" messages? invalid entry Red Hat 2 11-18-2009 08:39 AM
Looking for good or best "multi-thread" or "multiple download" download manger. brjoon1021 Linux - Software 1 09-25-2008 03:26 PM
Help with certtool (gnutls) "info on invalid cert" error for rsyslog abefroman Linux - Software 0 06-18-2008 03:34 PM
"Call Trace" messages, change syslog level? robe Linux - General 0 06-08-2004 10:05 AM

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

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