What is the role of libbeat/beat.go/type BeatConfig struct?

(Panda) #1

type BeatConfig struct {
Shipper publisher.ShipperConfig config:",inline"
Output map[string]*common.Config config:"output"
Logging logp.Logging config:"logging"
Processors processors.PluginConfig config:"processors"
Path paths.Path config:"path"
Dashboards *common.Config config:"dashboards"

There is already a yml file, why the drug defines the structure?

(Steffen Siering) #2

It's used to hold the parsed configuration file in an accessible structure.

(Panda) #3

Your answer solved my question, thank you.

(system) #4

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.