remote_syslog 1.6.7.2 → 1.6.8

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -241,6 +241,7 @@ then the log message, use parse_fields with this regex:
241
241
  Per-file regexes are not supported. Run multiple instances with different
242
242
  config files.
243
243
 
244
+
244
245
  ### Excluding lines matching a pattern
245
246
 
246
247
  There may be certain log messages that you do not want to be sent. These may
@@ -253,6 +254,21 @@ exclude_patterns with an array or regexes:
253
254
  - \d+ things
254
255
 
255
256
 
257
+ ### Choosing app name
258
+
259
+ remote_syslog uses the log file name (like "access_log") as the syslog
260
+ program name, or what the syslog RFCs call the "tag." This is ideal unless
261
+ remote_syslog watches many files that have the same name.
262
+
263
+ In that case, tell remote_syslog to set another program name by creating
264
+ symbolic link to the generically-named file:
265
+
266
+ cd /path/to/logs
267
+ ln -s generic_name.log unique_name.log
268
+
269
+ Point remote_syslog at unique_name.log. It will use that as the program name.
270
+
271
+
256
272
  ## Reporting bugs
257
273
 
258
274
  1. See whether the issue has already been reported: <https://github.com/papertrail/remote_syslog/issues/>
@@ -17,7 +17,7 @@ EXTRAOPTIONS=""
17
17
 
18
18
  pid_file="$pid_dir/$prog.pid"
19
19
 
20
- PATH=/sbin:/bin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
20
+ PATH=/sbin:/bin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:$PATH
21
21
 
22
22
  RETVAL=0
23
23
 
data/lib/remote_syslog.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  module RemoteSyslog
2
- VERSION = "1.6.7.2"
2
+ VERSION = "1.6.8"
3
3
  end
4
4
 
@@ -246,7 +246,7 @@ module RemoteSyslog
246
246
  end
247
247
 
248
248
  if @no_detach
249
- puts "Watching #{@agent.files.length} files/paths. Sending to #{@agent.destination_host}:#{@agent.destination_port} (#{@agent.tls ? 'TCP/TLS' : 'UDP'})."
249
+ puts "Watching #{@agent.files.length} files/globs. Sending to #{@agent.destination_host}:#{@agent.destination_port} (#{@agent.tls ? 'TCP/TLS' : 'UDP'})."
250
250
  @agent.run
251
251
  else
252
252
  daemon = Servolux::Daemon.new(:server => @agent, :after_fork => method(:redirect_io))
@@ -255,7 +255,7 @@ module RemoteSyslog
255
255
  error "Already running at #{@agent.pid_file}. To run another instance, specify a different `--pid-file`.", true
256
256
  end
257
257
 
258
- puts "Watching #{@agent.files.length} files/paths. Sending to #{@agent.destination_host}:#{@agent.destination_port} (#{@agent.tls ? 'TCP/TLS' : 'UDP'})."
258
+ puts "Watching #{@agent.files.length} files/globs. Sending to #{@agent.destination_host}:#{@agent.destination_port} (#{@agent.tls ? 'TCP/TLS' : 'UDP'})."
259
259
  daemon.startup
260
260
  end
261
261
  rescue Servolux::Daemon::StartupError => e
@@ -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.7.2'
12
- s.date = '2012-09-18'
11
+ s.version = '1.6.8'
12
+ s.date = '2012-10-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 'servolux'
44
44
  s.add_dependency 'file-tail'
45
45
  s.add_dependency 'eventmachine', [ '>= 0.12.10', '< 1.1' ]
46
- s.add_dependency 'eventmachine-tail'
46
+ s.add_dependency 'eventmachine-tail', [ '>= 0.6.4' ]
47
47
  s.add_dependency 'syslog_protocol', [ '~> 0.9.2' ]
48
48
  s.add_dependency 'em-resolv-replace'
49
49
 
metadata CHANGED
@@ -5,9 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 1
7
7
  - 6
8
- - 7
9
- - 2
10
- version: 1.6.7.2
8
+ - 8
9
+ version: 1.6.8
11
10
  platform: ruby
12
11
  authors:
13
12
  - Troy Davis
@@ -16,7 +15,7 @@ autorequire:
16
15
  bindir: bin
17
16
  cert_chain: []
18
17
 
19
- date: 2012-09-18 00:00:00 -07:00
18
+ date: 2012-10-23 00:00:00 -07:00
20
19
  default_executable: remote_syslog
21
20
  dependencies:
22
21
  - !ruby/object:Gem::Dependency
@@ -72,7 +71,9 @@ dependencies:
72
71
  - !ruby/object:Gem::Version
73
72
  segments:
74
73
  - 0
75
- version: "0"
74
+ - 6
75
+ - 4
76
+ version: 0.6.4
76
77
  type: :runtime
77
78
  version_requirements: *id004
78
79
  - !ruby/object:Gem::Dependency