logstash-cli 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -63,40 +63,40 @@ Mucho inspired by a gist of the eminent @lusis - <https://gist.github.com/138807
63
63
 
64
64
  ### Tail
65
65
 
66
- Usage:
67
- logstash-cli tail
68
-
69
- Options:
70
- [--host=HOST] # Host to connect to AMQP
71
- # Default: localhost
72
- --amqpurl, [--url=URL] # Alternate way to specify settings via an AMQP Url f.i. amqp://logstash:foopass@localhost:5672.
73
- This takes precendence over other settings. Note that username and password need to be percentage encoded(URL encoded) in case of special characters
74
- [--auto-delete] # Autodelete Exchange or not
75
- [--vhost=VHOST] # VHost to connect to AMQP
76
- # Default: /
77
- [--persistent] # Persistent Exchange or not
78
- [--ssl] # Enable SSL to connect to AMQP
79
- [--user=USER] # User to connect to AMQP
80
- # Default: logstash
81
- [--meta=META] # Meta Logstash fields to show
82
- # Default: timestamp,type,message
83
- [--format=FORMAT] # Format to use for exporting (plain,csv,json)
84
- # Default: csv
85
- [--key=KEY] # Routing key
86
- # Default: #
87
- [--port=PORT] # Port to connect to AMQP
88
- # Default: 5672
89
- [--exchange=EXCHANGE] # Exchange name
90
- # Default: rawlogs
91
- [--password=PASSWORD] # Password to connect to AMQP
92
- # Default: foo
93
- [--delim=DELIM] # csv delimiter
94
- # Default: |
95
- [--exchange-type=EXCHANGE_TYPE] # Exchange Type
96
- # Default: direct
97
- [--durable] # Durable Exchange or not
98
-
99
- Stream a live feed via AMQP
66
+ Usage:
67
+ logstash-cli tail
68
+
69
+ Options:
70
+ [--host=HOST] # Host to connect to AMQP
71
+ # Default: localhost
72
+ --amqpurl, [--url=URL] # Alternate way to specify settings via an AMQP Url f.i. amqp://logstash:foopass@localhost:5672.
73
+ This takes precendence over other settings. Note that username and password need to be percentage encoded(URL encoded) in case of special characters
74
+ [--auto-delete] # Autodelete Exchange or not
75
+ [--vhost=VHOST] # VHost to connect to AMQP
76
+ # Default: /
77
+ [--persistent] # Persistent Exchange or not
78
+ [--ssl] # Enable SSL to connect to AMQP
79
+ [--user=USER] # User to connect to AMQP
80
+ # Default: logstash
81
+ [--meta=META] # Meta Logstash fields to show
82
+ # Default: timestamp,type,message
83
+ [--format=FORMAT] # Format to use for exporting (plain,csv,json)
84
+ # Default: csv
85
+ [--key=KEY] # Routing key
86
+ # Default: #
87
+ [--port=PORT] # Port to connect to AMQP
88
+ # Default: 5672
89
+ [--exchange=EXCHANGE] # Exchange name
90
+ # Default: rawlogs
91
+ [--password=PASSWORD] # Password to connect to AMQP
92
+ # Default: foo
93
+ [--delim=DELIM] # csv delimiter
94
+ # Default: |
95
+ [--exchange-type=EXCHANGE_TYPE] # Exchange Type
96
+ # Default: direct
97
+ [--durable] # Durable Exchange or not
98
+
99
+ Stream a live feed via AMQP
100
100
 
101
101
 
102
102
  ## Examples
@@ -4,7 +4,11 @@ require 'rack'
4
4
  require 'amqp'
5
5
  require 'tire'
6
6
  require 'time'
7
- require 'fastercsv'
7
+ if RUBY_VERSION > '1.9'
8
+ require 'csv'
9
+ else
10
+ require 'fastercsv'
11
+ end
8
12
  require 'logstash-cli/command'
9
13
 
10
14
  module LogstashCli
@@ -1,7 +1,9 @@
1
1
  require 'logstash-cli/command/grep'
2
2
  require 'logstash-cli/command/tail'
3
3
 
4
- module LogstashCli::Command
5
- include Grep
6
- include Tail
4
+ module LogstashCli
5
+ module Command
6
+ include Grep
7
+ include Tail
8
+ end
7
9
  end
@@ -1,3 +1,3 @@
1
1
  module LogstashCli
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-cli
3
3
  version: !ruby/object:Gem::Version
4
- hash: 25
4
+ hash: 23
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 3
10
- version: 0.0.3
9
+ - 4
10
+ version: 0.0.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - Patrick Debois
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-06-24 00:00:00 Z
18
+ date: 2012-07-25 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  requirement: &id001 !ruby/object:Gem::Requirement