Skip to content

Syslog identifier should be something other than "Email" #411

@fangebee

Description

@fangebee

Hi, first let me thank you for this lifesaving project!
I've successfully deployed a headless server that allows old printers to continue functioning without trouble.

I've created a simple systemd unit file and it works fine too.

But, then, while trying to duplicate logs from journalctl to a dedicated plain log file in /var/log/emailproxy.log (we still love old stuff around here :) ) I struggled to craft the correct rsyslog configuration.

I was hoping I could use the following simple /etc/rsyslog.d/emailproxy.conf configuration file:

:programname, isequal, "emailproxy" -/var/log/emailproxy.log
& stop

But not luck :(
Looks like rsyslog considers that the programname is "Email" because every log line starts with "Email OAuth 2.0 Proxy: ...". Therefore, the following configuration works:

:programname, isequal, "Email" -/var/log/emailproxy.log
& stop

It works, but it's not really satisfactory.

Maybe I'm doing something wrong, but for now I've patched the code to make sure the first word is "emailproxy".

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions