Skip to content

Commit ebbac4b

Browse files
author
maimaiti
committed
update the plugin
1 parent cb47072 commit ebbac4b

File tree

6 files changed

+247
-478
lines changed

6 files changed

+247
-478
lines changed

README.md

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,22 +19,20 @@ package main
1919
import (
2020
"os"
2121
22-
_ "github.com/raboof/beats-output-http"
22+
_ "filebeat/outputs/http"
2323
24-
"github.com/elastic/beats/libbeat/beat"
25-
"github.com/raboof/connbeat/beater"
24+
"github.com/elastic/beats/filebeat/cmd"
2625
)
2726
28-
var Name = "connbeat"
29-
3027
func main() {
31-
if err := beat.Run(Name, "", beater.New); err != nil {
28+
if err := cmd.RootCmd.Execute(); err != nil {
3229
os.Exit(1)
3330
}
3431
}
32+
3533
```
3634

37-
Then configure the http output plugin in yourbeat.yaml:
35+
Then configure the http output plugin in filebeat.yaml:
3836

3937
```
4038
output:

0 commit comments

Comments
 (0)