template 'each day new log file'

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

Google Ads


template 'each day new log file'

Postby ant_py » Fri Dec 15, 2017 5:03 pm

Hi,

how can I make a template that makes every day a new file with msg's from a certain device?

thnx
ant_py
New
 
Posts: 1
Joined: Fri Dec 15, 2017 4:47 pm

Urgent Question?

  • Pulling out your Hair?
  • Wasting Time and Money?
  • Deadline Approaching?

Re: template 'each day new log file'

Postby deoren » Wed Dec 20, 2017 7:21 am

ant_py wrote:how can I make a template that makes every day a new file with msg's from a certain device?


When you say "a certain device", do you mean you only want to apply the template just to messages from that one device or are you saying that you want to use a template to sort messages out to different logs based on the sending device name or IP Address? Could you give some pseudo-code to demonstrate your goal?

What version of rsyslog are you using?
deoren
New
 
Posts: 3
Joined: Wed Dec 13, 2017 6:49 am

Google Ads



Return to Configuration

Who is online

Users browsing this forum: No registered users and 0 guests

cron