syslogout

package module
v0.0.0-...-c842938 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 22, 2018 License: Apache-2.0 Imports: 11 Imported by: 0

README

beats-output-remote-syslog

Simple Elastic Beats output to remote syslog plugin;
uses go-syslog from Hashicorp

Configuration options

  • host: hostname of remote syslog collector (string, default: 127.0.0.1)
  • port: port (integer, default: 514)
  • proto: protocol udp or tcp (string, default: udp)
    see also golang net.Dial documentation
  • facility: syslog facility (string, default LOCAL0)
  • severity: syslog severity (string, default WARNING)

Building

  • clone this repo
  • clone Elastic Beats repository, get dependencies
  • apply patch on Beats repository
  • build filebeat
cd
go get github.com/remil1000/beats-output-remote-syslog
go get github.com/elastic/beats
cd ${GOPATH:-go}/src/github.com/remil1000/beats-output-remote-syslog
go get ./...
cd ${GOPATH:-go}/src/github.com/elastic/beats
go get ./...
patch -p1 < ../../../github.com/remil1000/beats-output-remote-syslog/*.patch
cd filebeat
make

Example configuration

filebeat.prospectors:
- type: log
  ignore_older: 2h
  enabled: true
  paths:
    - /var/log/*.log
    - /var/log/syslog
#output.console:
#  pretty: true
output.syslog:
  host: "127.0.0.1"  # default 127.0.0.1
  severity: "CRIT"   # default warning
  facility: "local4" # default local0
  port: 514          # default 514
  proto: "udp"       # default udp
  codec.format:
    string: 'file:"%{[source]}" message:"%{[message]}"'

Supported severity

  • EMERG
  • ALERT
  • CRIT
  • ERR
  • WARNING
  • NOTICE
  • INFO
  • DEBUG

Supported facility

  • KERN
  • USER
  • MAIL
  • DAEMON
  • AUTH
  • SYSLOG
  • LPR
  • NEWS
  • UUCP
  • CRON
  • AUTHPRIV
  • FTP
  • LOCAL0
  • LOCAL1
  • LOCAL2
  • LOCAL3
  • LOCAL4
  • LOCAL5
  • LOCAL6
  • LOCAL7

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL