Hi Jiri,
Jiri B wrote on Sun, Feb 03, 2019 at 02:04:39AM +0100:
> I was playing a little bit with !progname in syslog.conf and it does
> not match pattern if there is "/",
Right, as was recently documented in syslog.conf(5):
If a received message matches the specified facility and is of the
specified level (or a higher level), and the first word in the message
after the date matches the program, the action specified in the action
field will be taken. In this context, ascii(7) letters, digits, hyphens
('-'), periods ('.'), and underscores ('_') can be contained in a word;
other bytes end the word.
The reason for being restrictive in what the word can contain is that
the word needs to be parsed from the message, and allowing too many
characters might cause the word to run away into the message text.
I don't think we want to allow slashes.
Not sure what you are testing, though, you appear to start the
syslogd(8) *after* sending the messages with the logger(1).
Yours,
Ingo