Documentation ¶
Index ¶
- func InitExporters(exportersConfig ExportersConfig)
- func PriorityToStatus(priority int) string
- func SendMalwareAlert(malwareDescription scan.MalwareDescription)
- func SendRuleAlert(failedRule rule.RuleFailure)
- type AlertManagerExporter
- type CsvExporter
- type Exporter
- type ExportersConfig
- type StdoutExporter
- type SyslogExporter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitExporters ¶
func InitExporters(exportersConfig ExportersConfig)
InitExporters initializes all exporters.
func PriorityToStatus ¶
func SendMalwareAlert ¶ added in v0.0.19
func SendMalwareAlert(malwareDescription scan.MalwareDescription)
func SendRuleAlert ¶ added in v0.0.19
func SendRuleAlert(failedRule rule.RuleFailure)
Types ¶
type AlertManagerExporter ¶
type AlertManagerExporter struct { Host string NodeName string // contains filtered or unexported fields }
func InitAlertManagerExporter ¶
func InitAlertManagerExporter(alertmanagerURL string) *AlertManagerExporter
func (*AlertManagerExporter) SendMalwareAlert ¶ added in v0.0.19
func (ame *AlertManagerExporter) SendMalwareAlert(malwareDescription scan.MalwareDescription)
func (*AlertManagerExporter) SendRuleAlert ¶ added in v0.0.19
func (ame *AlertManagerExporter) SendRuleAlert(failedRule rule.RuleFailure)
type CsvExporter ¶ added in v0.0.17
CsvExporter is an exporter that sends alerts to csv
func InitCsvExporter ¶ added in v0.0.17
func InitCsvExporter(csvRulePath, csvMalwarePath string) *CsvExporter
InitCsvExporter initializes a new CsvExporter
func (*CsvExporter) SendMalwareAlert ¶ added in v0.0.19
func (ce *CsvExporter) SendMalwareAlert(malwareDescription scan.MalwareDescription)
func (*CsvExporter) SendRuleAlert ¶ added in v0.0.19
func (ce *CsvExporter) SendRuleAlert(failedRule rule.RuleFailure)
SendRuleAlert sends an alert to csv
type Exporter ¶
type Exporter interface { // SendRuleAlert sends an alert on failed rule to the exporter SendRuleAlert(failedRule rule.RuleFailure) // SendMalwareAlert sends an alert on malware detection to the exporter. SendMalwareAlert(scan.MalwareDescription) }
generic exporter interface
type ExportersConfig ¶
type ExportersConfig struct { StdoutExporter *bool `yaml:"stdoutExporter"` AlertManagerExporterURL string `yaml:"alertManagerExporterURL"` SyslogExporter string `yaml:"syslogExporterURL"` CsvRuleExporterPath string `yaml:"csvRuleExporterPath"` CsvMalwareExporterPath string `yaml:"csvMalwareExporterPath"` }
type StdoutExporter ¶
type StdoutExporter struct {
// contains filtered or unexported fields
}
func InitStdoutExporter ¶
func InitStdoutExporter(useStdout *bool) *StdoutExporter
func (*StdoutExporter) SendMalwareAlert ¶ added in v0.0.19
func (exporter *StdoutExporter) SendMalwareAlert(malwareDescription scan.MalwareDescription)
func (*StdoutExporter) SendRuleAlert ¶ added in v0.0.19
func (exporter *StdoutExporter) SendRuleAlert(failedRule rule.RuleFailure)
type SyslogExporter ¶ added in v0.0.14
type SyslogExporter struct {
// contains filtered or unexported fields
}
SyslogExporter is an exporter that sends alerts to syslog
func InitSyslogExporter ¶ added in v0.0.14
func InitSyslogExporter(syslogHost string) *SyslogExporter
InitSyslogExporter initializes a new SyslogExporter
func (*SyslogExporter) SendMalwareAlert ¶ added in v0.0.19
func (se *SyslogExporter) SendMalwareAlert(malwareDescription scan.MalwareDescription)
SendMalwareAlert sends an alert to syslog (RFC 5424) - https://tools.ietf.org/html/rfc5424
func (*SyslogExporter) SendRuleAlert ¶ added in v0.0.19
func (se *SyslogExporter) SendRuleAlert(failedRule rule.RuleFailure)
SendRuleAlert sends an alert to syslog (RFC 5424) - https://tools.ietf.org/html/rfc5424
Click to show internal directories.
Click to hide internal directories.