Why is rsyslog not working right in OMV7?

  • Hey there :)


    i´ve just created a new 7.X RC VM with OMV. All is going quit nice, besides it does not send any Logs to the remote Log-Server (Graylog 4.4).


    Environment: Proxmox => VM (192.168.0.10) => OMV 7 => Docker => Graylog (SYSLOG TCP Input on 192.168.0.10:5140)


    What i´ve done:

    1. I activated remote Logging in the new nice WebUI with the same IP Address (192.168.0.10) TCP at Port 5140.

    2. Checked with tcpdump port 5140 => 0 Packets.

    3. Checked the Conf File:

    Code
    GNU nano 7.2                                                                                     openmediavault-remote.conf
    # This file is auto-generated by openmediavault (https://www.openmediavault.org)
    # WARNING: Do not edit this file, your changes will get lost.
    *.* @@192.168.0.10:5140

    4. Checked systemctl status rsyslog getting:


    Code
    Feb 26 11:03:22 omv-studio-server systemd[1]: Starting rsyslog.service - System Logging Service...
    Feb 26 11:03:22 omv-studio-server rsyslogd[620277]: imuxsock: Acquired UNIX socket '/run/systemd/journal/syslog' (fd 3) from systemd.  [v8.2302.0]
    Feb 26 11:03:22 omv-studio-server systemd[1]: Started rsyslog.service - System Logging Service.
    Feb 26 11:03:22 omv-studio-server rsyslogd[620277]: [origin software="rsyslogd" swVersion="8.2302.0" x-pid="620277" x-info="https://www.rsyslog.com"] start
    Feb 26 11:03:22 omv-studio-server rsyslogd[620277]: cannot connect to 192.168.0.10:5140: Connection refused [v8.2302.0 try https://www.rsyslog.com/e/2027 ]



    What am i missing?


    ;(


    Kind Regards

    Arvid

  • Debian 12 and so OMV 7 defaults to journald for logs so var/log/syslog does not exist. See for example: https://forums.debian.net/viewtopic.php?t=155049

    Thanks for the link!


    Does this corrolates to:


    Code
    Feb 26 11:03:22 omv-studio-server rsyslogd[620277]: cannot connect to 192.168.0.10:5140: Connection refused [v8.2302.0 try https://www.rsyslog.com/e/2027 ]

    ?


    I also debuged Rsyslog with the following result:


    Code
    2447.008887958:main Q:Reg/w0  : rainerscript.c:     PROPFILT
    2447.008971164:main Q:Reg/w0  : rainerscript.c:         Property.: 'msg'
    2447.009066201:main Q:Reg/w0  : rainerscript.c:         Operation: 'regex'
    2447.009183581:main Q:Reg/w0  : rainerscript.c:         Value....: 'pam_faillock(.*:auth): Consecutive login failures for user .* account temporarily locked'
    2447.009283226:main Q:Reg/w0  : ruleset.c: Filter: check for property 'msg' (value ' cannot connect to 192.168.0.10:5140: Connection refused [v8.2302.0 try https://www.rsyslog.com/e/2027 ]') regex 'pam_faillock(.*:auth): Consecutive login failures for user .* account temporarily locked': FALSE
    2447.009347184:main Q:Reg/w0  : ruleset.c: PROPFILT condition result is 0
    2447.009383735:main Q:Reg/w0  : rainerscript.c:     ACTION 2 [builtin:omfwd:@@192.168.0.10:5140]
    2447.009469616:main Q:Reg/w0  : ruleset.c: executing action 2
  • Forstwirt92

    Hat den Titel des Themas von „How can i send SYSLOG to my Logserver?“ zu „Why is rsyslog not working right in OMV7?“ geändert.
  • You're right, I had my wires crossed. There should be nothing to do on OMV accept go to diagnostics/system-logs/remote and enter your details. But it looks like your docker graylog is on the same ip as the OMV host. Why not have graylog on a different ip?

  • You're right, I had my wires crossed. There should be nothing to do on OMV accept go to diagnostics/system-logs/remote and enter your details. But it looks like your docker graylog is on the same ip as the OMV host. Is this going to work without changing the /etc/rsyslog.conf file on OMV? Why not have graylog on a different ip?

    I did´t assign one yet. And it gets a little complicated, so to say.


    The host is OMV, Graylog is a Docker Container inside OMV. So the Graylog is in the host network with port binding at port 5140.

    I thought about MacVlan or IP Aliases.. but thats all complicated stuff.


    I think there should be an easy way? :)

  • Obviously, I've not used graylog. But to my mind "Enable remote logging of syslog to the specified host." doesn't mean the local OMV host, hence the suggestion of using MacVlan, which I don't think is too complex. Of course, I could be wrong and graylog can work setup on docker using host network and take a localhost input. I assume you've checked the ports in your docker compose file are correct.

    • Offizieller Beitrag

    Here you find an example to create a MacVlan


  • Thank you very much for your help.


    In the end it was not possible to find a solution, so i made up a new Docker-Compose file, with better matching versions of the toolset. And everything worked right out of the box. But i used port 1514. It worked right away over TCP with the OMV WebUi Config. Really nice.


    But i disabled it, bc the stack is a really hardware intense one (+1.5G)


    Now i´ll look at PLG-Stack ;)

    EDIT: PLG Stack worked out of the box. RSYSLOG Connection has to be in the right format. Like "RSYSLOG_SyslogProtocol23Format"


    Maybe it will help someone with specific problems like i had:

    (Processor without AVX => can´t use MongoDB 5 => can´t use Graylog)


    Here is my working docker-compose.

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!