Single diskbased queue for multiple imfile inputs

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


Single diskbased queue for multiple imfile inputs

Postby blingblong » Thu Jul 13, 2017 3:30 pm

I have a single diskbased LinkedList queue defined in a ruleset action used for multiple imfile inputs. This actually seems to work fine but I've never seen it done like this before - the examples I have seen online for multiple imfile inputs seem to specify their own explicit filename for a diskbased queue.

* That said - Is this configuration sound? (again, this seems to work fine for me but I want to make sure the approach is recommended!)

Code: Select all
module(load="imfile")
global(WorkDirectory="/var/spool/rsyslog")

ruleset(name="forward"){
    action(type="omfwd"
        target="logs.example.com"
        port="601" protocol="tcp"
        queue.type="LinkedList"
        queue.filename="srvrfwdQueue"
        queue.saveonshutdown="on"
        action.resumeRetryCount="-1")
}

input(type="imfile"
    file="/var/log/icecast/error.log"
    tag="icecast-error"
    ruleset="forward")

input(type="imfile"
    file="/var/log/icecast/access.log"
    tag="icecast-access"
    ruleset="forward")

blingblong
New
 
Posts: 1
Joined: Thu Jul 13, 2017 3:10 pm

Urgent Question?

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

Re: Single diskbased queue for multiple imfile inputs

Postby dlang » Fri Jul 14, 2017 12:04 am

no reason it wouldn't work.
dlang
Frequent Poster
 
Posts: 1001
Joined: Mon Sep 15, 2008 7:44 am

Google Ads



Return to Configuration

Who is online

Users browsing this forum: No registered users and 2 guests