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.
@@ -1,4 +1,13 @@
1
1
  #!/bin/bash
2
+ #
3
+ # /etc/init.d/remote_syslog
4
+ #
5
+ # Starts the remote_syslog daemon
6
+ #
7
+ # chkconfig: 345 90 5
8
+ # description: Runs remote_syslog
9
+ #
10
+ # processname: remote_syslog
2
11
 
3
12
  prog="remote_syslog"
4
13
  config="/etc/log_files.yml"
@@ -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] || File.basename(path) || File.basename($0)
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
@@ -1,5 +1,5 @@
1
1
  module RemoteSyslog
2
- VERSION = "1.6.4"
2
+ VERSION = "1.6.4.1"
3
3
  end
4
4
 
5
5
  require 'remote_syslog/reader'
@@ -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-04-30'
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-04-30 00:00:00.000000000Z
13
+ date: 2012-05-03 00:00:00.000000000Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: daemons
17
- requirement: &70124293454580 !ruby/object:Gem::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: *70124293454580
25
+ version_requirements: *70108001407180
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: eventmachine
28
- requirement: &70124293479080 !ruby/object:Gem::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: *70124293479080
39
+ version_requirements: *70108001406600
40
40
  - !ruby/object:Gem::Dependency
41
41
  name: eventmachine-tail
42
- requirement: &70124293478400 !ruby/object:Gem::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: *70124293478400
50
+ version_requirements: *70108001430980
51
51
  - !ruby/object:Gem::Dependency
52
52
  name: syslog_protocol
53
- requirement: &70124293477840 !ruby/object:Gem::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: *70124293477840
61
+ version_requirements: *70108001430420
62
62
  - !ruby/object:Gem::Dependency
63
63
  name: em-resolv-replace
64
- requirement: &70124293477420 !ruby/object:Gem::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: *70124293477420
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