To be able to detect things, crowdsec needs to access logs. DataSources are configured via the acquisition configuration, or specified via the command-line when performing cold logs analysis.
|single files, glob expressions and .gz files
|journald via filter
|single stream or log group
|read logs received via syslog protocol
|read logs from docker containers
|read logs from a kinesis strean
While various data sources are supported, they all share the same common configuration structure :
All the data sources supports :
log_levelto configure verbosity of given source (trace, debug, info, warning, error)
labelsmap with a mandatory
sourceindicating which implementation the configuration referes to (file, journald, syslog, cloudwatch ...)
- and a section that is specific to the data source implemention, see dedicated sections bellow
type subsection are crucial as this is what is going to indicate which parsers pickup the log line.