services.crowdsec.localConfig.parsers.s01Parse
NixOS option
A list of stage s01-parse specifications. See https://docs.crowdsec.net/docs/parsers/intro for details.
type: list of (YAML 1.1 value)Default
[ ]
Example
declared in: nixos/modules/services/security/crowdsec.nixView source on NixOS/nixpkgs →[
{
debug = true;
description = "Parsing custom service logs";
filter = "1=1";
grok = {
apply_on = "message";
pattern = "^%{DATA:some_data}$";
};
name = "example/custom-service-logs";
onsuccess = "next_stage";
statics = [
{
parsed = "is_my_custom_service";
value = "yes";
}
];
}
]