Skip to content

Latest commit

 

History

History

journald

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Description

This example shows you how to use journald as a log source for CrowdSec.

docker journald

This example is a single container :

  • crowdsec : read journald logs and act on malicious behaviors

We will read journald via journalctl and act on iptables logs from the host. You MUST configure iptables to log to journald firstly see an example below:

# iptables -A INPUT -j LOG --log-prefix "iptables: "

DISCLAIMER we are not responsible for your iptables rules and their consequences, please be careful when using iptables. As it can be very easy to lock yourself out of your server.

Prerequisites: Docker / Docker Compose