Sha256: 2fa696d579029e40988a52990d4c4ba8d591d240d54636ba5b31bca575f453a9
Contents?: true
Size: 516 Bytes
Versions: 1
Compression:
Stored size: 516 Bytes
Contents
require 'fluent_plugin_filter_parse_audit_log/version' require 'audit_log_parser' class FluentParseAuditLogFilter < Fluent::Filter Fluent::Plugin.register_filter('parse_audit_log', self) config_param :key, :string, :default => 'message' def filter(tag, time, record) line = record[@key] return record unless line AuditLogParser.parse_line(line) rescue => e log.warn "failed to parse a audit log: #{line}", error_class: e.class, error: e.message log.warn_backtrace record end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fluent-plugin-filter-parse-audit-log-0.1.0 | lib/fluent/plugin/filter_parse_audit_log.rb |