log_sense 1.3.2 → 1.3.4
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.
- checksums.yaml +4 -4
- data/README.org +7 -6
- data/lib/log_sense/version.rb +1 -1
- data/log_sense.gemspec +20 -20
- metadata +10 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a8250028b7a7038e07f2bd9fa069bfdf0ab1815a8711a0b6971a91030d529882
|
4
|
+
data.tar.gz: 236e1ba2c3ada9272f1e7eaa649cd1664776da933a90e41b6e70fffbbe002043
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 72b6284cd6f09ebf16c4fe34fc7098da44e993a2946fb09f72ccaa7898eb462b9fcb49ce2e37e06b206a3f00650f8a033ec034ffeeab3afe587b6b607d079302
|
7
|
+
data.tar.gz: 6b96590430caa4e9717180c1812b0227b661f1fef4c99e10515da6da8acbe8fd596b91a9e0d536eff2ce525ba1fc01f4819a5c3f649bb59f4c77754edbbd5b0c
|
data/README.org
CHANGED
@@ -43,7 +43,7 @@ stored on your computer and owned by you (like it should be)[fn:1].
|
|
43
43
|
LogSense is also inspired by *static websites generators*: statistics
|
44
44
|
are generated from the command line and accessed as static HTML files.
|
45
45
|
LogSense thus significantly reduces the attack surface of your
|
46
|
-
|
46
|
+
web server and installation headaches. We have, for instance, a cron
|
47
47
|
job running on our servers, generating statistics at night. The
|
48
48
|
generated files are then made available on a private area on the web.
|
49
49
|
|
@@ -76,22 +76,23 @@ generated files are then made available on a private area on the web.
|
|
76
76
|
-v, --version Prints version information
|
77
77
|
-h, --help Prints this help
|
78
78
|
|
79
|
-
This is version 1.
|
79
|
+
This is version 1.3.1
|
80
80
|
|
81
81
|
Output formats
|
82
|
-
apache parsing can produce the following outputs:
|
83
|
-
- sqlite
|
84
|
-
- html
|
85
82
|
rails parsing can produce the following outputs:
|
86
83
|
- sqlite
|
87
84
|
- txt
|
85
|
+
- html
|
86
|
+
apache parsing can produce the following outputs:
|
87
|
+
- sqlite
|
88
|
+
- html
|
88
89
|
#+end_example
|
89
90
|
|
90
91
|
Examples:
|
91
92
|
|
92
93
|
#+begin_example sh
|
93
94
|
log_sense -f apache -i access.log -t txt > access-data.txt
|
94
|
-
log_sense -f rails -i production.log -t html
|
95
|
+
log_sense -f rails -i production.log -t html -o performance.txt
|
95
96
|
#+end_example
|
96
97
|
|
97
98
|
* Change Log
|
data/lib/log_sense/version.rb
CHANGED
data/log_sense.gemspec
CHANGED
@@ -1,38 +1,38 @@
|
|
1
1
|
require_relative 'lib/log_sense/version'
|
2
2
|
|
3
3
|
Gem::Specification.new do |spec|
|
4
|
-
spec.name =
|
4
|
+
spec.name = 'log_sense'
|
5
5
|
spec.version = LogSense::VERSION
|
6
|
-
spec.authors = [
|
7
|
-
spec.email = [
|
6
|
+
spec.authors = ['Adolfo Fibrillation']
|
7
|
+
spec.email = ['adolfo@shair.tech']
|
8
8
|
|
9
|
-
spec.summary = %q{Generate analytics
|
10
|
-
spec.description = %q{Generate
|
11
|
-
spec.homepage =
|
12
|
-
spec.license =
|
13
|
-
spec.required_ruby_version = Gem::Requirement.new(
|
9
|
+
spec.summary = %q{Generate analytics for Apache and Rails log file.}
|
10
|
+
spec.description = %q{Generate analytics in HTML, txt, and SQLite format for Apache and Rails log files.}
|
11
|
+
spec.homepage = 'https://github.com/shair-tech/log_sense/log_sense'
|
12
|
+
spec.license = 'MIT'
|
13
|
+
spec.required_ruby_version = Gem::Requirement.new('>= 2.6.9')
|
14
14
|
|
15
|
-
spec.metadata[
|
15
|
+
spec.metadata['allowed_push_host'] = 'https://rubygems.org/'
|
16
16
|
|
17
|
-
spec.metadata[
|
18
|
-
spec.metadata[
|
19
|
-
spec.metadata[
|
17
|
+
spec.metadata['homepage_uri'] = spec.homepage
|
18
|
+
spec.metadata['source_code_uri'] = 'https://github.com/shair-tech/log_sense/log_sense'
|
19
|
+
spec.metadata['changelog_uri'] = 'https://github.com/shair-tech/log_sense/blob/main/CHANGELOG.org'
|
20
20
|
|
21
21
|
# Specify which files should be added to the gem when it is released.
|
22
22
|
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
23
23
|
spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
|
24
24
|
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
25
25
|
end
|
26
|
-
spec.bindir =
|
26
|
+
spec.bindir = 'exe'
|
27
27
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
28
|
-
spec.require_paths = [
|
28
|
+
spec.require_paths = ['lib']
|
29
29
|
|
30
|
-
spec.add_dependency
|
31
|
-
spec.add_dependency
|
32
|
-
spec.add_dependency
|
33
|
-
spec.add_dependency
|
34
|
-
spec.add_dependency
|
30
|
+
spec.add_dependency 'browser'
|
31
|
+
spec.add_dependency 'ipaddr'
|
32
|
+
spec.add_dependency 'iso_country_codes'
|
33
|
+
spec.add_dependency 'sqlite3'
|
34
|
+
spec.add_dependency 'terminal-table'
|
35
35
|
|
36
36
|
spec.add_development_dependency 'byebug'
|
37
|
-
spec.add_development_dependency
|
37
|
+
spec.add_development_dependency 'minitest'
|
38
38
|
end
|
metadata
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: log_sense
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
- Adolfo
|
7
|
+
- Adolfo Fibrillation
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
@@ -108,10 +108,10 @@ dependencies:
|
|
108
108
|
- - ">="
|
109
109
|
- !ruby/object:Gem::Version
|
110
110
|
version: '0'
|
111
|
-
description: Generate
|
112
|
-
|
111
|
+
description: Generate analytics in HTML, txt, and SQLite format for Apache and Rails
|
112
|
+
log files.
|
113
113
|
email:
|
114
|
-
- adolfo
|
114
|
+
- adolfo@shair.tech
|
115
115
|
executables:
|
116
116
|
- log_sense
|
117
117
|
extensions: []
|
@@ -155,14 +155,14 @@ files:
|
|
155
155
|
- sample_logs/empty_log.log
|
156
156
|
- sample_logs/safety-critical_org.log
|
157
157
|
- sample_logs/spmbook_com.log
|
158
|
-
homepage: https://
|
158
|
+
homepage: https://github.com/shair-tech/log_sense/log_sense
|
159
159
|
licenses:
|
160
160
|
- MIT
|
161
161
|
metadata:
|
162
162
|
allowed_push_host: https://rubygems.org/
|
163
|
-
homepage_uri: https://
|
164
|
-
source_code_uri: https://
|
165
|
-
changelog_uri: https://
|
163
|
+
homepage_uri: https://github.com/shair-tech/log_sense/log_sense
|
164
|
+
source_code_uri: https://github.com/shair-tech/log_sense/log_sense
|
165
|
+
changelog_uri: https://github.com/shair-tech/log_sense/blob/main/CHANGELOG.org
|
166
166
|
post_install_message:
|
167
167
|
rdoc_options: []
|
168
168
|
require_paths:
|
@@ -181,5 +181,5 @@ requirements: []
|
|
181
181
|
rubygems_version: 3.0.3.1
|
182
182
|
signing_key:
|
183
183
|
specification_version: 4
|
184
|
-
summary: Generate analytics
|
184
|
+
summary: Generate analytics for Apache and Rails log file.
|
185
185
|
test_files: []
|