Skip to content

Commit

Permalink
Osquerybeat: Add missing osquery top-level configuration properties f…
Browse files Browse the repository at this point in the history
…or auto_table_construction, yara, prometheus_targets (#29270)
  • Loading branch information
aleksmaus authored Dec 6, 2021
1 parent 405c342 commit 27d1a6e
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions x-pack/osquerybeat/internal/config/osquery.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,15 @@ type Events struct {
}

type OsqueryConfig struct {
Options map[string]interface{} `config:"options" json:"options,omitempty"`
Schedule map[string]Query `config:"schedule" json:"schedule,omitempty"`
Packs map[string]Pack `config:"packs" json:"packs,omitempty"`
Filepaths map[string][]string `config:"file_paths" json:"file_paths,omitempty"`
Views map[string]string `config:"views" json:"views,omitempty"`
Events *Events `config:"events" json:"events,omitempty"`
Options map[string]interface{} `config:"options" json:"options,omitempty"`
Schedule map[string]Query `config:"schedule" json:"schedule,omitempty"`
Packs map[string]Pack `config:"packs" json:"packs,omitempty"`
Filepaths map[string][]string `config:"file_paths" json:"file_paths,omitempty"`
Views map[string]string `config:"views" json:"views,omitempty"`
Events *Events `config:"events" json:"events,omitempty"`
Yara map[string]interface{} `config:"yara" json:"yara,omitempty"`
PrometheusTargets map[string]interface{} `config:"prometheus_targets" json:"prometheus_targets,omitempty"`
AutoTableConstruction map[string]interface{} `config:"auto_table_construction" json:"auto_table_construction,omitempty"`
}

func (c OsqueryConfig) Render() ([]byte, error) {
Expand Down

0 comments on commit 27d1a6e

Please sign in to comment.