diff --git a/auditbeat/module/file_integrity/metricset.go b/auditbeat/module/file_integrity/metricset.go index 1183d3c86e2b..a1baf1903abe 100644 --- a/auditbeat/module/file_integrity/metricset.go +++ b/auditbeat/module/file_integrity/metricset.go @@ -86,8 +86,7 @@ func New(base mb.BaseMetricSet) (mb.MetricSet, error) { if err := base.Module().UnpackConfig(&config); err != nil { return nil, err } - - logger := logp.NewLogger(moduleName) + logger := base.Logger() r, err := NewEventReader(config, logger) if err != nil {