-
Clone this project to
elastic/beats/libbeat/output/
-
Modify
elastic/beats/libbeat/publisher/includes/includes.go
:// add import import _ "github.com/elastic/beats/libbeat/output/tcp"
-
Compile beats
output.tcp:
host: 127.0.0.1
port: 8080
ssl:
enable: true
cert_path: ...
key_path: ...
buffer_size: 1024
writev: false
line_delimiter: \n
codec: ...
The buffer size of bufio.Writer
and net.Buffers
. Default 1<<15 (32768).
Whether enable writev
(a batch write optimization to reduce syscall). Default true.
Specify the characters used to split the output events. Default \n.
Output codec configuration. If the codec section is missing, events will be json encoded using the pretty option.
See Change the output codec for more information.