lib/fluent/plugin/logplex.rb in fluent-plugin-heroku-syslog-0.1.0 vs lib/fluent/plugin/logplex.rb in fluent-plugin-heroku-syslog-0.1.1
- old
+ new
@@ -1,7 +1,8 @@
module Fluent
module Logplex
SYSLOG_REGEXP = '/^([0-9]+)\\s+\\<(?<pri>[0-9]+)\\>[0-9]* (?<time>[^ ]*) (?<drain_id>[^ ]*) (?<ident>[a-zA-Z0-9_\\/\\.\\-]*) (?<pid>[a-zA-Z0-9\\.]+)? *(?<message>.*)$/'
+ SYSLOG_HTTP_REGEXP = '/^([0-9]+)\\s+\\<(?<pri>[0-9]+)\\>[0-9]* (?<time>[^ ]*) (?<drain_id>[^ ]*) (?<ident>[a-zA-Z0-9_\\/\\.\\-]*) (?<pid>[a-zA-Z0-9\\.]+)? *- *(?<message>.*)$/'
FACILITY_MAP = {
0 => 'kern',
1 => 'user',
2 => 'mail',