[rsyslog] Equivalent omfile action to a file prefixed by '-'?

2022-09-29 Thread Gordon Marler (BLOOMBERG/ 120 PARK) via rsyslog
In the old style of rsyslog configuration, you can say that you want to buffer a file, rather than flush it after every write, with syntax like this (prefixing the filename with '-'): local4.info -/var/log/mylog Reading the documentation of the omfile Output Module, I don't see an exact

Re: [rsyslog] Equivalent omfile action to a file prefixed by '-'?

2022-09-29 Thread Gordon Marler (BLOOMBERG/ 120 PARK) via rsyslog
om phone, thus brief. > > John Chivian via rsyslog schrieb am Do., 29. > Sep. 2022, 23:25: > >> If I am not mistaken, buffering is the default in the new syntax such that >> it is not necessary to state it explicitly. The maintainers will know for >> sure. >

[rsyslog] Reducing selector effect in RainerScript

2022-11-01 Thread Gordon Marler (BLOOMBERG/ 120 PARK) via rsyslog
I'm porting some configurations from syslog to rsyslog, and seeing some unexpected selector behavior in rsyslog 8.2104 After reading the selector examples from the configuration portion of the rsyslog manual, I'm either misunderstanding how this is supposed to work, or there's a long standing i

Re: [rsyslog] Reducing selector effect in RainerScript

2022-11-02 Thread Gordon Marler (BLOOMBERG/ 120 PARK) via rsyslog
x27;t cause any side effects. You could add a "stop" directive to make sure that events matching your selector won't be processed further. Like: *.debug;local6.err { action( type="omfile" file="/what/ever/file") stop } On 2.11.2022 01:26, Gordon Mar

Re: [rsyslog] Reducing selector effect in RainerScript

2022-11-02 Thread Gordon Marler (BLOOMBERG/ 120 PARK) via rsyslog
you please confirm that this still happens on the current > version of rsyslog? > > David Lang > > On Wed, 2 Nov 2022, Gordon Marler (BLOOMBERG/ 120 PARK) via rsyslog wrote: > > > Date: Wed, 2 Nov 2022 19:01:22 -0000 > > From: "Gordon Marler (BLOOMBERG/ 120 P

Re: [rsyslog] Reducing selector effect in RainerScript

2022-11-02 Thread Gordon Marler (BLOOMBERG/ 120 PARK) via rsyslog
*.debug;local6.!=info > On Nov 2, 2022, at 14:27, Gordon Marler (BLOOMBERG/ 120 PARK) via rsyslog > wrote: > > So, what would be the correct way to start with *.debug, then reduce to > priority .err and higher for particular facilities, like local6? > > From: rsyslog@li

Re: [rsyslog] Reducing selector effect in RainerScript

2022-11-03 Thread Gordon Marler (BLOOMBERG/ 120 PARK) via rsyslog
> need rewording if it works differently. >>>> >>>> MK >>>> >>>> On 2.11.2022 20:18, Rainer Gerhards via rsyslog wrote: >>>>> Info is higher severity than debug, so it validly matches. >>>>> >>>>> Sent fro

Re: [rsyslog] Reducing selector effect in RainerScript

2022-11-18 Thread Gordon Marler (BLOOMBERG/ 120 PARK) via rsyslog
l/994 Rainer El jue, 3 nov 2022 a las 16:43, Gordon Marler (BLOOMBERG/ 120 PARK) via rsyslog () escribió: > > Perfectly fine with a doc fix; we're converting from syslog selectors that predate the 2000s (probably from around 1984 or so). > > So I'm still left with the questi

[rsyslog] How to eliminate Solaris specific msg ID

2023-01-30 Thread Gordon Marler (BLOOMBERG/ 120 PARK) via rsyslog
Noticing that all messages logged from Solaris rsyslog clients have a field in all messages that rsyslog on AIX and Linux don't have: Jan 30 12:12:16 nydevsol10 root: [ID 702911 user.info] This is a test ^ I tried to see where that fie

[rsyslog] How to eliminate Solaris specific msg ID

2023-01-31 Thread Gordon Marler (BLOOMBERG/ 120 PARK) via rsyslog
Follow up: This field is prepended to all messages sent through the log(4D) device on Solaris, as documented in the syslogd(8) and log(4D) man pages, before they hit rsyslogd. However, I'll work on using rsyslogd's property replacer mechanism to modify the %msg property to remove this field vi

Re: [rsyslog] How to eliminate Solaris specific msg ID

2023-02-01 Thread Gordon Marler (BLOOMBERG/ 120 PARK) via rsyslog
this. Or you could run rsyslog on solaris instead of it's syslog daemon and avoid the problem that way :-) David Lang On Tue, 31 Jan 2023, Gordon Marler (BLOOMBERG/ 120 PARK) via rsyslog wrote: > Follow up: > > This field is prepended to all messages sent through the log(4D) device