Differing log levels when forwarding to multiple servers

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


Differing log levels when forwarding to multiple servers

Postby stephan » Wed Aug 02, 2017 11:38 pm

I've need of sending log messages of differing levels to two separate servers from the same source host. I've noticed in the documentation that multiple servers are supported but from the example I'm not exactly clear that the log levels can be different. It stands to reason that if there are separate queues that the log levels could function independent of each other. However, I'm not really in a position to chance that. Would such a configuration be in scope of the abilities of a single rsyslog instance?

Here's the example config that was mentioned:
'''
$ModLoad imuxsock # local message reception
$WorkDirectory /rsyslog/work # default location for work (spool) files

# start forwarding rule 1
$ActionQueueType LinkedList # use asynchronous processing
$ActionQueueFileName srvrfwd1 # set file name, also enables disk mode
$ActionResumeRetryCount -1 # infinite retries on insert failure
$ActionQueueSaveOnShutdown on # save in-memory data if rsyslog shuts down
*.* @@server1:port
# end forwarding rule 1

# start forwarding rule 2
$ActionQueueType LinkedList # use asynchronous processing
$ActionQueueFileName srvrfwd2 # set file name, also enables disk mode
$ActionResumeRetryCount -1 # infinite retries on insert failure
$ActionQueueSaveOnShutdown on # save in-memory data if rsyslog shuts down
*.* @@server2
# end forwarding rule 2
'''

Regards. And thanks in advance for your insight!
stephan
New
 
Posts: 1
Joined: Wed Aug 02, 2017 11:24 pm

Urgent Question?

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

Google Ads


Return to Configuration

Who is online

Users browsing this forum: No registered users and 3 guests

cron