Documentation
¶
Overview ¶
Package fb provides filebeat-compatible configuration validation for the mito tool. Validation rules mirror the constraints in the filebeat CEL input's config.go and config_auth.go without depending on go-ucfg or any elastic-agent-libs package.
Behaviour under -fb is not covered by semver compatibility guarantees. Validation rules may change between minor releases to track upstream filebeat changes.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckState ¶
CheckState inspects state data (the -data JSON) and rejects it if it contains a "secret" key at the top level.
Types ¶
type Config ¶
type Config struct {
Globals map[string]interface{} `yaml:"globals"`
Regexps map[string]string `yaml:"regexp"`
XSDs map[string]string `yaml:"xsd"`
Auth *authConfig `yaml:"auth"`
HTTPHeaders http.Header `yaml:"http_headers"`
MaxBodySize int64 `yaml:"max_body_size"`
MaxExecutions *int `yaml:"max_executions"`
Resource *resourceConfig `yaml:"resource"`
SecretState map[string]any `yaml:"secret_state"`
}
Config is the filebeat-compatible configuration for mito. It contains all the fields from rc.Config plus resource, rate limit, and retry sections that filebeat's CEL input expects. Auth field names follow filebeat conventions (user/password, not username/password).