siem

package
v1.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 31, 2026 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DatadogProvider

func DatadogProvider() *datadogProvider

func ElasticProvider

func ElasticProvider() *elasticProvider

func SentinelProvider

func SentinelProvider() *sentinelProvider

func SplunkProvider

func SplunkProvider() *splunkProvider

Types

type Client

type Client interface {
	Export(ctx context.Context, events []any) error
}

type DatadogClient

type DatadogClient struct {
	DatadogConfig
}

func NewDatadogClient

func NewDatadogClient(config DatadogConfig) *DatadogClient

func (*DatadogClient) Export

func (d *DatadogClient) Export(ctx context.Context, events []any) error

type DatadogConfig

type DatadogConfig struct {
	APIKey  string   `json:"api_key"`
	Site    string   `json:"site"`
	Service string   `json:"service"`
	Tags    []string `json:"tags"`
}

type ElasticClient

type ElasticClient struct {
	ElasticConfig
}

func NewElasticClient

func NewElasticClient(config ElasticConfig) *ElasticClient

func (*ElasticClient) Export

func (e *ElasticClient) Export(ctx context.Context, events []any) error

type ElasticConfig

type ElasticConfig struct {
	Endpoint      string `json:"endpoint"`
	APIKey        string `json:"api_key"`
	Username      string `json:"username"`
	Password      string `json:"password"`
	Index         string `json:"index"`
	SkipTLSVerify bool   `json:"skip_tls_verify"`
}

type SentinelClient

type SentinelClient struct {
	SentinelConfig
}

func NewSentinelClient

func NewSentinelClient(config SentinelConfig) *SentinelClient

func (*SentinelClient) Export

func (s *SentinelClient) Export(ctx context.Context, events []any) error

type SentinelConfig

type SentinelConfig struct {
	WorkspaceID string `json:"workspace_id"`
	SharedKey   string `json:"shared_key"`
	LogType     string `json:"log_type"`
}

type SplunkClient

type SplunkClient struct {
	SplunkConfig
}

func NewSplunkClient

func NewSplunkClient(config SplunkConfig) *SplunkClient

func (*SplunkClient) Export

func (s *SplunkClient) Export(ctx context.Context, events []any) error

type SplunkConfig

type SplunkConfig struct {
	HECEndpoint   string `json:"hec_endpoint"`
	HECToken      string `json:"hec_token"`
	Index         string `json:"index"`
	Source        string `json:"source"`
	SourceType    string `json:"source_type"`
	SkipTLSVerify bool   `json:"skip_tls_verify"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL