remote_syslog 1.6.6 → 1.6.6.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +20 -8
- data/lib/remote_syslog.rb +1 -1
- data/lib/remote_syslog/cli.rb +1 -1
- data/remote_syslog.gemspec +2 -2
- metadata +3 -2
data/README.md
CHANGED
@@ -11,7 +11,7 @@ Uses:
|
|
11
11
|
|
12
12
|
* collecting logs from servers & daemons which don't natively support syslog
|
13
13
|
* when reconfiguring the system logger is less convenient than a
|
14
|
-
purpose-built daemon (e.g., automated app deployments)
|
14
|
+
purpose-built daemon (e.g., automated app deployments)
|
15
15
|
* aggregating files not generated by daemons (e.g., package manager logs)
|
16
16
|
|
17
17
|
The library can also be used to generate one-off log messages from Ruby code.
|
@@ -33,10 +33,7 @@ specified as command-line arguments (below).
|
|
33
33
|
|
34
34
|
## Usage
|
35
35
|
|
36
|
-
|
37
|
-
Usage: remote_syslog [options] [<logfile>...]
|
38
|
-
|
39
|
-
Example: remote_syslog -c configs/logs.yml -p 12345 /var/log/mysqld.log
|
36
|
+
Usage: remote_syslog [OPTION]... <FILE>...
|
40
37
|
|
41
38
|
Options:
|
42
39
|
-c, --configfile PATH Path to config (/etc/log_files.yml)
|
@@ -45,13 +42,27 @@ specified as command-line arguments (below).
|
|
45
42
|
-D, --no-detach Don't daemonize and detach from the terminal
|
46
43
|
-f, --facility FACILITY Facility (user)
|
47
44
|
--hostname HOST Local hostname to send from
|
48
|
-
-P, --pid-dir DIRECTORY Directory to write .pid file in
|
49
|
-
--pid-file FILENAME PID
|
45
|
+
-P, --pid-dir DIRECTORY DEPRECATED: Directory to write .pid file in
|
46
|
+
--pid-file FILENAME Location of the PID file (default /Users/eric/remote_syslog.pid)
|
50
47
|
--parse-syslog Parse file as syslog-formatted file
|
51
48
|
-s, --severity SEVERITY Severity (notice)
|
52
49
|
--strip-color Strip color codes
|
53
50
|
--tls Connect via TCP with TLS
|
51
|
+
--new-file-check-interval INTERVAL
|
52
|
+
Time between checks for new files
|
53
|
+
|
54
|
+
Advanced options:
|
55
|
+
--[no-]eventmachine-tail Enable or disable using eventmachine-tail
|
56
|
+
--debug-log FILE Log internal debug messages
|
57
|
+
--debug-level LEVEL Log internal debug messages at level
|
58
|
+
|
59
|
+
Common options:
|
54
60
|
-h, --help Show this message
|
61
|
+
--version Show version
|
62
|
+
|
63
|
+
Example:
|
64
|
+
$ remote_syslog -c configs/logs.yml -p 12345 /var/log/mysqld.log
|
65
|
+
|
55
66
|
|
56
67
|
|
57
68
|
## Example
|
@@ -73,7 +84,8 @@ to `a.server.com:514`:
|
|
73
84
|
|
74
85
|
### Windows
|
75
86
|
|
76
|
-
To run in Windows, start in a DOS Prompt or batch file
|
87
|
+
To run in Windows, start in a DOS Prompt or batch file (does not automatically
|
88
|
+
run in the background):
|
77
89
|
|
78
90
|
C:\> remote_syslog -D
|
79
91
|
|
data/lib/remote_syslog.rb
CHANGED
data/lib/remote_syslog/cli.rb
CHANGED
@@ -172,7 +172,7 @@ module RemoteSyslog
|
|
172
172
|
|
173
173
|
if @pid_directory
|
174
174
|
if @agent.pid_file
|
175
|
-
@agent.pid_file = File.expand_path("#{@pid_directory}/#{@agent.pid_file}")
|
175
|
+
@agent.pid_file = File.expand_path("#{@pid_directory}/#{File.basename(@agent.pid_file)}")
|
176
176
|
else
|
177
177
|
@agent.pid_file = File.expand_path("#{@pid_directory}/remote_syslog.pid")
|
178
178
|
end
|
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.6'
|
12
|
-
s.date = '2012-08-
|
11
|
+
s.version = '1.6.6.1'
|
12
|
+
s.date = '2012-08-16'
|
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
@@ -6,7 +6,8 @@ version: !ruby/object:Gem::Version
|
|
6
6
|
- 1
|
7
7
|
- 6
|
8
8
|
- 6
|
9
|
-
|
9
|
+
- 1
|
10
|
+
version: 1.6.6.1
|
10
11
|
platform: ruby
|
11
12
|
authors:
|
12
13
|
- Troy Davis
|
@@ -15,7 +16,7 @@ autorequire:
|
|
15
16
|
bindir: bin
|
16
17
|
cert_chain: []
|
17
18
|
|
18
|
-
date: 2012-08-
|
19
|
+
date: 2012-08-16 00:00:00 -07:00
|
19
20
|
default_executable: remote_syslog
|
20
21
|
dependencies:
|
21
22
|
- !ruby/object:Gem::Dependency
|