Coder Social home page Coder Social logo

Log to Syslog about coraza-spoa HOT 7 OPEN

corazawaf avatar corazawaf commented on June 12, 2024
Log to Syslog

from coraza-spoa.

Comments (7)

albertogrimana avatar albertogrimana commented on June 12, 2024

Hi

I have this configuration in docker-compose.yml to send logs to a external syslog server and work with any problems
If you run syslog in same machine simply not config syslog-address

logging:
driver: syslog
options:
syslog-address: "udp://xxx.xxx.xxx.xxx:514"
tag: "corazawaf"

from coraza-spoa.

svenauhagen avatar svenauhagen commented on June 12, 2024

Hi,

sorry I should have been more precise, I am using the debian package with systemd.
In general systemd is abstracting away stdout and stderr already to be a socket which can not be used with coraza-spoa anymore.
So I am looking for a way to configure the syslog within the coraza config.

from coraza-spoa.

albertogrimana avatar albertogrimana commented on June 12, 2024

Maybe yo can try this

https://www.loggly.com/ultimate-guide/centralizing-with-syslog/

from coraza-spoa.

svenauhagen avatar svenauhagen commented on June 12, 2024

It does not work because under systemd you can not use stdout in coraza-spoa as well.
It only gives the error message that there is no such file to open.
Systemd abstracts away stdout ans coraza-spoa does not seem to be able to handle that.
I can only log to a file at the moment.

from coraza-spoa.

bzed avatar bzed commented on June 12, 2024

@svenauhagen the "security" configs in https://github.com/corazawaf/coraza-spoa/blob/main/contrib/coraza-spoa.service are a bit crazy. I could only guess which line it is, but just remove all the private/protected/.... stuff until writing to stdout works.

My guess is PrivateDevices=true, buts thats a guess only.

from coraza-spoa.

bzed avatar bzed commented on June 12, 2024

Looking at the chrony.service file in debian is probably a good start for a sane implamentation of that systemd service.

from coraza-spoa.

svenauhagen avatar svenauhagen commented on June 12, 2024

fixed by PR105

from coraza-spoa.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.