ntail 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. data/README.rdoc +5 -1
  2. data/VERSION +1 -1
  3. data/ntail.gemspec +1 -1
  4. metadata +3 -3
@@ -1,6 +1,6 @@
1
1
  = ntail
2
2
 
3
- A parsing tail(1)-like utility for nginx log files
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
1
+ 0.0.2
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{ntail}
8
- s.version = "0.0.1"
8
+ s.version = "0.0.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Peter Vandenberk"]
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: 29
4
+ hash: 27
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 1
10
- version: 0.0.1
9
+ - 2
10
+ version: 0.0.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Peter Vandenberk