Metalog like behaviour

This is the place for you, if you got rsyslog up and running but wonder how to make it do what you want.

Moderator: rgerhards

Metalog like behaviour

Postby ruskie on Tue Jun 17, 2008 7:58 am

Hi,

I'm thinking of moving to rsyslog from metalog(mainly because metalog seems to be unmainatend and has no network logging support).

But the one feature of metalog I really like is how it logs:

/var/log/$DIRECTORY/current
for the current log file and then it autorotates based on filesize and/or duration(i.e. after 24h) into
/var/log/$DIRECTORY/log-$DATE

Is that possible with rsyslog?

Thanks...
ruskie
New
 
Posts: 5
Joined: Tue Jun 17, 2008 7:54 am

Professional Services Information

  • Custom written rsyslog.conf?
  • Maintenance Contract?
  • Installation support?

Re: Metalog like behaviour

Postby rgerhards on Tue Jun 17, 2008 12:34 pm

Hmmm... that's not directly possible. I've cooking something along these lines, but, unfortunately, this is not ready yet. If you don't need a dynamic part inside the file name, you can use outchannels:

http://www.rsyslog.com/doc-log_rotation_fix_size.html

Rainer
User avatar
rgerhards
Site Admin
 
Posts: 1780
Joined: Thu Feb 13, 2003 11:57 am

Re: Metalog like behaviour

Postby ruskie on Tue Jun 17, 2008 12:45 pm

Yeah saw that... I guess it should work... The only dynamic part I would need is for a syslog server to split stuff per hosts...
ruskie
New
 
Posts: 5
Joined: Tue Jun 17, 2008 7:54 am

Re: Metalog like behaviour

Postby rgerhards on Tue Jun 17, 2008 12:51 pm

If it is just a couple of hosts, you could go away with the bsd-style host blocks:

+host1
*.* ...

+host2
.
.
.

Rainer
User avatar
rgerhards
Site Admin
 
Posts: 1780
Joined: Thu Feb 13, 2003 11:57 am

Re: Metalog like behaviour

Postby ruskie on Tue Jun 17, 2008 1:02 pm

Yeah not that many... 2 always ons(and maybe some xen domUs in a while) and a few here and there... But also thinking this for work but the numbers don't change much...
ruskie
New
 
Posts: 5
Joined: Tue Jun 17, 2008 7:54 am

Re: Metalog like behaviour

Postby ruskie on Tue Jun 17, 2008 3:16 pm

Hmm how about having a symlink latest to current? Or would still out channels be required?
ruskie
New
 
Posts: 5
Joined: Tue Jun 17, 2008 7:54 am

Google Ads



Return to Configuration

Who is online

Users browsing this forum: No registered users and 0 guests

cron