remote_syslog 1.3.1 → 1.4.0

Sign up to get free protection for your applications and to get access to all the features.
data/lib/remote_syslog.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module RemoteSyslog
2
- VERSION = "1.3.1"
2
+ VERSION = "1.4.0"
3
3
  end
4
4
 
5
5
  require 'remote_syslog/reader'
@@ -104,14 +104,14 @@ module RemoteSyslog
104
104
  @dest_port ||= 514
105
105
 
106
106
  if @files.empty?
107
- puts "No filenames provided and #{@configfile} not found."
107
+ puts "No filenames provided and #{@configfile} not found or malformed."
108
108
  puts ''
109
109
  puts op
110
110
  exit
111
111
  end
112
112
 
113
113
  # handle relative paths before Daemonize changes the wd to / and expand wildcards
114
- @files = @files.map { |f| Dir.glob(f) }.flatten.map { |f| File.expand_path(f) }.uniq
114
+ @files = @files.flatten.map { |f| File.expand_path(f) }.uniq
115
115
 
116
116
  end
117
117
 
@@ -161,7 +161,11 @@ module RemoteSyslog
161
161
 
162
162
  @files.each do |path|
163
163
  begin
164
- EventMachine::file_tail(path, RemoteSyslog::Reader,
164
+ glob_check_interval = 60
165
+ exclude_files = []
166
+
167
+ EventMachine::FileGlobWatchTail.new(path, RemoteSyslog::Reader,
168
+ glob_check_interval, exclude_files,
165
169
  @dest_host, @dest_port,
166
170
  :socket => connection, :facility => @facility,
167
171
  :severity => @severity, :strip_color => @strip_color,
@@ -173,4 +177,4 @@ module RemoteSyslog
173
177
  end
174
178
  end
175
179
  end
176
- end
180
+ end
@@ -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.3.1'
12
- s.date = '2011-08-04'
11
+ s.version = '1.4.0'
12
+ s.date = '2011-09-08'
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,97 +1,86 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: remote_syslog
3
- version: !ruby/object:Gem::Version
4
- prerelease: false
5
- segments:
6
- - 1
7
- - 3
8
- - 1
9
- version: 1.3.1
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.4.0
5
+ prerelease:
10
6
  platform: ruby
11
- authors:
7
+ authors:
12
8
  - Troy Davis
13
9
  - Eric Lindvall
14
10
  autorequire:
15
11
  bindir: bin
16
12
  cert_chain: []
17
-
18
- date: 2011-08-04 00:00:00 -07:00
19
- default_executable: remote_syslog
20
- dependencies:
21
- - !ruby/object:Gem::Dependency
13
+ date: 2011-09-08 00:00:00.000000000Z
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
22
16
  name: daemons
23
- prerelease: false
24
- requirement: &id001 !ruby/object:Gem::Requirement
25
- requirements:
26
- - - ">="
27
- - !ruby/object:Gem::Version
28
- segments:
29
- - 0
30
- version: "0"
17
+ requirement: &70242668583180 !ruby/object:Gem::Requirement
18
+ none: false
19
+ requirements:
20
+ - - ! '>='
21
+ - !ruby/object:Gem::Version
22
+ version: '0'
31
23
  type: :runtime
32
- version_requirements: *id001
33
- - !ruby/object:Gem::Dependency
34
- name: eventmachine
35
24
  prerelease: false
36
- requirement: &id002 !ruby/object:Gem::Requirement
37
- requirements:
25
+ version_requirements: *70242668583180
26
+ - !ruby/object:Gem::Dependency
27
+ name: eventmachine
28
+ requirement: &70242668582620 !ruby/object:Gem::Requirement
29
+ none: false
30
+ requirements:
38
31
  - - ~>
39
- - !ruby/object:Gem::Version
40
- segments:
41
- - 0
42
- - 12
43
- - 10
32
+ - !ruby/object:Gem::Version
44
33
  version: 0.12.10
45
34
  type: :runtime
46
- version_requirements: *id002
47
- - !ruby/object:Gem::Dependency
48
- name: eventmachine-tail
49
35
  prerelease: false
50
- requirement: &id003 !ruby/object:Gem::Requirement
51
- requirements:
52
- - - ">="
53
- - !ruby/object:Gem::Version
54
- segments:
55
- - 0
56
- version: "0"
36
+ version_requirements: *70242668582620
37
+ - !ruby/object:Gem::Dependency
38
+ name: eventmachine-tail
39
+ requirement: &70242668582200 !ruby/object:Gem::Requirement
40
+ none: false
41
+ requirements:
42
+ - - ! '>='
43
+ - !ruby/object:Gem::Version
44
+ version: '0'
57
45
  type: :runtime
58
- version_requirements: *id003
59
- - !ruby/object:Gem::Dependency
60
- name: syslog_protocol
61
46
  prerelease: false
62
- requirement: &id004 !ruby/object:Gem::Requirement
63
- requirements:
64
- - - ">="
65
- - !ruby/object:Gem::Version
66
- segments:
67
- - 0
68
- version: "0"
47
+ version_requirements: *70242668582200
48
+ - !ruby/object:Gem::Dependency
49
+ name: syslog_protocol
50
+ requirement: &70242668608600 !ruby/object:Gem::Requirement
51
+ none: false
52
+ requirements:
53
+ - - ! '>='
54
+ - !ruby/object:Gem::Version
55
+ version: '0'
69
56
  type: :runtime
70
- version_requirements: *id004
71
- - !ruby/object:Gem::Dependency
72
- name: em-resolv-replace
73
57
  prerelease: false
74
- requirement: &id005 !ruby/object:Gem::Requirement
75
- requirements:
76
- - - ">="
77
- - !ruby/object:Gem::Version
78
- segments:
79
- - 0
80
- version: "0"
58
+ version_requirements: *70242668608600
59
+ - !ruby/object:Gem::Dependency
60
+ name: em-resolv-replace
61
+ requirement: &70242668608180 !ruby/object:Gem::Requirement
62
+ none: false
63
+ requirements:
64
+ - - ! '>='
65
+ - !ruby/object:Gem::Version
66
+ version: '0'
81
67
  type: :runtime
82
- version_requirements: *id005
83
- description: Lightweight daemon to tail one or more log files and transmit UDP syslog messages to a remote syslog host (centralized log aggregation). Generates UDP packets itself instead of depending on a system syslog daemon, so it doesn't affect system-wide logging configuration.
84
- email:
68
+ prerelease: false
69
+ version_requirements: *70242668608180
70
+ description: Lightweight daemon to tail one or more log files and transmit UDP syslog
71
+ messages to a remote syslog host (centralized log aggregation). Generates UDP packets
72
+ itself instead of depending on a system syslog daemon, so it doesn't affect system-wide
73
+ logging configuration.
74
+ email:
85
75
  - troy@sevenscale.com
86
76
  - eric@sevenscale.com
87
- executables:
77
+ executables:
88
78
  - remote_syslog
89
79
  extensions: []
90
-
91
- extra_rdoc_files:
80
+ extra_rdoc_files:
92
81
  - README.md
93
82
  - LICENSE
94
- files:
83
+ files:
95
84
  - Gemfile
96
85
  - LICENSE
97
86
  - README.md
@@ -107,35 +96,30 @@ files:
107
96
  - lib/remote_syslog/tls_endpoint.rb
108
97
  - lib/remote_syslog/udp_endpoint.rb
109
98
  - remote_syslog.gemspec
110
- has_rdoc: true
111
99
  homepage: http://github.com/papertrail/remote_syslog
112
100
  licenses: []
113
-
114
101
  post_install_message:
115
- rdoc_options:
102
+ rdoc_options:
116
103
  - --charset=UTF-8
117
- require_paths:
104
+ require_paths:
118
105
  - lib
119
- required_ruby_version: !ruby/object:Gem::Requirement
120
- requirements:
121
- - - ">="
122
- - !ruby/object:Gem::Version
123
- segments:
124
- - 0
125
- version: "0"
126
- required_rubygems_version: !ruby/object:Gem::Requirement
127
- requirements:
128
- - - ">="
129
- - !ruby/object:Gem::Version
130
- segments:
131
- - 0
132
- version: "0"
106
+ required_ruby_version: !ruby/object:Gem::Requirement
107
+ none: false
108
+ requirements:
109
+ - - ! '>='
110
+ - !ruby/object:Gem::Version
111
+ version: '0'
112
+ required_rubygems_version: !ruby/object:Gem::Requirement
113
+ none: false
114
+ requirements:
115
+ - - ! '>='
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
133
118
  requirements: []
134
-
135
119
  rubyforge_project: remote_syslog
136
- rubygems_version: 1.3.6
120
+ rubygems_version: 1.8.7
137
121
  signing_key:
138
122
  specification_version: 2
139
- summary: Monitor plain text log file(s) for new entries and send to remote syslog collector
123
+ summary: Monitor plain text log file(s) for new entries and send to remote syslog
124
+ collector
140
125
  test_files: []
141
-