diff --git a/auditbeat/module/file_integrity/eventreader_unsupported.go b/auditbeat/module/file_integrity/eventreader_unsupported.go index d039cc1bfe0..e83489fb4fc 100644 --- a/auditbeat/module/file_integrity/eventreader_unsupported.go +++ b/auditbeat/module/file_integrity/eventreader_unsupported.go @@ -26,5 +26,5 @@ import ( ) func NewEventReader(c Config, logger *logp.Logger) (EventProducer, error) { - return errors.New("file auditing metricset is not implemented on this system") + return nil, errors.New("file auditing metricset is not implemented on this system") }