Documentation ¶
Index ¶
- Constants
- type AlertmanagerOutputConfig
- type CliqOutputConfig
- type CloudEventsOutputConfig
- type Configuration
- type DiscordOutputConfig
- type ElasticsearchOutputConfig
- type FalcoPayload
- type GooglechatConfig
- type GrafanaOnCallOutputConfig
- type GrafanaOutputConfig
- type KafkaRestConfig
- type LokiOutputConfig
- type MQTTConfig
- type MattermostOutputConfig
- type N8NConfig
- type NodeRedOutputConfig
- type PagerdutyConfig
- type PolicyReportConfig
- type PriorityType
- type PromStatistics
- type RabbitmqConfig
- type RedisConfig
- type RocketchatOutputConfig
- type SlackOutputConfig
- type SpyderbatConfig
- type Statistics
- type SyslogConfig
- type TelegramConfig
- type TimescaleDBConfig
- type WavefrontOutputConfig
- type WebUIOutputConfig
- type WebhookOutputConfig
- type YandexDataStreamsConfig
- type YandexOutputConfig
- type YandexS3Config
Constants ¶
const ( Default = iota // "" Debug Informational Notice Warning Error Critical Alert Emergency )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CliqOutputConfig ¶
type CliqOutputConfig struct { WebhookURL string Icon string OutputFormat string MinimumPriority string MessageFormat string MessageFormatTemplate *template.Template UseEmoji bool CheckCert bool MutualTLS bool }
CliqOutputConfig represents parameters for Zoho Cliq
type CloudEventsOutputConfig ¶
type CloudEventsOutputConfig struct { Address string Extensions map[string]string MinimumPriority string CheckCert bool MutualTLS bool }
CloudEventsOutputConfig represents parameters for CloudEvents
type Configuration ¶
type Configuration struct { MutualTLSFilesPath string Debug bool ListenAddress string ListenPort int BracketReplacer string Customfields map[string]string Templatedfields map[string]string Prometheus prometheusOutputConfig Slack SlackOutputConfig Cliq CliqOutputConfig Mattermost MattermostOutputConfig Rocketchat RocketchatOutputConfig Teams teamsOutputConfig Datadog datadogOutputConfig Discord DiscordOutputConfig Alertmanager AlertmanagerOutputConfig Elasticsearch ElasticsearchOutputConfig Influxdb influxdbOutputConfig Loki LokiOutputConfig Nats natsOutputConfig Stan stanOutputConfig AWS awsOutputConfig SMTP smtpOutputConfig Opsgenie opsgenieOutputConfig Statsd statsdOutputConfig Dogstatsd statsdOutputConfig Webhook WebhookOutputConfig CloudEvents CloudEventsOutputConfig Azure azureConfig GCP gcpOutputConfig Googlechat GooglechatConfig Kafka kafkaConfig KafkaRest KafkaRestConfig Pagerduty PagerdutyConfig Kubeless kubelessConfig Openfaas openfaasConfig Tekton tektonConfig WebUI WebUIOutputConfig PolicyReport PolicyReportConfig Rabbitmq RabbitmqConfig Wavefront WavefrontOutputConfig Fission fissionConfig Grafana GrafanaOutputConfig GrafanaOnCall GrafanaOnCallOutputConfig Yandex YandexOutputConfig Syslog SyslogConfig NodeRed NodeRedOutputConfig MQTT MQTTConfig Zincsearch zincsearchOutputConfig Gotify gotifyOutputConfig Spyderbat SpyderbatConfig TimescaleDB TimescaleDBConfig Redis RedisConfig Telegram TelegramConfig N8N N8NConfig }
Configuration is a struct to store configuration
type DiscordOutputConfig ¶
type DiscordOutputConfig struct { WebhookURL string MinimumPriority string Icon string CheckCert bool MutualTLS bool }
DiscordOutputConfig .
type FalcoPayload ¶
type FalcoPayload struct { UUID string `json:"uuid,omitempty"` Output string `json:"output"` Priority PriorityType `json:"priority"` Rule string `json:"rule"` Time time.Time `json:"time"` OutputFields map[string]interface{} `json:"output_fields"` Source string `json:"source"` Tags []string `json:"tags,omitempty"` Hostname string `json:"hostname,omitempty"` }
FalcoPayload is a struct to map falco event json
func (FalcoPayload) Check ¶
func (f FalcoPayload) Check() bool
func (FalcoPayload) HashKey ¶
func (f FalcoPayload) HashKey() uint64
func (FalcoPayload) String ¶
func (f FalcoPayload) String() string
type GooglechatConfig ¶
type GooglechatConfig struct { WebhookURL string OutputFormat string MinimumPriority string MessageFormat string MessageFormatTemplate *template.Template CheckCert bool MutualTLS bool }
GooglechatConfig represents parameters for Google chat
type GrafanaOnCallOutputConfig ¶
type GrafanaOnCallOutputConfig struct { WebhookURL string CheckCert bool MutualTLS bool MinimumPriority string CustomHeaders map[string]string }
GrafanaOnCallOutputConfig represents parameters for Grafana OnCall
type GrafanaOutputConfig ¶
type GrafanaOutputConfig struct { HostPort string APIKey string DashboardID int PanelID int AllFieldsAsTags bool CheckCert bool MutualTLS bool MinimumPriority string CustomHeaders map[string]string }
GrafanaOutputConfig represents parameters for Grafana
type KafkaRestConfig ¶
type LokiOutputConfig ¶
type MQTTConfig ¶
type MQTTConfig struct { Broker string Topic string QOS int Retained bool User string Password string CheckCert bool MinimumPriority string }
MQTTConfig represents config parameters for the MQTT client
type MattermostOutputConfig ¶
type MattermostOutputConfig struct { WebhookURL string Icon string Username string OutputFormat string MinimumPriority string MessageFormat string MessageFormatTemplate *template.Template CheckCert bool MutualTLS bool }
MattermostOutputConfig represents parameters for Mattermost
type N8NConfig ¶
type N8NConfig struct { Address string User string Password string HeaderAuthName string HeaderAuthValue string MinimumPriority string CheckCert bool }
N8NConfig represents config parameters for N8N
type NodeRedOutputConfig ¶
type NodeRedOutputConfig struct { Address string User string Password string CustomHeaders map[string]string MinimumPriority string CheckCert bool }
NodeRedOutputConfig represents parameters for Node-RED
type PagerdutyConfig ¶
type PolicyReportConfig ¶
type PolicyReportConfig struct { Enabled bool PruneByPriority bool Kubeconfig string MinimumPriority string MaxEvents int }
PolicyReportConfig represents parameters for policyreport
type PriorityType ¶
type PriorityType int
func Priority ¶
func Priority(p string) PriorityType
func (PriorityType) MarshalJSON ¶
func (p PriorityType) MarshalJSON() ([]byte, error)
func (PriorityType) String ¶
func (p PriorityType) String() string
func (*PriorityType) UnmarshalJSON ¶
func (p *PriorityType) UnmarshalJSON(b []byte) error
type PromStatistics ¶
type PromStatistics struct { Falco *prometheus.CounterVec Inputs *prometheus.CounterVec Outputs *prometheus.CounterVec }
PromStatistics is a struct to store prometheus metrics
type RabbitmqConfig ¶
RabbitmqConfig represents parameters for rabbitmq
type RedisConfig ¶
type RedisConfig struct { Address string Password string Database int StorageType string Key string Version int MinimumPriority string CheckCert bool MutualTLS bool }
RedisConfig represents config parameters for Redis
type RocketchatOutputConfig ¶
type RocketchatOutputConfig struct { WebhookURL string Icon string Username string OutputFormat string MinimumPriority string MessageFormat string MessageFormatTemplate *template.Template CheckCert bool MutualTLS bool }
RocketchatOutputConfig .
type SlackOutputConfig ¶
type SlackOutputConfig struct { WebhookURL string Channel string Icon string Username string OutputFormat string MinimumPriority string MessageFormat string MessageFormatTemplate *template.Template CheckCert bool MutualTLS bool }
SlackOutputConfig represents parameters for Slack
type SpyderbatConfig ¶
type Statistics ¶
type Statistics struct { Requests *expvar.Map FIFO *expvar.Map GRPC *expvar.Map Falco *expvar.Map Slack *expvar.Map Mattermost *expvar.Map Rocketchat *expvar.Map Teams *expvar.Map Datadog *expvar.Map Discord *expvar.Map Alertmanager *expvar.Map Elasticsearch *expvar.Map Loki *expvar.Map Nats *expvar.Map Stan *expvar.Map Influxdb *expvar.Map AWSLambda *expvar.Map AWSSQS *expvar.Map AWSSNS *expvar.Map AWSCloudWatchLogs *expvar.Map AWSS3 *expvar.Map AWSSecurityLake *expvar.Map AWSKinesis *expvar.Map SMTP *expvar.Map Opsgenie *expvar.Map Statsd *expvar.Map Dogstatsd *expvar.Map Webhook *expvar.Map AzureEventHub *expvar.Map GCPPubSub *expvar.Map GCPStorage *expvar.Map GCPCloudFunctions *expvar.Map GCPCloudRun *expvar.Map GoogleChat *expvar.Map Kafka *expvar.Map KafkaRest *expvar.Map Pagerduty *expvar.Map CloudEvents *expvar.Map Kubeless *expvar.Map Openfaas *expvar.Map Tekton *expvar.Map WebUI *expvar.Map Rabbitmq *expvar.Map Wavefront *expvar.Map Fission *expvar.Map Grafana *expvar.Map GrafanaOnCall *expvar.Map YandexS3 *expvar.Map YandexDataStreams *expvar.Map Syslog *expvar.Map Cliq *expvar.Map PolicyReport *expvar.Map NodeRed *expvar.Map MQTT *expvar.Map Zincsearch *expvar.Map Gotify *expvar.Map Spyderbat *expvar.Map TimescaleDB *expvar.Map Redis *expvar.Map Telegram *expvar.Map N8N *expvar.Map }
Statistics is a struct to store stastics
type SyslogConfig ¶
type SyslogConfig struct { Host string Port string Protocol string Format string MinimumPriority string }
SyslogConfig represents config parameters for the syslog client Host: the remote syslog host. It can be either an IP address or a domain. Port: the remote port address. Ex: 514. Protocol: the type of transfer protocol to use. It should be either "tcp" or "udp".
type TelegramConfig ¶
TelegramConfig represents parameters for Telegram
type TimescaleDBConfig ¶
type WavefrontOutputConfig ¶
type WavefrontOutputConfig struct { EndpointType string // direct or proxy EndpointHost string // Endpoint hostname (only IP or hostname) EndpointToken string // Token for API access. Only for direct mode EndpointMetricPort int // Port to send metrics. Only for proxy mode MetricName string // The Name of the metric FlushIntervalSeconds int // Time between flushes. BatchSize int // BatchSize to send. Only for direct mode MinimumPriority string }
type WebUIOutputConfig ¶
WebUIOutputConfig represents parameters for WebUI
type WebhookOutputConfig ¶
type WebhookOutputConfig struct { Address string Method string CustomHeaders map[string]string MinimumPriority string CheckCert bool MutualTLS bool }
WebhookOutputConfig represents parameters for Webhook
type YandexDataStreamsConfig ¶
type YandexOutputConfig ¶
type YandexOutputConfig struct { AccessKeyID string SecretAccessKey string Region string S3 YandexS3Config DataStreams YandexDataStreamsConfig }