lstash 0.1.4 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- Y2YxYjRjNGYyMTA4MTdiNjQ5NjA2ZDU2MmE4Y2Y3MmZkNDRjYWMzYg==
5
- data.tar.gz: !binary |-
6
- Y2NhOTJlMmRjZmZlZmNkZGRhMDZkYmRhZWMwMzY5M2U4YTM0ZGE1YQ==
2
+ SHA256:
3
+ metadata.gz: 0f41d0f4233ebb92ad410bbc04a55f8b39d7205e576283677ca2de977c24aea5
4
+ data.tar.gz: f038956a733448fa7902e9e9c8aaed5a893881ec3154fa39a936c467a58e8e00
7
5
  SHA512:
8
- metadata.gz: !binary |-
9
- MjA3MzA0OWQ3ZTVmOWU4YmE0NjdmNWQ4NjgzMTA0NTg4ZTcxNmJlZmI2YTA5
10
- OGQ2Yzk5NTk1NjNhYzFmOTA3NDk0NmYyNjlmNzA4M2M2MzdiNzE4MmNiNDEz
11
- MGZlNTg1Y2UxN2U5MzAxZmEyM2YxZmM1MDAwOTYwYzRjMWFiZDQ=
12
- data.tar.gz: !binary |-
13
- YTQ5MmJiY2E4NjlkYzRlNTcyYWM0ZjA3NDQyNTc5MzNhNjhmMzVhM2MyOTZi
14
- OGFjMzQ1Yjk1OTgzNDE1YmJhMzBmNDI1YmYxMDhjZmJlNmJkZjBlN2U2YTI5
15
- ZGRlYWI0NjMwY2I0YjZlN2RlOWM3NDYxNTg5MjljZTlhNThiNDc=
6
+ metadata.gz: d0a803e99283cf78ccceb1f24ab266cb2ac6b650574c9272f2a13a760a9ea021a3c7be54de3e6c68c5ffa9b9ec22a1afc5aa262502c2a45f98b8aaf1eced27a2
7
+ data.tar.gz: 68209058f27b409c9d2804431cbf7e7426445e084854a26c49640aaf7b5a466f7019804458338bf73fb14ccebf1c7302bc4014fa7abe48c9501900fa2ab475d7
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- ruby-1.9.3
1
+ 2.4.6
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## Release 0.2.0
2
+ Merge branch 'feature/fix/hashie-warnings' into develop
3
+ - [fix] pin faraday to a compatible version
4
+ - [enh] upgrade to ruby 2.4(.6)
5
+ - [fix] suppress Hashie warnings; it would generate a warning for each log line (on stdout) leading to very large output
6
+
1
7
  ### 0.1.4 / 2015-05-29
2
8
 
3
9
  Enhancements
data/README.md CHANGED
@@ -24,7 +24,7 @@ Or install it yourself as:
24
24
  lstash count QUERY
25
25
 
26
26
  Description:
27
- Count log messages matching the QUERY from Logstash and output this count to stdout. QUERY can use Apache Lucene query
27
+ Count log messages matching the QUERY from Logstash and output this count to stdout. QUERY can use Apache Lucene query
28
28
  parser syntax.
29
29
 
30
30
  Example to count the number of HAProxy log messages in yesterdays month.
@@ -82,38 +82,38 @@ Assuming today is Sep 1 2014. Count all haproxy log messages in the previous mon
82
82
 
83
83
  lstash count program:haproxy --anchor yesterday --from firstday --to today -d
84
84
  time range: [2014-08-01 00:00:00 +0200..2014-09-01 00:00:00 +0200]
