{"repo":"leodido/go-syslog","free":true,"listed":false,"github":"https://github.com/leodido/go-syslog","clone":"git clone https://github.com/leodido/go-syslog.git","description":"Blazing fast syslog parsers","language":"Go","stars":88,"topics":["builder","logging","logs","openbsd","parser","ragel","rfc3164","rfc5424","rfc5425","rfc5426"],"license":"MIT","category":"analytics","readme_excerpt":"Parsers for syslog messages and transports Blazing fast Syslog parsers By @leodido . This is the official continuation of influxdata/go-syslog . This module includes: - an RFC 5424-compliant parser and builder - an RFC 3164-compliant parser for BSD syslog messages - an auto-detect parser that selects RFC 3164 or RFC 5424 per message - an RFC 3195 parser for syslog over BEEP, including RAW and COOKED profiles - an octet-counting stream parser for RFC 6587 transparent framing - a non-transparent stream parser for RFC 6587 delimiter framing It can parse syslog messages received over: - TLS with octet counting (RFC 5425) - TCP with non-transparent framing or octet counting (RFC 6587) - UDP carrying one message per packet (RFC 5426) Installation Requires Go 1.22 or later. Docs The docs directory contains .dot files representing the finite-state machines (FSMs) implementing the syslog parsers and transports. Usage Parse RFC 5424 messages with rfc5424.NewParser . The RFC 3164 parser uses the same interface; its options are demonstrated in rfc3164/example test.go. Messages without PRI Both parsers require PRI by default. Use WithOptionalPriority() to accept an otherwise valid message without it: When PRI is absent, Priority , Facility , and Severity are nil. Options can be combined; for example, VMware ESXi messages commonly need both optional PRI and fractional RFC 3339 timestamps: Best effort mode With WithBestEffort() , a parse error returns the fields collected before the failure","default_branch":null,"files":null,"tree":[],"storefront":"/r/leodido","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/leodido/go-syslog/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}