Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientConfig ¶
type Config ¶
type Config struct { ElasticSearch *ESConfig `json:"elasticsearch"` Distributed bool `json:"distributed"` Consul map[string]string `json:"consul"` Rules []*RuleConfig `json:"-"` }
func ParseConfig ¶
type DistributedConfig ¶
type ESConfig ¶
type ESConfig struct { Server *ServerConfig `json:"server"` Client *ClientConfig `json:"client"` }
type OutputConfig ¶
type RuleConfig ¶
type RuleConfig struct { Name string `json:"name"` ElasticSearchIndex string `json:"index"` CronSchedule string `json:"schedule"` BodyField string `json:"body_field"` ElasticSearchBodyRaw interface{} `json:"body"` ElasticSearchBody map[string]interface{} `json:"-"` Filters []string `json:"filters"` Outputs []*OutputConfig `json:"outputs"` }
func ParseRules ¶ added in v0.0.13
func ParseRules() ([]*RuleConfig, error)
type ServerConfig ¶
type ServerConfig struct {
ElasticSearchURL string `json:"url"`
}
Click to show internal directories.
Click to hide internal directories.