Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rsyslogd filters based on $programname #93

Open
davidchappelle opened this issue Jan 3, 2018 · 1 comment
Open

rsyslogd filters based on $programname #93

davidchappelle opened this issue Jan 3, 2018 · 1 comment

Comments

@davidchappelle
Copy link

davidchappelle commented Jan 3, 2018

This rule is never successfully matched because winston-syslog does not produce a valid format that can be filtered by program name:

/etc/rsyslog.d/01-app.conf

if $programname == 'app' then {
    action(type="omfile" file="/var/log/app.log")
    ~ stop
}

Here is an example log message showing up in /var/log/syslog that is not being properly filtered. Note the extraneous localhost. I am pretty sure that this is what is screwing things up.

Jan  3 19:54:29 tegra-ubuntu localhost app[30934]: info: interface-proxy.js: Updating the interface proxy
@ZimGil
Copy link

ZimGil commented Jan 28, 2020

I just ran into this as well...
There must be a way to omit this.

Passing localhost: '' or locahost: null won't work.

EDIT:

Sorry, passing localhost: '' or localhost: null does work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants