remote_syslog 1.6.4 → 1.6.4.1
Sign up to get free protection for your applications and to get access to all the features.
- data/examples/remote_syslog.init.d +9 -0
- data/lib/remote_syslog/reader.rb +5 -1
- data/lib/remote_syslog.rb +1 -1
- data/remote_syslog.gemspec +2 -2
- metadata +12 -12
data/lib/remote_syslog/reader.rb
CHANGED
@@ -42,12 +42,16 @@ module RemoteSyslog
|
|
42
42
|
@packet.facility = options[:facility] || 'user'
|
43
43
|
@packet.severity = options[:severity] || 'notice'
|
44
44
|
|
45
|
-
tag = options[:program]
|
45
|
+
tag = options[:program] || File.basename(path) || File.basename($0)
|
46
|
+
|
47
|
+
# Remove characters that can't be in a tag
|
48
|
+
tag = tag.gsub(%r{[: \]\[\\]+}, '-')
|
46
49
|
|
47
50
|
# Make sure the tag isn't too long
|
48
51
|
if tag.length > 32
|
49
52
|
tag = tag[0..31]
|
50
53
|
end
|
54
|
+
|
51
55
|
@packet.tag = tag
|
52
56
|
end
|
53
57
|
|
data/lib/remote_syslog.rb
CHANGED
data/remote_syslog.gemspec
CHANGED
@@ -8,8 +8,8 @@ Gem::Specification.new do |s|
|
|
8
8
|
## If your rubyforge_project name is different, then edit it and comment out
|
9
9
|
## the sub! line in the Rakefile
|
10
10
|
s.name = 'remote_syslog'
|
11
|
-
s.version = '1.6.4'
|
12
|
-
s.date = '2012-
|
11
|
+
s.version = '1.6.4.1'
|
12
|
+
s.date = '2012-05-03'
|
13
13
|
s.rubyforge_project = 'remote_syslog'
|
14
14
|
|
15
15
|
## Make sure your summary is short. The description may be as long
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: remote_syslog
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.6.4
|
4
|
+
version: 1.6.4.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,11 +10,11 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2012-
|
13
|
+
date: 2012-05-03 00:00:00.000000000Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: daemons
|
17
|
-
requirement: &
|
17
|
+
requirement: &70108001407180 !ruby/object:Gem::Requirement
|
18
18
|
none: false
|
19
19
|
requirements:
|
20
20
|
- - ! '>='
|
@@ -22,10 +22,10 @@ dependencies:
|
|
22
22
|
version: '0'
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
|
-
version_requirements: *
|
25
|
+
version_requirements: *70108001407180
|
26
26
|
- !ruby/object:Gem::Dependency
|
27
27
|
name: eventmachine
|
28
|
-
requirement: &
|
28
|
+
requirement: &70108001406600 !ruby/object:Gem::Requirement
|
29
29
|
none: false
|
30
30
|
requirements:
|
31
31
|
- - ! '>='
|
@@ -36,10 +36,10 @@ dependencies:
|
|
36
36
|
version: '1.1'
|
37
37
|
type: :runtime
|
38
38
|
prerelease: false
|
39
|
-
version_requirements: *
|
39
|
+
version_requirements: *70108001406600
|
40
40
|
- !ruby/object:Gem::Dependency
|
41
41
|
name: eventmachine-tail
|
42
|
-
requirement: &
|
42
|
+
requirement: &70108001430980 !ruby/object:Gem::Requirement
|
43
43
|
none: false
|
44
44
|
requirements:
|
45
45
|
- - ! '>='
|
@@ -47,10 +47,10 @@ dependencies:
|
|
47
47
|
version: '0'
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
|
-
version_requirements: *
|
50
|
+
version_requirements: *70108001430980
|
51
51
|
- !ruby/object:Gem::Dependency
|
52
52
|
name: syslog_protocol
|
53
|
-
requirement: &
|
53
|
+
requirement: &70108001430420 !ruby/object:Gem::Requirement
|
54
54
|
none: false
|
55
55
|
requirements:
|
56
56
|
- - ~>
|
@@ -58,10 +58,10 @@ dependencies:
|
|
58
58
|
version: 0.9.2
|
59
59
|
type: :runtime
|
60
60
|
prerelease: false
|
61
|
-
version_requirements: *
|
61
|
+
version_requirements: *70108001430420
|
62
62
|
- !ruby/object:Gem::Dependency
|
63
63
|
name: em-resolv-replace
|
64
|
-
requirement: &
|
64
|
+
requirement: &70108001430000 !ruby/object:Gem::Requirement
|
65
65
|
none: false
|
66
66
|
requirements:
|
67
67
|
- - ! '>='
|
@@ -69,7 +69,7 @@ dependencies:
|
|
69
69
|
version: '0'
|
70
70
|
type: :runtime
|
71
71
|
prerelease: false
|
72
|
-
version_requirements: *
|
72
|
+
version_requirements: *70108001430000
|
73
73
|
description: Lightweight daemon to tail one or more log files and transmit UDP syslog
|
74
74
|
messages to a remote syslog host (centralized log aggregation). Generates UDP packets
|
75
75
|
itself instead of depending on a system syslog daemon, so it doesn't affect system-wide
|