internet_box_logger 0.2.0 → 0.2.1
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.md +3 -6
- data/config/internet_box_logger.conf +10 -4
- data/lib/internet_box_logger/elastic_search.rb +2 -2
- data/lib/internet_box_logger/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c305e96215335116ad8992df4ed772f4bcf403f6
|
|
4
|
+
data.tar.gz: b1650145719338b358050e0da49071bbec255198
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3b4ec3fd4ce43328add4b810bcb9ec525bb31f7207a363666f18d3bb8a3d90fbbe49915b56eddeff2b5bb8bf4cfa2a7ce64eeadfbc7374ddd2667ec13abf1915
|
|
7
|
+
data.tar.gz: 74a2431827daed9e6d17b06568228f59106e9328352bec25f0fc9c8940066cf2250467ffc189339648382cffb797ac5c43376638d1a3e5ff1e81aebb77fd8f29
|
data/README.md
CHANGED
|
@@ -57,10 +57,9 @@ kibana_path: /opt/kibana
|
|
|
57
57
|
|
|
58
58
|
server_port: 5000
|
|
59
59
|
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
elastic_binary: /opt/elasticsearch/bin/elasticsearch
|
|
60
|
+
elastic_servers:
|
|
61
|
+
- 127.0.0.1:9200
|
|
62
|
+
elastic_binary: /opt/elasticsearch/bin/elasticsearch
|
|
64
63
|
```
|
|
65
64
|
|
|
66
65
|
* `box_type` specifies the module in charge of gathering data from your box. it Should not be changed but you can define
|
|
@@ -75,8 +74,6 @@ ElasticSearch on the same machine as the gem is installed, then it should alread
|
|
|
75
74
|
* `elastic_binary` defines where your [ElasticSearch][ELK] is installed. This one is only used by a rake task
|
|
76
75
|
(to stop/start and get info) about the ElasticSearch cluster. This is not really needed for the log process to work.
|
|
77
76
|
Only to enable stop/start of the server.
|
|
78
|
-
When you change it in your config, you do not need to set it in the `default_elastic_search` hash, but instead you can
|
|
79
|
-
directly set it at the root.
|
|
80
77
|
|
|
81
78
|
**These values are the default and you don't need to create a new config file if they already fit your needs.**
|
|
82
79
|
And it should be the case if you installed [ELK] as a whole on the machine you are using this gem.
|
|
@@ -1,13 +1,19 @@
|
|
|
1
|
+
# These are the default values for some mandatory settings
|
|
2
|
+
# Feel free to override these values in any of the config files you choose to use.
|
|
1
3
|
|
|
4
|
+
# The type of box.
|
|
2
5
|
box_type: InternetBoxLogger::Parsers::FreeboxV5Parser
|
|
3
6
|
|
|
7
|
+
# Defines the interval between two calls as defined in cron
|
|
4
8
|
cron_interval: 1
|
|
5
9
|
|
|
10
|
+
# Where is Kibana installed
|
|
6
11
|
kibana_path: /opt/kibana
|
|
7
12
|
|
|
13
|
+
# When running this gem as a server, which port to bind to
|
|
8
14
|
server_port: 5000
|
|
9
15
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
16
|
+
# ElasticSearch default installation parameters
|
|
17
|
+
elastic_binary: /opt/elasticsearch/bin/elasticsearch
|
|
18
|
+
elastic_servers:
|
|
19
|
+
- 127.0.0.1:9200
|
|
@@ -4,11 +4,11 @@ module InternetBoxLogger
|
|
|
4
4
|
module Server
|
|
5
5
|
|
|
6
6
|
def self.[]
|
|
7
|
-
EasyAppHelper.config[:elastic_servers]
|
|
7
|
+
EasyAppHelper.config[:elastic_servers]
|
|
8
8
|
end
|
|
9
9
|
|
|
10
10
|
def self.local_path
|
|
11
|
-
EasyAppHelper.config[:elastic_binary]
|
|
11
|
+
EasyAppHelper.config[:elastic_binary]
|
|
12
12
|
end
|
|
13
13
|
|
|
14
14
|
def self.local?
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: internet_box_logger
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Laurent B
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2015-01-01 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|