Skip to content

Commit

Permalink
Change filter to filters in Winlogbeat config validation. (#1496)
Browse files Browse the repository at this point in the history
Follow up to #1486
  • Loading branch information
andrewkroh authored and ruflin committed Apr 26, 2016
1 parent f86e6e9 commit d439445
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion winlogbeat/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ type Settings struct {
// Validate validates the Settings data and returns an error describing
// all problems or nil if there are none.
func (s Settings) Validate() error {
validKeys := []string{"filter", "logging", "output", "shipper", "winlogbeat"}
validKeys := []string{"filters", "logging", "output", "shipper", "winlogbeat"}
sort.Strings(validKeys)

// Check for invalid top-level keys.
Expand Down
2 changes: 1 addition & 1 deletion winlogbeat/config/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ func TestConfigValidate(t *testing.T) {
map[string]interface{}{"other": "value"},
},
"1 error: Invalid top-level key 'other' found. Valid keys are " +
"filter, logging, output, shipper, winlogbeat",
"filters, logging, output, shipper, winlogbeat",
},
{
WinlogbeatConfig{},
Expand Down

0 comments on commit d439445

Please sign in to comment.