Re: Obscure rsyslog question on remote logging

2023-11-17 Thread Chris Adams
Once upon a time, Tom Horsley said: > I found some obscure text about needing to use a $ in front of > system variables and since $myhostname is a system variable > I need to type it as $$myhostname in the condition (I think :-) So an alternate approach that might help... you can assign a ruleset

Re: Obscure rsyslog question on remote logging

2023-11-17 Thread Tom Horsley
On Thu, 16 Nov 2023 20:46:33 -0500 Todd Zullinger wrote: > if ($hostname != $myhostname) then { I tried this just running it through the rsyslogd syntax check (-N1 opt) and it complained about using "myhostname" and asked if I didn't actually mean "$myhostname" :-). The documentation on rsyslog.

Re: Obscure rsyslog question on remote logging

2023-11-16 Thread Tom Horsley
On Thu, 16 Nov 2023 20:46:33 -0500 Todd Zullinger wrote: > I'd probably do this in the newer "advanced" format (AKA > RainerScript) instead of the "obsolete legacy" format. I > believe this would do what you want: I'm just adding a bit to the .conf file that ships with the rpm, and it is using t

Re: Obscure rsyslog question on remote logging

2023-11-16 Thread Roger Heflin
I have seen syslog messages over 4096 chars have the first part go to the right file and the overflow go to the default. Is smart sending a large message? The other file would have a long smart message at the same time and this would be overflow. On Thu, Nov 16, 2023, 6:51 PM Tom Horsley wrote:

Re: Obscure rsyslog question on remote logging

2023-11-16 Thread Todd Zullinger
Tom Horsley wrote: > I've got an old PC running Truenas as a local server for backups, > videos, etc. > > I've got another PC I consider my "main" system running rsyslog. > On this PC I have tried (mostly successfully) to direct remote > syslog messages from the Truenas system to logfiles in a sub

Re: Obscure rsyslog question on remote logging

2023-11-16 Thread Tom Horsley
On Thu, 16 Nov 2023 20:09:26 -0500 Go Canes wrote: > Any chance there is a rule for logging SMART messages that is taking > precedence? A good thing to check. I'll see if I can decrypt the .conf file and figure that out. Thanks. -- ___ users mailing li

Re: Obscure rsyslog question on remote logging

2023-11-16 Thread Go Canes
On Thu, Nov 16, 2023 at 7:51 PM Tom Horsley wrote: > # Log incoming message from remote systems here > $template DynamicFile,"/var/log/loghost/%HOSTNAME%/%syslogfacility-text%.log" > :hostname, contains, "nast" > *.*-?DynamicFile > > Most remote log message do indeed get redirected to the subd

Obscure rsyslog question on remote logging

2023-11-16 Thread Tom Horsley
I've got an old PC running Truenas as a local server for backups, videos, etc. I've got another PC I consider my "main" system running rsyslog. On this PC I have tried (mostly successfully) to direct remote syslog messages from the Truenas system to logfiles in a subdirectory on my main system. Th