mirror of
https://github.com/crowdsecurity/crowdsec.git
synced 2025-05-12 21:05:53 +02:00
* Add new acquisition interface + new modules (cloudwatch, syslog) Co-authored-by: Sebastien Blot <sebastien@crowdsec.net>
18 lines
632 B
Go
18 lines
632 B
Go
package configuration
|
|
|
|
import (
|
|
log "github.com/sirupsen/logrus"
|
|
)
|
|
|
|
type DataSourceCommonCfg struct {
|
|
Mode string `yaml:"mode,omitempty"`
|
|
Labels map[string]string `yaml:"labels,omitempty"`
|
|
LogLevel *log.Level `yaml:"log_level,omitempty"`
|
|
Source string `yaml:"source,omitempty"`
|
|
Name string `yaml:"name,omitempty"`
|
|
Config map[string]interface{} `yaml:",inline"` //to keep the datasource-specific configuration directives
|
|
}
|
|
|
|
var TAIL_MODE = "tail"
|
|
var CAT_MODE = "cat"
|
|
var SERVER_MODE = "server" // No difference with tail, just a bit more verbose
|