Skip to content

Commit 896109e

Browse files
committed
Add README
1 parent ec69667 commit 896109e

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

README.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
beats-output-http
2+
=================
3+
4+
Outputter for the Elastic Beats platform that simply
5+
POSTs events to an HTTP endpoint.
6+
7+
Usage
8+
=====
9+
10+
To add support for this output plugin to a beat, you
11+
have to import this plugin into your main beats package,
12+
like this:
13+
14+
```
15+
package main
16+
17+
import (
18+
"os"
19+
20+
_ "github.com/raboof/beats-output-http"
21+
22+
"github.com/elastic/beats/libbeat/beat"
23+
"github.com/raboof/connbeat/beater"
24+
)
25+
26+
var Name = "connbeat"
27+
28+
func main() {
29+
if err := beat.Run(Name, "", beater.New); err != nil {
30+
os.Exit(1)
31+
}
32+
}
33+
```
34+
35+
Then configure the http output plugin in yourbeat.yaml:
36+
37+
```
38+
output:
39+
http:
40+
hosts: ["some.example.com:80/foo"]
41+
```

0 commit comments

Comments
 (0)