Registry / networking / syslog-protocol

syslog-protocol

JSON →
library0.9.2rbrubygemsunverified

Syslog Protocol is a parser and generator for the syslog protocol, handling RFC 3164 and RFC 5424 formats.

gem install syslog_protocol
INSTALL
IMPORT
SIG · SYSLOG-PROTOCOL
S
syslog-protocol
networkingrubyv0.9.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Syslog::Protocol
require 'syslog/protocol'

Parse a syslog message into its components

require 'syslog/protocol' # Parse a syslog message message = Syslog::Protocol.parse('<14>2023-01-01T00:00:00Z hostname app[123]: test message') puts message.facility # => 1 puts message.severity # => 6
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.9.2latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
32 hits · last 30 days
node
26
Resources
syslog-protocol — gem install syslog-protocol · libregistry