anschel 0.7.12 → 0.7.13

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 66d215c6acc27505c161292055246d3509fa145c
4
- data.tar.gz: 90e76e7b72f76ceeb037485b4c715cd2520bdfa3
3
+ metadata.gz: a3242d0a83b7366bcc669dd0cdd72da530d80146
4
+ data.tar.gz: 9935e614a1a16533ac38e6117e41b925a613c6e7
5
5
  SHA512:
6
- metadata.gz: bdca6f4b377994c0d058887ab9d7cc439656f52bbc6c134969800ee312561eb85e0e5cca7e428fc908bf28652109184e7272162c531df9181a7ba4bb28f6479d
7
- data.tar.gz: ae814813c2d9861218ae8f1fa270c4b34b2b18850dbe4313332d33e7e5492ad465d5e8bf29d7dcc5941b8ccb44eee1d4830d444c5c8a4ca34ca1d77051e836ab
6
+ metadata.gz: aabe51a20bcd7c005cd0623b6b818b5abe1e24d9bf0e7c27edb618d99bcee80f5786e880e82a865c3af179bf5ce6dfc755d1778049c6c6fd5caa9027d4124f5f
7
+ data.tar.gz: e2c7dca19901daa4759953f629de75bf5ad6ac8877bbf5e4faba12ceeec39d73debdfc8c07bbedf910b90eced25ce2551f544c7577cf46dfca3d34295426c935
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.7.12
1
+ 0.7.13
@@ -24,7 +24,7 @@ module Anschel
24
24
  stats.create 'filter-convert'
25
25
  stats.create 'filter-convert-skipped'
26
26
 
27
- log.trace event: 'filter-compiled', kind: 'convert', \
27
+ log.info event: 'filter-compiled', kind: 'convert', \
28
28
  field: field, type: type
29
29
 
30
30
 
@@ -4,7 +4,7 @@
4
4
  module Anschel
5
5
  class Filter
6
6
  def debug conf, stats, log
7
- log.trace event: 'filter-compiled', kind: 'debug'
7
+ log.info event: 'filter-compiled', kind: 'debug'
8
8
 
9
9
 
10
10
 
@@ -24,7 +24,7 @@ module Anschel
24
24
  stats.create 'filter-gsub'
25
25
  stats.create 'filter-gsub-skipped'
26
26
 
27
- log.trace event: 'filter-compiled', kind: 'gsub', \
27
+ log.info event: 'filter-compiled', kind: 'gsub', \
28
28
  field: field, match: match, replace: replace
29
29
 
30
30
 
@@ -35,7 +35,7 @@ module Anschel
35
35
  stats.create 'filter-index-skipped'
36
36
  stats.create 'filter-index-error'
37
37
 
38
- log.trace event: 'filter-compiled', kind: 'index', \
38
+ log.info event: 'filter-compiled', kind: 'index', \
39
39
  stamp: stamp, prefix: prefix, suffix: suffix, format: format, routing: routing
40
40
 
41
41
 
@@ -66,7 +66,7 @@ module Anschel
66
66
  event[stamp] = timestamp.iso8601(3) unless stamped
67
67
  event[:_index] = idx_prefix + timestamp.strftime(suffix)
68
68
 
69
- log.debug \
69
+ log.warn \
70
70
  event: 'filter-index-warning',
71
71
  reason: 'could not parse event',
72
72
  remediation: 'added bogus index',
@@ -23,7 +23,7 @@ module Anschel
23
23
  stats.create 'filter-parse-skipped'
24
24
  stats.create 'filter-parse-error'
25
25
 
26
- log.trace event: 'filter-compiled', kind: 'parse', \
26
+ log.info event: 'filter-compiled', kind: 'parse', \
27
27
  field: field, pattern: pattern
28
28
 
29
29
 
@@ -42,7 +42,7 @@ module Anschel
42
42
  mdata = pattern.match event[field]
43
43
 
44
44
  if mdata.nil?
45
- log.trace \
45
+ log.warn \
46
46
  event: 'parse-filter-error',
47
47
  reason: 'regexp did not match',
48
48
  field: field,
@@ -27,7 +27,7 @@ module Anschel
27
27
  stats.create 'filter-scan-nomatch'
28
28
  stats.create 'filter-scan-error'
29
29
 
30
- log.trace event: 'filter-compiled', kind: 'scan', \
30
+ log.info event: 'filter-compiled', kind: 'scan', \
31
31
  field: field, pattern: pattern, match: match, target: target
32
32
 
33
33
 
@@ -41,7 +41,7 @@ module Anschel
41
41
  stats.create 'filter-stamp-skipped'
42
42
  stats.create 'filter-stamp-error'
43
43
 
44
- log.trace event: 'filter-compiled', kind: 'stamp', \
44
+ log.info event: 'filter-compiled', kind: 'stamp', \
45
45
  utc?: utc, field: field, pattern: pattern, target: target
46
46
 
47
47
 
@@ -53,7 +53,7 @@ module Anschel
53
53
  end
54
54
 
55
55
  if event[target]
56
- log.debug \
56
+ log.warn \
57
57
  event: 'stamp-filter-warning',
58
58
  reason: 'event already has target field',
59
59
  utc?: utc,
@@ -82,7 +82,7 @@ module Anschel
82
82
 
83
83
  return filtered(event, conf) if matched
84
84
 
85
- log.debug \
85
+ log.warn \
86
86
  event: 'stamp-filter-warning',
87
87
  reason: 'could not parse event',
88
88
  remediation: 'using current time for stamp',
@@ -14,7 +14,7 @@ module Anschel
14
14
 
15
15
  stats.create 'filter-tag'
16
16
 
17
- log.trace event: 'filter-compiled', kind: 'tag', with: tags
17
+ log.info event: 'filter-compiled', kind: 'tag', with: tags
18
18
 
19
19
 
20
20
 
@@ -15,7 +15,7 @@ module Anschel
15
15
 
16
16
  def initialize config, stats, log
17
17
  log.info event: 'filter-loading'
18
- log.debug event: 'filter-config', config: config
18
+ log.info event: 'filter-config', config: config
19
19
  config ||= {} # Allow for nil config
20
20
  @filters = Hash.new { |h,k| h[k] = [] }
21
21
  config.each do |event_type, filter_defns|
data/lib/anschel/input.rb CHANGED
@@ -6,7 +6,7 @@ module Anschel
6
6
  class Input
7
7
  def initialize config, qsize, stats, log, leftovers=[]
8
8
  log.info event: 'output-loading'
9
- log.debug event: 'output-config', config: config, qsize: qsize
9
+ log.info event: 'output-config', config: config, qsize: qsize
10
10
 
11
11
  @queue = SizedQueue.new(qsize || 2000)
12
12
 
@@ -25,10 +25,10 @@ module Anschel
25
25
  case input.delete(:kind)
26
26
  when 'kafka'
27
27
  @inputs << Input::Kafka.new(@queue, input, stats, log)
28
- log.debug event: 'input-loaded', kind: 'kafka'
28
+ log.info event: 'input-loaded', kind: 'kafka'
29
29
  when 'rabbitmq'
30
30
  @inputs << Input::RabbitMQ.new(@queue, input, stats, log)
31
- log.debug event: 'input-loaded', kind: 'rabbitmq'
31
+ log.info event: 'input-loaded', kind: 'rabbitmq'
32
32
  else
33
33
  raise 'Uknown input type'
34
34
  end
data/lib/anschel/main.rb CHANGED
@@ -112,7 +112,7 @@ module Anschel
112
112
  if input && output
113
113
  output.stop ; input.stop
114
114
  store[:input] = input.leftovers
115
- log.debug event: 'flush'
115
+ log.warn event: 'flush-leftovers'
116
116
  end
117
117
  log.send level, event: 'goodbye', version: VERSION
118
118
  end
@@ -6,7 +6,7 @@ module Anschel
6
6
  class Output
7
7
  def initialize config, stats, log
8
8
  log.info event: 'output-loading'
9
- log.debug event: 'output-config', config: config
9
+ log.info event: 'output-config', config: config
10
10
 
11
11
  @outputs = []
12
12
 
@@ -17,10 +17,10 @@ module Anschel
17
17
  case output.delete(:kind)
18
18
  when 'device'
19
19
  @outputs << Output::Device.new(output, stats, log)
20
- log.trace event: 'output-loaded', kind: 'device'
20
+ log.info event: 'output-loaded', kind: 'device'
21
21
  when 'elasticsearch'
22
22
  @outputs << Output::Elasticsearch.new(output, stats, log)
23
- log.trace event: 'output-loaded', kind: 'elasticsearch'
23
+ log.info event: 'output-loaded', kind: 'elasticsearch'
24
24
  else
25
25
  raise 'Unkown output type'
26
26
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: anschel
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.12
4
+ version: 0.7.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sean Clemmer
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-01-05 00:00:00.000000000 Z
11
+ date: 2016-01-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement