Class: LogStash::Filters::Syslog_pri

Inherits:
Base
  • Object
show all
Defined in:
lib/logstash/filters/syslog_pri.rb

Overview

Filter plugin for logstash to parse the ‘PRI` field from the front of a Syslog (RFC3164) message. If no priority is set, it will default to 13 (per RFC).

This filter is based on the original ‘syslog.rb` code shipped with logstash.

Instance Method Summary collapse

Instance Method Details

#filter(event) ⇒ Object



68
69
70
71
72
# File 'lib/logstash/filters/syslog_pri.rb', line 68

def filter(event)
  
  parse_pri(event)
  filter_matched(event)
end

#registerObject



63
64
65
# File 'lib/logstash/filters/syslog_pri.rb', line 63

def register
  # Nothing
end