Skip to content

TCP output for beats to send events over TCP socket.

License

Notifications You must be signed in to change notification settings

ichxxx/beats-tcp-output

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

beats-tcp-output

How To Use

  1. Clone this project to elastic/beats/libbeat/output/

  2. Modify elastic/beats/libbeat/publisher/includes/includes.go :

    // add import
    import _ "github.com/elastic/beats/libbeat/output/tcp"
  3. Compile beats

Configuration

Example

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: ...

Options

buffer_size

The buffer size of bufio.Writer and net.Buffers. Default 1<<15 (32768).

writev

Whether enable writev (a batch write optimization to reduce syscall). Default true.

line_delimiter

Specify the characters used to split the output events. Default \n.

codec

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.

About

TCP output for beats to send events over TCP socket.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages