Sha256: 703d746c07f7cb5e43cf4993a3dfc7968aec823317ccc12beaa4ba39c9565dbe
Contents?: true
Size: 371 Bytes
Versions: 1
Compression:
Stored size: 371 Bytes
Contents
module Fluent class TextParser parser_elasticsearch = Proc.new { RegexpParser.new( /^\[(?<time>[^ ]* [^ ]*)\]\[(?<log_level>[^ ]*) *?\]\[(?<log_type>[^ ]*) *\] \[(?<node_name>[^ ]*) *\] (?<message>.+)/, {'time_format' => "%Y-%m-%d %H:%M:%S,%L"} ) } TextParser.register_template('elasticsearch', parser_elasticsearch) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fluent-parser-elasticsearch-0.0.1 | lib/fluent/plugin/parser_elasticsearch.rb |