File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ package inputs
1919
2020import (
2121 "github.com/elastic/beats/v7/filebeat/beater"
22+ "github.com/elastic/beats/v7/filebeat/input/filestream"
2223 "github.com/elastic/beats/v7/filebeat/input/unix"
2324 v2 "github.com/elastic/beats/v7/filebeat/input/v2"
2425 "github.com/elastic/beats/v7/libbeat/beat"
@@ -27,13 +28,14 @@ import (
2728
2829func Init (info beat.Info , log * logp.Logger , components beater.StateStore ) []v2.Plugin {
2930 return append (
30- genericInputs (),
31+ genericInputs (log , components ),
3132 osInputs (info , log , components )... ,
3233 )
3334}
3435
35- func genericInputs () []v2.Plugin {
36+ func genericInputs (log * logp. Logger , components beater. StateStore ) []v2.Plugin {
3637 return []v2.Plugin {
38+ filestream .Plugin (log , components ),
3739 unix .Plugin (),
3840 }
3941}
Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ type fileWatcher struct {
7474
7575func newFileWatcher (paths []string , ns * common.ConfigNamespace ) (loginp.FSWatcher , error ) {
7676 if ns == nil {
77- return newScannerWatcher (paths , nil )
77+ return newScannerWatcher (paths , common . NewConfig () )
7878 }
7979
8080 watcherType := ns .Name ()
You can’t perform that action at this time.
0 commit comments