I want to be notified about stack traces and certain events in my logs.

I don’t want to setup the ELK stack or other complicated resource hungry software. I’m not interested in searching or aggregating the logs.

My current idea is:

Is this a wise idea? What other solution would you suggest?

  • Autonomous
    link
    fedilink
    English
    arrow-up
    4
    ·
    4 days ago

    Anything short of a script is probably beyond the effort level you wanted, but VictoriaLogs is designed to be slim and easy to setup.

    A single zero-config executable. Works with Fluent-Bit

    It supports log alerting to alertmanager via vmalert, which is part of their ecosystem. (Grafana could alert off that log source as well, if you already used it)

    • 7EP6vuI@feddit.orgOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      3 days ago

      yes, i also looked into victorialogs and it seems tempting. at least they advertise that they are also suitable for small setups.

      i think for my case it provides too much functionality. i would also say that it’s rather on the exciting/interesting/new side of things, and not a boring solution. i’m searching for a boring solution.

  • testfactor
    link
    fedilink
    English
    arrow-up
    6
    arrow-down
    1
    ·
    4 days ago

    Why not just use rsyslog? Seems like exactly what you want and is longstanding, robust, and open source. Just make sure your apps are logging to syslog, and set up an rsyslog server to sync to.

  • FukOui@lemmy.zip
    link
    fedilink
    English
    arrow-up
    2
    ·
    3 days ago

    Depends on what event you are watching and alert complexity? Most self applications have built in alert notification setvices already.

    Also if you have control over the application code you could just send notifications directly.

    A simple script could just continuously call batch readline (Linux) and then parse the output for notifications.

    • 7EP6vuI@feddit.orgOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      3 days ago

      on the one hand: yes, i also thought about this, and i also directly send mails for some expected events. but i don’t want to add the complexity for crash management to the application. so the logging should be handled in an extra layer.