Oh right, now it makes sense and I have understood my mistake.
Post by Scot KreienkampHe wasn't trying to give you syntax, he was trying to help you
understand what you had written by rewriting it so it was easier to
understand.
:msg, startswith, "Failed to reset devices.list" stop
& stop
You already have a stop after your msg line, then on the next line
you tell it to stop again after the previous line (the ampersand
appends whatever is on that line to the previous line). That's why
rsyslog is complaining, because the second stop can never be reached
because you already have a stop on the previous line. You're telling
it to stop twice on the same line by using the ampersand after a line
:msg, startswith, "Failed to reset devices.list" stop stop
The second stop is unnecessary, so rsyslog complains about it.
Scot Kreienkamp | Senior Systems Engineer | La-Z-Boy Corporate
One La-Z-Boy Drive | Monroe, Michigan 48162 | Office: 734-384-6403
| | -----Original Message-----
processing: STOP is followed by unreachable statements
Hello agan,
Sorry to bother the mailing-list again, but I really don't understand
what I should put as filter rules.
The syntax provided by David Lang doesn't work unfortunately.
Thanks
Post by Saint Germainrsyslogd-2207: error during config processing: STOP is followed by
unreachable statements! [v8.16.0 try http://www.rsyslog.com/e/2207 ]
Post by Saint Germain:msg, startswith, "Starting Cleanup" stop
:msg, startswith, "Started Cleanup" stop
:msg, startswith, "Failed to reset devices.list" {
stop
stop
}
it was the last stop that it was complaining about.
David Lang
Post by Saint GermainI have removed all the stop except the one on the last line and
it seems to work.
Thanks a lot !
On Thu, 27 Oct 2016 13:27:06 +0200, Rainer Gerhards
Post by Rainer GerhardsYou have stop twice.
Sent from phone, thus brief.
Am 27.10.2016 1:24 PM schrieb "Saint Germain"
Post by Saint GermainHello,
Perhaps is my previous message gone in the spam folders ?
Can someone give me some hints on how to solve the problem
described below ?
Thanks in advance !
On Thu, 22 Sep 2016 11:17:52 +0200, Saint Germain
Post by Saint GermainHello,
I am using rsyslog 8.16 on Debian Jessie (package is coming
from backports) and I have trouble filtering my logs.
systemd[1]: Starting Cleanup of Temporary Directories...
systemd[1]: Failed to reset devices.list
on /system.slice/systemd-tmpfiles-clean.service: No such file
or directory systemd[1]: Started Cleanup of Temporary
Directories.
I have create a file with the following content
in /etc/rsyslog.d: :msg, startswith, "Starting Cleanup" stop
:msg, startswith, "Started Cleanup" stop
:msg, startswith, "Failed to reset devices.list" stop
& stop
rsyslogd-2207: error during config processing: STOP is
followed by unreachable statements! [v8.16.0 try
http://www.rsyslog.com/e/2207 ]
I don't understand what I am doing wrong.
Perhaps someone can point me to the mistake ?
Thanks
_______________________________________________
rsyslog mailing list
http://lists.adiscon.net/mailman/listinfo/rsyslog
http://www.rsyslog.com/professional-services/
What's up with rsyslog? Follow https://twitter.com/rgerhards
NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED
by a myriad of sites beyond our control. PLEASE UNSUBSCRIBE
and DO NOT POST if you DON'T LIKE THAT.
_______________________________________________
rsyslog mailing list
http://lists.adiscon.net/mailman/listinfo/rsyslog
http://www.rsyslog.com/professional-services/
What's up with rsyslog? Follow https://twitter.com/rgerhards
NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED
by a myriad of sites beyond our control. PLEASE UNSUBSCRIBE
and DO NOT POST if you DON'T LIKE THAT.
_______________________________________________
rsyslog mailing list
http://lists.adiscon.net/mailman/listinfo/rsyslog
http://www.rsyslog.com/professional-services/
What's up with rsyslog? Follow https://twitter.com/rgerhards
NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED by
a myriad of sites beyond our control. PLEASE UNSUBSCRIBE and DO
NOT POST if you DON'T LIKE THAT.
_______________________________________________
rsyslog mailing list
http://lists.adiscon.net/mailman/listinfo/rsyslog
http://www.rsyslog.com/professional-services/
What's up with rsyslog? Follow https://twitter.com/rgerhards
NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED by a
myriad of sites beyond our control. PLEASE UNSUBSCRIBE and DO NOT
POST if you DON'T LIKE THAT.
_______________________________________________
rsyslog mailing list
http://lists.adiscon.net/mailman/listinfo/rsyslog
http://www.rsyslog.com/professional-services/
What's up with rsyslog? Follow https://twitter.com/rgerhards
NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED by a
myriad of sites beyond our control. PLEASE UNSUBSCRIBE and DO NOT
POST if you DON'T LIKE THAT.
This message is intended only for the individual or entity to which
it is addressed. It may contain privileged, confidential information
which is exempt from disclosure under applicable laws. If you are
not the intended recipient, you are strictly prohibited from
disseminating or distributing this information (other than to the
intended recipient) or copying this information. If you have
received this communication in error, please notify us immediately by
e-mail or by telephone at the above number. Thank you.
_______________________________________________ rsyslog mailing list
http://lists.adiscon.net/mailman/listinfo/rsyslog
http://www.rsyslog.com/professional-services/ What's up with rsyslog?
Follow https://twitter.com/rgerhards NOTE WELL: This is a PUBLIC
mailing list, posts are ARCHIVED by a myriad of sites beyond our
control. PLEASE UNSUBSCRIBE and DO NOT POST if you DON'T LIKE THAT.
NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED by a myriad of sites beyond our control. PLEASE UNSUBSCRIBE and DO NOT POST if you DON'T LIKE THAT.