85
- logstash-2014.07.31: 1
86
- logstash-2014.08.01: 13
87
- logstash-2014.08.02: 14
88
- logstash-2014.08.03: 1654
89
- logstash-2014.08.04: 6
90
- logstash-2014.08.05: 20
91
- logstash-2014.08.06: 219
92
- logstash-2014.08.07: 32
93
- logstash-2014.08.08: 14
94
- logstash-2014.08.09: 28
95
- logstash-2014.08.10: 799
96
- logstash-2014.08.11: 18
97
- logstash-2014.08.12: 8
98
- logstash-2014.08.13: 23
99
- logstash-2014.08.14: 25
100
- logstash-2014.08.15: 69
101
- logstash-2014.08.16: 19
102
- logstash-2014.08.17: 1160
103
- logstash-2014.08.18: 284
104
- logstash-2014.08.19: 61
105
- logstash-2014.08.20: 26
106
- logstash-2014.08.21: 16
107
- logstash-2014.08.22: 145
108
- logstash-2014.08.23: 72
109
- logstash-2014.08.24: 792
110
- logstash-2014.08.25: 31
111
- logstash-2014.08.26: 33
112
- logstash-2014.08.27: 51
113
- logstash-2014.08.28: 8
114
- logstash-2014.08.29: 23
115
- logstash-2014.08.30: 25
116
- logstash-2014.08.31: 69
85
+ logstash-2014.07.31: 1
86
+ logstash-2014.08.01: 13
87
+ logstash-2014.08.02: 14
88
+ logstash-2014.08.03: 1654
89
+ logstash-2014.08.04: 6
90
+ logstash-2014.08.05: 20
91
+ logstash-2014.08.06: 219
92
+ logstash-2014.08.07: 32
93
+ logstash-2014.08.08: 14
94
+ logstash-2014.08.09: 28
95
+ logstash-2014.08.10: 799
96
+ logstash-2014.08.11: 18
97
+ logstash-2014.08.12: 8
98
+ logstash-2014.08.13: 23
99
+ logstash-2014.08.14: 25
100
+ logstash-2014.08.15: 69
101
+ logstash-2014.08.16: 19
102
+ logstash-2014.08.17: 1160
103
+ logstash-2014.08.18: 284
104
+ logstash-2014.08.19: 61
105
+ logstash-2014.08.20: 26
106
+ logstash-2014.08.21: 16
107
+ logstash-2014.08.22: 145
108
+ logstash-2014.08.23: 72
109
+ logstash-2014.08.24: 792
110
+ logstash-2014.08.25: 31
111
+ logstash-2014.08.26: 33
112
+ logstash-2014.08.27: 51
113
+ logstash-2014.08.28: 8
114
+ logstash-2014.08.29: 23
115
+ logstash-2014.08.30: 25
116
+ logstash-2014.08.31: 69
117
117
  5633
118
118
 
119
119
  ## Using lstash as a gem in your project
@@ -145,6 +145,28 @@ Usage:
145
145
  puts message
146
146
  end
147
147
 
148
+ ## Publishing the gem to RubyGems.org
149
+
150
+ 1. Build the gem
151
+
152
+ ```
153
+ $ gem build lstash.gem
154
+ Successfully built RubyGem
155
+ Name: lstash
156
+ Version: 0.2.0
157
+ File: lstash-0.2.0.gem
158
+ ```
159
+
160
+ 2. Pushing your gem to RubyGems.org
161
+
162
+ ```
163
+ gem push lstash-0.2.0.gem
164
+ Pushing gem to RubyGems.org...
165
+ Successfully registered gem: lstash (0.2.0)
166
+ ```
167
+
168
+ See [RubyGems.org documention](https://guides.rubygems.org/) for more info.
169
+
148
170
  ## Contributing
149
171
 
150
172
  1. Fork it
data/bin/lstash CHANGED
@@ -2,4 +2,6 @@
2
2
 
3
3
  require 'lstash/cli'
4
4
 
5
+ # Suppress Hashie warnings
6
+ Hashie.logger = Logger.new(nil)
5
7
  Lstash::CLI.start(ARGV)
@@ -1,3 +1,3 @@
1
1
  module Lstash
2
- VERSION = "0.1.4"
2
+ VERSION = "0.2.0"
3
3
  end
data/lstash.gemspec CHANGED
@@ -20,13 +20,14 @@ Gem::Specification.new do |spec|
20
20
  spec.extra_rdoc_files = [ 'LICENSE.txt', 'README.md', 'CHANGELOG.md' ]
21
21
 
22
22
  spec.add_development_dependency "bundler", "~> 1.3"
23
- spec.add_development_dependency "rake"
24
- spec.add_development_dependency "rspec"
25
- spec.add_development_dependency "rspec-its"
26
- spec.add_development_dependency "timecop"
23
+ spec.add_development_dependency "rake", "~> 10.3.2"
24
+ spec.add_development_dependency "rspec", "~> 3.0.0"
25
+ spec.add_development_dependency "rspec-its", "~> 1.0.1"
26
+ spec.add_development_dependency "timecop", "~> 0.7.1"
27
27
 
28
- spec.add_dependency "typhoeus"
28
+ spec.add_dependency "typhoeus", "~> 1.4.0"
29
29
  spec.add_dependency "elasticsearch", "~> 0.4"
30
- spec.add_dependency "hashie"
31
- spec.add_dependency "thor"
30
+ spec.add_dependency "hashie", "~> 4.1.0"
31
+ spec.add_dependency "thor", "~> 0.20.3"
32
+ spec.add_dependency "faraday", "~> 0.17.4"
32
33
  end
@@ -62,7 +62,7 @@ describe Lstash::CLI do
62
62
  it "should print error message" do
63
63
  output = capture_stderr { Lstash::CLI.start(args) }
64
64
 
65
- expect(output).to eq "the scheme http does not accept registry part: '':9200 (or bad hostname?)\n"
65
+ expect(output).to include("Failed to open TCP connection to '':9200")
66
66
  end
67
67
  end
68
68
 
metadata CHANGED
@@ -1,141 +1,155 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lstash
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Klaas Jan Wierenga
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-05-29 00:00:00.000000000 Z
11
+ date: 2021-02-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
19
  version: '1.3'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '1.3'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ! '>='
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '0'
33
+ version: 10.3.2
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ! '>='
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '0'
40
+ version: 10.3.2
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rspec
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ! '>='
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '0'
47
+ version: 3.0.0
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ! '>='
52
+ - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '0'
54
+ version: 3.0.0
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rspec-its
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ! '>='
59
+ - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '0'
61
+ version: 1.0.1
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ! '>='
66
+ - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: '0'
68
+ version: 1.0.1
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: timecop
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - ! '>='
73
+ - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: '0'
75
+ version: 0.7.1
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - ! '>='
80
+ - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: '0'
82
+ version: 0.7.1
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: typhoeus
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - ! '>='
87
+ - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: '0'
89
+ version: 1.4.0
90
90
  type: :runtime
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - ! '>='
94
+ - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: '0'
96
+ version: 1.4.0
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: elasticsearch
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - ~>
101
+ - - "~>"
102
102
  - !ruby/object:Gem::Version
103
103
  version: '0.4'
104
104
  type: :runtime
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - ~>
108
+ - - "~>"
109
109
  - !ruby/object:Gem::Version
110
110
  version: '0.4'
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: hashie
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
- - - ! '>='
115
+ - - "~>"
116
116
  - !ruby/object:Gem::Version
117
- version: '0'
117
+ version: 4.1.0
118
118
  type: :runtime
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
- - - ! '>='
122
+ - - "~>"
123
123
  - !ruby/object:Gem::Version
124
- version: '0'
124
+ version: 4.1.0
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: thor
127
127
  requirement: !ruby/object:Gem::Requirement
128
128
  requirements:
129
- - - ! '>='
129
+ - - "~>"
130
130
  - !ruby/object:Gem::Version
131
- version: '0'
131
+ version: 0.20.3
132
132
  type: :runtime
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
- - - ! '>='
136
+ - - "~>"
137
137
  - !ruby/object:Gem::Version
138
- version: '0'
138
+ version: 0.20.3
139
+ - !ruby/object:Gem::Dependency
140
+ name: faraday
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - "~>"
144
+ - !ruby/object:Gem::Version
145
+ version: 0.17.4
146
+ type: :runtime
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - "~>"
151
+ - !ruby/object:Gem::Version
152
+ version: 0.17.4
139
153
  description: Count or grep log messages in a specified time range from a Logstash
140
154
  Elasticsearch server.
141
155
  email:
@@ -148,12 +162,12 @@ extra_rdoc_files:
148
162
  - README.md
149
163
  - CHANGELOG.md
150
164
  files:
151
- - .autotest
152
- - .gitignore
153
- - .rspec
154
- - .ruby-gemset
155
- - .ruby-version
156
- - .travis.yml
165
+ - ".autotest"
166
+ - ".gitignore"
167
+ - ".rspec"
168
+ - ".ruby-gemset"
169
+ - ".ruby-version"
170
+ - ".travis.yml"
157
171
  - CHANGELOG.md
158
172
  - Gemfile
159
173
  - LICENSE.txt
@@ -175,24 +189,23 @@ homepage: https://github.com/kjwierenga/lstash
175
189
  licenses:
176
190
  - MIT
177
191
  metadata: {}
178
- post_install_message:
192
+ post_install_message:
179
193
  rdoc_options: []
180
194
  require_paths:
181
195
  - lib
182
196
  required_ruby_version: !ruby/object:Gem::Requirement
183
197
  requirements:
184
- - - ! '>='
198
+ - - ">="
185
199
  - !ruby/object:Gem::Version
186
200
  version: '0'
187
201
  required_rubygems_version: !ruby/object:Gem::Requirement
188
202
  requirements:
189
- - - ! '>='
203
+ - - ">="
190
204
  - !ruby/object:Gem::Version
191
205
  version: '0'
192
206
  requirements: []
193
- rubyforge_project:
194
- rubygems_version: 2.4.5
195
- signing_key:
207
+ rubygems_version: 3.0.8
208
+ signing_key:
196
209
  specification_version: 4
197
210
  summary: The lstash gem allows you to count or grep log messages in a specific time
198
211
  range from a Logstash Elasticsearch server.