ntail 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +5 -1
- data/VERSION +1 -1
- data/ntail.gemspec +1 -1
- metadata +3 -3
data/README.rdoc
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
= ntail
|
2
2
|
|
3
|
-
A
|
3
|
+
A tail(1)-like utility for nginx log files that supports parsing, filtering and formatting individual log lines.
|
4
4
|
|
5
5
|
> gem install ntail
|
6
6
|
|
@@ -31,6 +31,10 @@ A parsing tail(1)-like utility for nginx log files
|
|
31
31
|
> ntail
|
32
32
|
> ntail -f '{ |line| true }' -e '{ |line| puts line }'
|
33
33
|
|
34
|
+
* print out all HTTP requests that are coming from a given IP address
|
35
|
+
|
36
|
+
> ntail -f '{ |line| line.remote_address == "208.67.222.222" }' /var/log/nginx/access.log
|
37
|
+
|
34
38
|
* find all HTTP requests that resulted in a '5xx' HTTP error/status code <em>(e.g. Rails 500 errors)</em>
|
35
39
|
|
36
40
|
> gunzip -S .gz -c access.log-20101216.gz | ntail -f '{ |line| line.server_error_status? }'
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.2
|
data/ntail.gemspec
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ntail
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 27
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 2
|
10
|
+
version: 0.0.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Peter Vandenberk
|