mirror of
https://github.com/fleetdm/fleet
synced 2026-05-24 09:28:54 +00:00
Re-add default decorators to osquery config (#1269)
These decorators were removed in #953 due to an osquery bug. That bug is now fixed, and we are adding the decorators back. We also now use `load` decorators rather than `interval` decorators because they seem to function more reliably.
This commit is contained in:
parent
0716d19c52
commit
0b4b921f17
1 changed files with 7 additions and 1 deletions
|
|
@ -80,7 +80,13 @@ func (svc service) GetClientConfig(ctx context.Context) (*kolide.OsqueryConfig,
|
|||
|
||||
config := &kolide.OsqueryConfig{
|
||||
Options: options,
|
||||
Packs: kolide.Packs{},
|
||||
Decorators: kolide.Decorators{
|
||||
Load: []string{
|
||||
"SELECT uuid AS host_uuid FROM system_info;",
|
||||
"SELECT hostname AS hostname FROM system_info;",
|
||||
},
|
||||
},
|
||||
Packs: kolide.Packs{},
|
||||
}
|
||||
|
||||
packs, err := svc.ListPacksForHost(ctx, host.ID)
|
||||
|
|
|
|||
Loading…
Reference in a new issue