Skip to content

[Bug Report] SIEM Logger sometimes failing to start #1350

@soda-pop-ice-cream

Description

@soda-pop-ice-cream

Describe the bug:

First of all, I want to thank you for creating opensnitch, currently I using it on all desktops running linux, and the only problem i have so far is that SIEM logger is quite unreliable, It seems that if the daemon is unable to connect to the log collector's syslog port and never tries again. I'm using it with Splunk and any other services logging their stuff perfectly fine and never miss a thing.

Also

My logger configuration:

sudo cat /etc/opensnitchd/default-config.json 
{
    "Server": {
        "Loggers": [
            {
                "Name": "remote_syslog",
                "Server": "192.168.1.142:51452",
                "Protocol": "udp",
                "Format": "rfc3164",
                "Tag": "opensnitchd"
            }
        ],

Include the following information:

  • OpenSnitch version: v1.7.0-rc.2
  • OS: Linux Mint
  • OS version: 22.1 (e.g. ubuntu noble)
  • Window Manager: Cinnamon
  • Kernel version: 6.11.0-25

To Reproduce:

Steps to reproduce the behavior:

  1. Reboot PC, opensnitch daemon not sending logs to SIEM
  2. Wait a few minutes, then restart the daemon. Sometimes it will send the logs, and sometimes it won't. If it doesn't, restart it again.

(Usually, reboots cause this issue, but sometimes the daemon simply stops sending events to the logger that is always perfectly accessible over the network)

Post error logs:

 INF  NewRemoteSyslog logger: {remote_syslog rfc3164 udp 192.168.1.142:51452   opensnitchd 0}
 INF  NewRemote logger: {remote_syslog rfc3164 udp 192.168.1.142:51452   opensnitchd 0}
 ERR  Error loading logger [remote]: dial udp 192.168.1.142:51452: connect: network is unreachable

Additional context:

I've seen that there is some retries mention in this commit, but it's not documented on wiki how to configure daemon to make retries work(or they enabled by default?).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions