elastic-logger 0.2.5 → 0.3.0
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 +10 -6
- data/lib/elastic-logger/elk_rotator.rb +2 -2
- data/lib/elastic-logger/templates/elastic_log_types.yml +9 -7
- data/lib/elastic-logger/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 872c5fac4c442800edc5f50ba4a90b2bd586a8ed
|
4
|
+
data.tar.gz: 0fb77f04d8fdcd14e26e5e8fd7063166468a1153
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5cca893d60d8fd8a4fe85568d10a1bdbecf7893981fd3d217667729cb5fbaa1bae8a6db5445e292c16f72ff1225728f4e062cf9dbe624ada248bedcf409fedd8
|
7
|
+
data.tar.gz: 0a99de0fcaf25d3412da977d41ee6a1d225ceccc1723945ac3082c2a2f14bc3a198cfccd531a392a67153e7a97f24ebf8d5f95798a3dbf05b36b8d40c060bc55
|
data/README.md
CHANGED
@@ -41,14 +41,18 @@ With this file we create two logs, one which will log to elastic, and one to sta
|
|
41
41
|
```yml
|
42
42
|
sidekiq_monitor:
|
43
43
|
writer: 'InfaktLogger::ElastickWriter'
|
44
|
-
|
45
|
-
|
46
|
-
backup: false
|
44
|
+
rotate: 30 # how many days keep in elk
|
45
|
+
backup: 90 # how many days keep backup, 0 for no backup, -1 for infinite
|
47
46
|
api_requests:
|
48
47
|
writer: 'InfaktLogger::DiskWriter'
|
49
|
-
|
50
|
-
|
51
|
-
|
48
|
+
delete:
|
49
|
+
type: 'standard' # never if you want to keep that log
|
50
|
+
unit: 'days' # One of seconds, minutes, hours, days, weeks, months, or years.
|
51
|
+
unit_count: # The number of unit (s). unit_count * unit will be calculated out to the relative number of seconds.
|
52
|
+
backup:
|
53
|
+
type: 'standard' # infinite if you want to keep that log, never for no backups
|
54
|
+
unit: 'days' # One of seconds, minutes, hours, days, weeks, months, or years.
|
55
|
+
unit_count: # The number of unit (s). unit_count * unit will be calculated out to the relative number of seconds.
|
52
56
|
```
|
53
57
|
### Usage
|
54
58
|
|
@@ -1,10 +1,12 @@
|
|
1
1
|
first_sample_log:
|
2
|
-
writer: '
|
3
|
-
|
4
|
-
|
5
|
-
|
2
|
+
writer: 'ElasticLogger::ElkWriter'
|
3
|
+
delete:
|
4
|
+
type: 'standard' # never if you want to keep that log
|
5
|
+
unit: 'days' # One of seconds, minutes, hours, days, weeks, months, or years.
|
6
|
+
unit_count: 2 # The number of unit (s). unit_count * unit will be calculated out to the relative number of seconds.
|
7
|
+
backup:
|
8
|
+
type: 'standard' # infinite if you want to keep that log, never for no backups
|
9
|
+
unit: 'days' # One of seconds, minutes, hours, days, weeks, months, or years.
|
10
|
+
unit_count: 2 # The number of unit (s). unit_count * unit will be calculated out to the relative number of seconds.
|
6
11
|
second_sample_log:
|
7
12
|
writer: 'InfaktLogger::DiskWriter'
|
8
|
-
rotate_type: 'rotate'
|
9
|
-
rotate: 3
|
10
|
-
backup: false
|