Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I'm using the imuxsock module to listen to additional local log sockets (i.e., with the $AddUnixListenSocket directive).

After reading the awesome http://www.rsyslog.com/doc/multi_ruleset.html page, I'm interested in binding separate rulesets to each socket. That page gives the example of binding a ruleset to a particular tcp port (i.e., using the imtcp module & it's $InputTCPServerBindRuleset directive), but according to that page:

Note that the input module must support binding to non-standard rulesets, so the functionality may not be available with all inputs.

I haven't been able to find any documentation on how to do the same with imuxsock. Is the feature there, but undocumented? Or is there some other way to accomplish the same (applying X rules to messages from X socket and Y rules to messages from Y socket)?

share|improve this question

1 Answer 1

I was looking for the same thing, and I couldn't find it. And I assume it's just not supported. Here's a comment from the source code.

/* we do not use this, because we do not bind to a ruleset so far * enable when this is changed: #include "im-helper.h" / / must be included AFTER the type definitions! */

I assume it can be implemented. You can either contribute a patch or pay the guys at Adiscon to do it.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.