Discussion:
[rsyslog] Error during config processing: STOP is followed by unreachable statements
Saint Germain
2016-09-22 09:17:52 UTC
Permalink
Hello,

I am using rsyslog 8.16 on Debian Jessie (package is coming from
backports) and I have trouble filtering my logs.

I wanted to filter out the following logs in /var/log/syslog:
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

But each time I start rsyslog I got the following message:
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.
Saint Germain
2016-10-27 11:24:07 UTC
Permalink
Hello,

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 !
Post by Saint Germain
Hello,
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.
: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.
Rainer Gerhards
2016-10-27 11:27:06 UTC
Permalink
You have stop twice.

Sent from phone, thus brief.
Post by Saint Germain
Hello,
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 !
Post by Saint Germain
Hello,
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.
: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.
Saint Germain
2016-10-27 15:57:43 UTC
Permalink
I 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 Gerhards
You have stop twice.
Sent from phone, thus brief.
Post by Saint Germain
Hello,
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 Germain
Hello,
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.
: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.
David Lang
2016-10-27 18:35:27 UTC
Permalink
looking at your original, another way of viewing it is:

: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 Germain
I 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 Gerhards
You have stop twice.
Sent from phone, thus brief.
Post by Saint Germain
Hello,
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 Germain
Hello,
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.
: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.
Saint Germain
2016-10-27 18:44:25 UTC
Permalink
Hum when I enter exactly that, I got again:
rsyslogd-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 Germain
I 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 Gerhards
You have stop twice.
Sent from phone, thus brief.
Post by Saint Germain
Hello,
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 Germain
Hello,
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.
Saint Germain
2016-11-02 11:46:58 UTC
Permalink
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 Germain
rsyslogd-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 Germain
I 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 Gerhards
You have stop twice.
Sent from phone, thus brief.
Am 27.10.2016 1:24 PM schrieb "Saint Germain"
Post by Saint Germain
Hello,
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 Germain
Hello,
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.
David Lang
2016-11-02 11:49:10 UTC
Permalink
what are you trying to do?

In your original statements you had two stop statements right after each other,
why?

David Lang
Date: Wed, 2 Nov 2016 12:46:58 +0100
Subject: Re: [rsyslog] Error during config 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 Germain
rsyslogd-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 Germain
I 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 Gerhards
You have stop twice.
Sent from phone, thus brief.
Am 27.10.2016 1:24 PM schrieb "Saint Germain"
Post by Saint Germain
Hello,
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 Germain
Hello,
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.
_______________________________________________
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.
Scot Kreienkamp
2016-11-02 13:00:31 UTC
Permalink
He 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.


This was what you had written:
: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 that already has stop in it. So this is basically what you wrote:

: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 | | Mobile: 7349151444 | Email: ***@la-z-boy.com
-----Original Message-----
From: rsyslog-***@lists.adiscon.com [mailto:rsyslog-***@lists.adiscon.com] On Behalf Of Saint Germain
Sent: Wednesday, November 2, 2016 7:47 AM
To: ***@lists.adiscon.com
Subject: Re: [rsyslog] Error during config 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 Germain
rsyslogd-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 Germain
I 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 Gerhards
You have stop twice.
Sent from phone, thus brief.
Am 27.10.2016 1:24 PM schrieb "Saint Germain"
Post by Saint Germain
Hello,
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 Germain
Hello,
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.
Saint Germain
2016-11-02 13:59:04 UTC
Permalink
Oh right, now it makes sense and I have understood my mistake.
Thanks to you and David Lang !

On Wed, 2 Nov 2016 13:00:31 +0000, Scot Kreienkamp
Post by Scot Kreienkamp
He 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 Germain
rsyslogd-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 Germain
I 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 Gerhards
You have stop twice.
Sent from phone, thus brief.
Am 27.10.2016 1:24 PM schrieb "Saint Germain"
Post by Saint Germain
Hello,
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 Germain
Hello,
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.
_______________________________________________
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.
Loading...