mirror of
https://github.com/Death916/nixconfig.git
synced 2026-04-11 04:48:25 -07:00
crowdsec
This commit is contained in:
parent
e12f26c6d6
commit
ae4639fa47
1 changed files with 30 additions and 26 deletions
|
|
@ -4,33 +4,37 @@
|
|||
services.crowdsec = {
|
||||
enable = true;
|
||||
|
||||
hub.collections = [
|
||||
"crowdsecurity/linux"
|
||||
"crowdsecurity/sshd"
|
||||
"crowdsecurity/traefik"
|
||||
"crowdsecurity/http-cve"
|
||||
];
|
||||
hub = {
|
||||
collections = [
|
||||
"crowdsecurity/linux"
|
||||
"crowdsecurity/sshd"
|
||||
"crowdsecurity/traefik"
|
||||
"crowdsecurity/http-cve"
|
||||
];
|
||||
};
|
||||
|
||||
localConfig = [
|
||||
{
|
||||
source = "journalctl";
|
||||
journalctl_filter = [ "_SYSTEMD_UNIT=sshd.service" ];
|
||||
labels.type = "syslog";
|
||||
}
|
||||
{
|
||||
source = "journalctl";
|
||||
journalctl_filter = [
|
||||
"SYSLOG_IDENTIFIER=sudo"
|
||||
"SYSLOG_IDENTIFIER=auth"
|
||||
];
|
||||
labels.type = "syslog";
|
||||
}
|
||||
{
|
||||
source = "journalctl";
|
||||
journalctl_filter = [ "_SYSTEMD_UNIT=docker-traefik.service" ];
|
||||
labels.type = "traefik";
|
||||
}
|
||||
];
|
||||
localConfig = {
|
||||
acquisitions = [
|
||||
{
|
||||
source = "journalctl";
|
||||
journalctl_filter = [ "_SYSTEMD_UNIT=sshd.service" ];
|
||||
labels.type = "syslog";
|
||||
}
|
||||
{
|
||||
source = "journalctl";
|
||||
journalctl_filter = [
|
||||
"SYSLOG_IDENTIFIER=sudo"
|
||||
"SYSLOG_IDENTIFIER=auth"
|
||||
];
|
||||
labels.type = "syslog";
|
||||
}
|
||||
{
|
||||
source = "journalctl";
|
||||
journalctl_filter = [ "_SYSTEMD_UNIT=docker-traefik.service" ];
|
||||
labels.type = "traefik";
|
||||
}
|
||||
];
|
||||
};
|
||||
|
||||
settings = {
|
||||
api = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue