log_extractor 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/main.yml +15 -5
- data/.rubocop.yml +1 -1
- data/CHANGELOG.md +4 -2
- data/Gemfile.lock +1 -1
- data/README.md +1 -1
- data/lib/log_extractor/version.rb +1 -1
- data/log_extractor.gemspec +3 -3
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6ae1b18e3f252987bbbac4fa6b022a966cffba31c0f4d7ac974b732515cd0211
|
4
|
+
data.tar.gz: c94a8fc5b1e5743821be34907389f4360bbb98013b3ea1664e811ce3941fb602
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f997013725f3cbe2526e4bf0b12a30edce5ae3176489dc8631f993f1d97e1c81f585e71b9db59e69ef9a5c925b1e07f4556cce03c316fff819d58378ea58800f
|
7
|
+
data.tar.gz: 1d30f46be0d8c0e363fc0811055a01da4494e9f844b440e3198ba6255a2fd792aa12f37bc9f3b6186b4f1f0aa5fd13762a5ba435a3f4c6896b942159971c6a58
|
data/.github/workflows/main.yml
CHANGED
@@ -2,30 +2,40 @@ name: Ruby
|
|
2
2
|
|
3
3
|
on: [push,pull_request]
|
4
4
|
|
5
|
-
env:
|
6
|
-
RUBY_VERSION: 2.6.6
|
7
|
-
|
8
5
|
jobs:
|
9
6
|
rspec:
|
7
|
+
strategy:
|
8
|
+
matrix:
|
9
|
+
ruby: [2.5, 2.6, 2.7, 3.0]
|
10
|
+
|
10
11
|
runs-on: ubuntu-latest
|
12
|
+
|
11
13
|
steps:
|
12
14
|
- uses: actions/checkout@v2
|
15
|
+
|
13
16
|
- name: Set up Ruby
|
14
17
|
uses: ruby/setup-ruby@v1
|
15
18
|
with:
|
16
|
-
ruby-version: ${{
|
19
|
+
ruby-version: ${{ matrix.ruby }}
|
17
20
|
bundler-cache: true
|
21
|
+
|
18
22
|
- name: Run tests
|
19
23
|
run: bundle exec rake spec
|
24
|
+
|
20
25
|
rubocop:
|
26
|
+
|
21
27
|
runs-on: ubuntu-latest
|
28
|
+
|
22
29
|
steps:
|
23
30
|
- uses: actions/checkout@v2
|
31
|
+
|
24
32
|
- name: Set up Ruby
|
25
33
|
uses: ruby/setup-ruby@v1
|
26
34
|
with:
|
27
|
-
ruby-version:
|
35
|
+
ruby-version: 3.0
|
36
|
+
|
28
37
|
- name: Install Rubocop
|
29
38
|
run: gem install rubocop
|
39
|
+
|
30
40
|
- name: Run tests
|
31
41
|
run: rubocop
|
data/.rubocop.yml
CHANGED
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -30,7 +30,7 @@ Setup an environment variable with the url from your ELK server to extract the l
|
|
30
30
|
export ELASTICSEARCH_URL=http://localhost:9200/
|
31
31
|
```
|
32
32
|
|
33
|
-
Pick a query (Lucene) and a period (in minutes, 15 minutes by default), and you'll have every matching log in a block ready to extract whatever you need:
|
33
|
+
Pick a query (Lucene) and a period (in minutes, last 15 minutes by default), and you'll have every matching log in a block ready to extract whatever you need:
|
34
34
|
|
35
35
|
```ruby
|
36
36
|
LogExtractor::Extract.(query: "[your query]", period: 15) do |log|
|
data/log_extractor.gemspec
CHANGED
@@ -8,11 +8,11 @@ Gem::Specification.new do |spec|
|
|
8
8
|
spec.authors = ["Sergio Gómez"]
|
9
9
|
spec.email = ["hola@sergio-gomez.com"]
|
10
10
|
|
11
|
-
spec.summary = "Simple tool to extract and parse logs from ELK
|
12
|
-
spec.description = "
|
11
|
+
spec.summary = "Simple tool to extract and parse logs easily from ELK"
|
12
|
+
spec.description = "Simple tool to extract and parse logs easily from ELK"
|
13
13
|
spec.homepage = "https://github.com/sergiogomez/log_extractor"
|
14
14
|
spec.license = "MIT"
|
15
|
-
spec.required_ruby_version = ">= 2.
|
15
|
+
spec.required_ruby_version = ">= 2.5"
|
16
16
|
|
17
17
|
# spec.metadata["allowed_push_host"] = "TODO: Set to 'http://mygemserver.com'"
|
18
18
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: log_extractor
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sergio Gómez
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-05-
|
11
|
+
date: 2021-05-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: attr_extras
|
@@ -122,7 +122,7 @@ dependencies:
|
|
122
122
|
- - "~>"
|
123
123
|
- !ruby/object:Gem::Version
|
124
124
|
version: '1.15'
|
125
|
-
description:
|
125
|
+
description: Simple tool to extract and parse logs easily from ELK
|
126
126
|
email:
|
127
127
|
- hola@sergio-gomez.com
|
128
128
|
executables: []
|
@@ -164,7 +164,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
164
164
|
requirements:
|
165
165
|
- - ">="
|
166
166
|
- !ruby/object:Gem::Version
|
167
|
-
version: 2.
|
167
|
+
version: '2.5'
|
168
168
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
169
169
|
requirements:
|
170
170
|
- - ">="
|
@@ -174,5 +174,5 @@ requirements: []
|
|
174
174
|
rubygems_version: 3.0.9
|
175
175
|
signing_key:
|
176
176
|
specification_version: 4
|
177
|
-
summary: Simple tool to extract and parse logs from ELK
|
177
|
+
summary: Simple tool to extract and parse logs easily from ELK
|
178
178
|
test_files: []
|