Skip to content

Commit

Permalink
winlogbeat metrics - Set input type as "winlog" (#34886)
Browse files Browse the repository at this point in the history
Identify the Windows event log readers as input type `winlog` in metrics published
through the /inputs/ API.

Fixes #34885
  • Loading branch information
andrewkroh committed Mar 21, 2023
1 parent b8de56e commit d8a9ec4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion winlogbeat/eventlog/wineventlog.go
Expand Up @@ -664,7 +664,7 @@ func newInputMetrics(name, id string) *inputMetrics {
if id == "" {
return nil
}
reg, unreg := inputmon.NewInputRegistry(name, id, nil)
reg, unreg := inputmon.NewInputRegistry("winlog", id, nil)
out := &inputMetrics{
unregister: unreg,
name: monitoring.NewString(reg, "provider"),
Expand Down

0 comments on commit d8a9ec4

Please sign in to comment.