class Processor

Defined in:

processor.cr

Constant Summary

LOGPLEX = ENV["CL_LOGPLEX"]? || ""
LOOKUP_HASH = {"Jan" => 1, "Feb" => 2, "Mar" => 3, "Apr" => 4, "May" => 5, "Jun" => 6, "Jul" => 7, "Aug" => 8, "Sep" => 9, "Oct" => 10, "Nov" => 11, "Dec" => 12}
TAG_TOKENIZER = "."
TIME_SEGMENT = "%Y-%m-%dT%H:%M:%S"
TOKEN = ENV["CL_TOKEN"]?
VERSIONS = [:syslog, :rsyslog_micro, :rsyslog_full, :rsyslog_plus, :syslog_5424]

Constructors

Instance Method Summary

Constructor Detail

def self.new #

[View source]

Instance Method Detail

def atomic_counter #

[View source]
def build_date(month : String, day : String, time : String) #

[View source]
def determine_format(data : String) : Hash(Symbol, Array(String)) #

[View source]
def get_facility_from_segment(segment : String) #

[View source]
def get_timestamp_from_segment(segments : Array(String)) #

[View source]
def normalize(segments : Array(String)) : SyslogData #

[View source]
def normalize_data(log_type : Symbol, segments : Array(String)) : SyslogData #

[View source]
def process(data : String) : SyslogData | Nil #

[View source]
def split_data(data : String) : SyslogData #

[View source]
def validate_tag(tag) #

[View source]