-
Notifications
You must be signed in to change notification settings - Fork 200
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rsyslog: modern name for the discard action ("stop") is not recognized #794
Comments
@lersek could you craft a patch yourself? |
@igalic The code change does not look complicated (just add an alternative to Another issue I've had with testing previously is that some of the augeas error messages are completely incomprehensible. Sometimes there are complaints about the lens modification (even before reaching a test file), and they make no sense. One looks into the C source files then... and those make even less sense; they are impenetrable. I understand parsing theory is complex (I've done my fair share in it), but the code lacks comments, variable names are useless, etc. In short: I can try the patch myself, but I will need serious hand-holding. For starters, can you please tell me how I can test the change in the easiest possible way, without having to create a brand new test scenario (and/or hacking an existent one)? Thanks. |
For example, with this patch committed on top of current master:
I'd expect
but it's not taking effect (presumably augeas just parses this directive, but does nothing with it; i.e., it doesn't actually implement inclusion). How do I make |
Regarding the rsyslog config snippet in #794 (comment), there are two issues in fact: (1) The multi-action parsing from commit 5181105 / #653 cannot deal with comments and newlines embedded in the action list. The In other words, the following file (as
producing
but the following (i.e., with the comments/newlines added back in) leads to a parse error:
(2) Even if I remove the empty lines and comments from within the multi-action list (
and extend the
the desired
The rules need to be overhauled more deeply for addressing both issues than what I can do. |
rsyslog deprecated the legacy name for the discard action, namely the tilde sign
~
, in commit rsyslog/rsyslog@2ae9e456db899, in favor of the RainerScript directivestop
.cloud-init made use of the new directive in commit canonical/cloud-init@b613de733fa7.
At commit 4f3bbeb, augeas relies on
Syslog.action
for recognizing the discard action, but the latter does not understandstop
yet, it only understands the legacy directive.Please consider recognizing
stop
. Thanks.Reference: https://bugzilla.redhat.com/show_bug.cgi?id=2155147
The text was updated successfully, but these errors were encountered: