Skip to content

Commit

Permalink
Fix issue with missing module fields in index template (#18983)
Browse files Browse the repository at this point in the history
The fields.go files were not being imported for the Winlogbeat modules so they were absent from the index template.
  • Loading branch information
andrewkroh authored Jun 5, 2020
1 parent d5fee98 commit 82dc7c0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.next.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,8 @@ https://github.com/elastic/beats/compare/v7.0.0-alpha2...master[Check the HEAD d

*Winlogbeat*

- Fix invalid IP addresses in DNS query results from Sysmon data. {issue}18432[18432] {pull}18436{18436}
- Fix invalid IP addresses in DNS query results from Sysmon data. {issue}18432[18432] {pull}18436[18436]
- Fields from Winlogbeat modules were not being included in index templates and patterns. {pull}18983[18983]

*Functionbeat*

Expand Down
3 changes: 3 additions & 0 deletions x-pack/winlogbeat/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ package cmd
import (
"github.com/elastic/beats/v7/winlogbeat/cmd"
xpackcmd "github.com/elastic/beats/v7/x-pack/libbeat/cmd"

// Register fields.
_ "github.com/elastic/beats/v7/x-pack/winlogbeat/include"
)

// Name of this beat.
Expand Down
2 changes: 0 additions & 2 deletions x-pack/winlogbeat/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ package main
import (
"os"

_ "github.com/elastic/beats/v7/winlogbeat/include"

"github.com/elastic/beats/v7/x-pack/winlogbeat/cmd"
)

Expand Down

0 comments on commit 82dc7c0

Please sign in to comment.