remote_syslog 1.6.2 → 1.6.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/remote_syslog.rb +1 -1
- data/lib/remote_syslog/cli.rb +7 -1
- data/lib/remote_syslog/reader.rb +2 -1
- data/remote_syslog.gemspec +3 -3
- metadata +13 -13
data/lib/remote_syslog.rb
CHANGED
data/lib/remote_syslog/cli.rb
CHANGED
@@ -175,6 +175,11 @@ module RemoteSyslog
|
|
175
175
|
begin
|
176
176
|
glob_check_interval = 60
|
177
177
|
exclude_files = []
|
178
|
+
max_message_size = 1024
|
179
|
+
|
180
|
+
if @tls
|
181
|
+
max_message_size = 10240
|
182
|
+
end
|
178
183
|
|
179
184
|
EventMachine::FileGlobWatchTail.new(path, RemoteSyslog::Reader,
|
180
185
|
glob_check_interval, exclude_files,
|
@@ -182,7 +187,8 @@ module RemoteSyslog
|
|
182
187
|
:socket => connection, :facility => @facility,
|
183
188
|
:severity => @severity, :strip_color => @strip_color,
|
184
189
|
:hostname => @hostname, :parse_fields => @parse_fields,
|
185
|
-
:exclude_pattern => @exclude_pattern
|
190
|
+
:exclude_pattern => @exclude_pattern,
|
191
|
+
:max_message_size => max_message_size)
|
186
192
|
rescue Errno::ENOENT => e
|
187
193
|
puts "#{path} not found, continuing. (#{e.message})"
|
188
194
|
end
|
data/lib/remote_syslog/reader.rb
CHANGED
@@ -20,6 +20,7 @@ module RemoteSyslog
|
|
20
20
|
@parse_fields = options[:parse_fields]
|
21
21
|
@strip_color = options[:strip_color]
|
22
22
|
@exclude_pattern = options[:exclude_pattern]
|
23
|
+
@max_message_size = options[:max_message_size] || 1024
|
23
24
|
|
24
25
|
@socket = options[:socket] || UdpEndpoint.new(destination_address, destination_port)
|
25
26
|
|
@@ -72,7 +73,7 @@ module RemoteSyslog
|
|
72
73
|
end
|
73
74
|
end
|
74
75
|
|
75
|
-
@socket.write(packet.assemble)
|
76
|
+
@socket.write(packet.assemble(@max_message_size))
|
76
77
|
end
|
77
78
|
|
78
79
|
def on_exception(exception)
|
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.
|
12
|
-
s.date = '2012-04-
|
11
|
+
s.version = '1.6.3'
|
12
|
+
s.date = '2012-04-23'
|
13
13
|
s.rubyforge_project = 'remote_syslog'
|
14
14
|
|
15
15
|
## Make sure your summary is short. The description may be as long
|
@@ -43,7 +43,7 @@ Gem::Specification.new do |s|
|
|
43
43
|
s.add_dependency 'daemons'
|
44
44
|
s.add_dependency 'eventmachine', [ '~> 0.12.10' ]
|
45
45
|
s.add_dependency 'eventmachine-tail'
|
46
|
-
s.add_dependency 'syslog_protocol', [ '~> 0.9.
|
46
|
+
s.add_dependency 'syslog_protocol', [ '~> 0.9.2' ]
|
47
47
|
s.add_dependency 'em-resolv-replace'
|
48
48
|
|
49
49
|
## List your development dependencies here. Development dependencies are
|
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
|
+
version: 1.6.3
|
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-
|
13
|
+
date: 2012-04-23 00:00:00.000000000Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: daemons
|
17
|
-
requirement: &
|
17
|
+
requirement: &70330060852200 !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: *70330060852200
|
26
26
|
- !ruby/object:Gem::Dependency
|
27
27
|
name: eventmachine
|
28
|
-
requirement: &
|
28
|
+
requirement: &70330060851640 !ruby/object:Gem::Requirement
|
29
29
|
none: false
|
30
30
|
requirements:
|
31
31
|
- - ~>
|
@@ -33,10 +33,10 @@ dependencies:
|
|
33
33
|
version: 0.12.10
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
|
-
version_requirements: *
|
36
|
+
version_requirements: *70330060851640
|
37
37
|
- !ruby/object:Gem::Dependency
|
38
38
|
name: eventmachine-tail
|
39
|
-
requirement: &
|
39
|
+
requirement: &70330060876300 !ruby/object:Gem::Requirement
|
40
40
|
none: false
|
41
41
|
requirements:
|
42
42
|
- - ! '>='
|
@@ -44,21 +44,21 @@ dependencies:
|
|
44
44
|
version: '0'
|
45
45
|
type: :runtime
|
46
46
|
prerelease: false
|
47
|
-
version_requirements: *
|
47
|
+
version_requirements: *70330060876300
|
48
48
|
- !ruby/object:Gem::Dependency
|
49
49
|
name: syslog_protocol
|
50
|
-
requirement: &
|
50
|
+
requirement: &70330060875740 !ruby/object:Gem::Requirement
|
51
51
|
none: false
|
52
52
|
requirements:
|
53
53
|
- - ~>
|
54
54
|
- !ruby/object:Gem::Version
|
55
|
-
version: 0.9.
|
55
|
+
version: 0.9.2
|
56
56
|
type: :runtime
|
57
57
|
prerelease: false
|
58
|
-
version_requirements: *
|
58
|
+
version_requirements: *70330060875740
|
59
59
|
- !ruby/object:Gem::Dependency
|
60
60
|
name: em-resolv-replace
|
61
|
-
requirement: &
|
61
|
+
requirement: &70330060875320 !ruby/object:Gem::Requirement
|
62
62
|
none: false
|
63
63
|
requirements:
|
64
64
|
- - ! '>='
|
@@ -66,7 +66,7 @@ dependencies:
|
|
66
66
|
version: '0'
|
67
67
|
type: :runtime
|
68
68
|
prerelease: false
|
69
|
-
version_requirements: *
|
69
|
+
version_requirements: *70330060875320
|
70
70
|
description: Lightweight daemon to tail one or more log files and transmit UDP syslog
|
71
71
|
messages to a remote syslog host (centralized log aggregation). Generates UDP packets
|
72
72
|
itself instead of depending on a system syslog daemon, so it doesn't affect system-wide
|