syslogstash 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/syslogstash/syslog_reader.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 84f7fa134c15c370b86eb8bc685b4fb900c7c68d
|
4
|
+
data.tar.gz: 31fbe3ad2d1e28f43a9ab3631b634c3c9fb78ee7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9b8d20f5cc43ab7746247866358b6599a1bd92dcefee0b5681db88b820481159d6d15bd0d3167eec071824866f72d9383b1477d1cc420548cdc1e65440f48b81
|
7
|
+
data.tar.gz: be68092ce035ebec4da5e5a643bbc07b8312cf085a5083f94ab8b6605a903d67b4ba4e06f60ee10fabdd4f71b700427fb021233b1771d95e479ca6628362e23d
|
@@ -59,10 +59,10 @@ class Syslogstash::SyslogReader
|
|
59
59
|
# Lo! the many ways that syslog messages can be formatted
|
60
60
|
hostname, program, pid, message = case content
|
61
61
|
# the gold standard: hostname, program name with optional PID
|
62
|
-
when /^([a-zA-Z0-
|
62
|
+
when /^([a-zA-Z0-9._-]*[^:]) (\S+?)(\[(\d+)\])?: (.*)$/
|
63
63
|
[$1, $2, $4, $5]
|
64
64
|
# hostname, no program name
|
65
|
-
when /^([a-zA-Z0-
|
65
|
+
when /^([a-zA-Z0-9._-]+) (\S+[^:] .*)$/
|
66
66
|
[$1, nil, nil, $2]
|
67
67
|
# program name, no hostname (yeah, you heard me, non-RFC compliant!)
|
68
68
|
when /^(\S+?)(\[(\d+)\])?: (.*)$/
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: syslogstash
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matt Palmer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-09-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: prometheus-client
|