Skip to content

Commit

Permalink
Include ETW in the default input list for Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
chemamartinez committed Nov 28, 2023
1 parent 938e7ab commit 335d366
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 1 deletion.
2 changes: 1 addition & 1 deletion x-pack/filebeat/input/default-inputs/inputs_other.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// or more contributor license agreements. Licensed under the Elastic License;
// you may not use this file except in compliance with the Elastic License.

//go:build !aix
//go:build !aix && !windows

package inputs

Expand Down
45 changes: 45 additions & 0 deletions x-pack/filebeat/input/default-inputs/inputs_windows.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
// or more contributor license agreements. Licensed under the Elastic License;
// you may not use this file except in compliance with the Elastic License.

//go:build windows

package inputs

import (
"github.com/elastic/beats/v7/filebeat/beater"
v2 "github.com/elastic/beats/v7/filebeat/input/v2"
"github.com/elastic/beats/v7/libbeat/beat"
"github.com/elastic/beats/v7/x-pack/filebeat/input/awscloudwatch"
"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/cel"
"github.com/elastic/beats/v7/x-pack/filebeat/input/cloudfoundry"
"github.com/elastic/beats/v7/x-pack/filebeat/input/entityanalytics"
"github.com/elastic/beats/v7/x-pack/filebeat/input/etw"
"github.com/elastic/beats/v7/x-pack/filebeat/input/gcs"
"github.com/elastic/beats/v7/x-pack/filebeat/input/http_endpoint"
"github.com/elastic/beats/v7/x-pack/filebeat/input/httpjson"
"github.com/elastic/beats/v7/x-pack/filebeat/input/lumberjack"
"github.com/elastic/beats/v7/x-pack/filebeat/input/o365audit"
"github.com/elastic/beats/v7/x-pack/filebeat/input/shipper"
"github.com/elastic/elastic-agent-libs/logp"
)

func xpackInputs(info beat.Info, log *logp.Logger, store beater.StateStore) []v2.Plugin {
return []v2.Plugin{
azureblobstorage.Plugin(log, store),
cel.Plugin(log, store),
cloudfoundry.Plugin(),
entityanalytics.Plugin(log),
gcs.Plugin(log, store),
http_endpoint.Plugin(),
httpjson.Plugin(log, store),
o365audit.Plugin(log, store),
awss3.Plugin(store),
awscloudwatch.Plugin(),
lumberjack.Plugin(),
shipper.Plugin(log, store),
etw.Plugin(),
}
}

0 comments on commit 335d366

Please sign in to comment.