Skip to content

Commit

Permalink
add debug and enable benchmark input on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
leehinman committed Sep 25, 2024
1 parent bb7aaf2 commit a08e9c1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 4 additions & 1 deletion x-pack/filebeat/fbreceiver/receiver_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ func TestNewReceiver(t *testing.T) {
},
"logging": map[string]interface{}{
"level": "debug",
"selectors": []string{
"*",
},
},
"path.home": t.TempDir(),
},
Expand All @@ -45,7 +48,7 @@ func TestNewReceiver(t *testing.T) {
core := zapcore.NewCore(
zapcore.NewJSONEncoder(zap.NewProductionEncoderConfig()),
zapcore.AddSync(&zapLogs),
zapcore.InfoLevel)
zapcore.DebugLevel)

receiverSettings := receiver.Settings{}
receiverSettings.Logger = zap.New(core)
Expand Down
2 changes: 2 additions & 0 deletions x-pack/filebeat/input/default-inputs/inputs_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import (
"github.com/elastic/beats/v7/x-pack/filebeat/input/awss3"
"github.com/elastic/beats/v7/x-pack/filebeat/input/azureblobstorage"
"github.com/elastic/beats/v7/x-pack/filebeat/input/azureeventhub"
"github.com/elastic/beats/v7/x-pack/filebeat/input/benchmark"
"github.com/elastic/beats/v7/x-pack/filebeat/input/cel"
"github.com/elastic/beats/v7/x-pack/filebeat/input/cloudfoundry"
"github.com/elastic/beats/v7/x-pack/filebeat/input/entityanalytics"
Expand Down Expand Up @@ -43,5 +44,6 @@ func xpackInputs(info beat.Info, log *logp.Logger, store beater.StateStore) []v2
lumberjack.Plugin(),
etw.Plugin(),
netflow.Plugin(log),
benchmark.Plugin(),
}
}

0 comments on commit a08e9c1

Please sign in to comment.