Skip to content
This repository has been archived by the owner on Jul 6, 2020. It is now read-only.

Latest commit

 

History

History
27 lines (19 loc) · 1.43 KB

README.md

File metadata and controls

27 lines (19 loc) · 1.43 KB

Go Report Card Build License

Repository archived. No longer actively maintained.

This project is not maintained anymore. I recommend you using https://github.com/influxdata/go-syslog/blob/develop/rfc5424/builder.go instead, which has all the features this library provided plus tons of others. It is also maintained by the InfluxDB engineering team, which ensures continuity on development.

syslog-format

A syslog formatter Golang library.

Standards

This library formats syslog messages according the RFC5424 and RFC3164.

Installation

$ go get github.com/smoya/syslog-format

Test

Coverage: https://gocover.io/github.com/smoya/syslog-format

TODO

  • Port syslog pkg dial functionality and adapt it with this formatter. The syslog only supports the RFC3164.
  • Add support for multiple structured data chunks. Right now only supports one, with the name context@{pid}.
  • Add support for standard structured data SD-ID. More info here.