Skip to content

Commit

Permalink
Fix issue with missing module fields in index template
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 committed Jun 4, 2020
1 parent 8dda6e1 commit 147cbdf
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 @@ -230,7 +230,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 147cbdf

Please sign in to comment.