Documentation ¶
Index ¶
- func New(b *beat.Beat, rawConfig *common.Config) (beat.Beater, error)
- type AutodiscoverAdapter
- func (m *AutodiscoverAdapter) CheckConfig(c *common.Config) error
- func (m *AutodiscoverAdapter) Create(c *common.Config, meta *common.MapStrPointer) (cfgfile.Runner, error)
- func (m *AutodiscoverAdapter) CreateConfig(e bus.Event) ([]*common.Config, error)
- func (m *AutodiscoverAdapter) EventFilter() []string
- type Filebeat
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AutodiscoverAdapter ¶
type AutodiscoverAdapter struct {
// contains filtered or unexported fields
}
AutodiscoverAdapter for Filebeat modules & prospectors
func NewAutodiscoverAdapter ¶
func NewAutodiscoverAdapter(prospectorFactory, moduleFactory cfgfile.RunnerFactory) *AutodiscoverAdapter
NewAutodiscoverAdapter builds and returns an autodiscover adapter for Filebeat modules & prospectors
func (*AutodiscoverAdapter) CheckConfig ¶
func (m *AutodiscoverAdapter) CheckConfig(c *common.Config) error
CheckConfig tests given config to check if it will work or not, returns errors in case it won't work
func (*AutodiscoverAdapter) Create ¶
func (m *AutodiscoverAdapter) Create(c *common.Config, meta *common.MapStrPointer) (cfgfile.Runner, error)
Create a module or prospector from the given config
func (*AutodiscoverAdapter) CreateConfig ¶
CreateConfig generates a valid list of configs from the given event, the received event will have all keys defined by `StartFilter`
func (*AutodiscoverAdapter) EventFilter ¶
func (m *AutodiscoverAdapter) EventFilter() []string
EventFilter returns the bus filter to retrieve runner start/stop triggering events
Click to show internal directories.
Click to hide internal directories.