capun 0.0.5 → 0.0.6

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: c5a8c5d54204799333f6df9f7e2e0a3a3db7976c
4
- data.tar.gz: 96a37e3ffce577045a497416eccb92fa135527c1
3
+ metadata.gz: 5a95e8056cb34e4b5d26ba83491da6db43eb1044
4
+ data.tar.gz: e7585e0650039d21989fd0995421a2805748e90f
5
5
  SHA512:
6
- metadata.gz: ec5ce547cd29cac3e77ab276adf81aecfb7a51d61b5861dc7ed9bfc25a144e9fe66699024c2823b1498151917783f157f3eb7f68f028c013d5b20e724a791ba2
7
- data.tar.gz: 29d78668ae200a0c495cfa41806c1d6e0d247b1b8adfe27c04fea684fe0398f6f05840d34af3976f59767e8d23cc7125e8377076d2a179d0be1d4705659766e0
6
+ metadata.gz: 3e6872d0503878c8469cfd5054f5a5648792b30fd9d4bb6b3c33e55f107e847b88ee950f1e6083834f688d8cb1869c05b3e651d51c6f74c0eb6e8c91fef5bc7f
7
+ data.tar.gz: bec0f7dda088695b15ab5ece6c62bd0eb985c6b587c632b6080303b9a908c069786ef17127f023d052fd962e5727e8b59ff509756b7ddc65a3ffa5a52905c059
@@ -1,3 +1,3 @@
1
1
  module Capun
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
@@ -1,10 +1,14 @@
1
1
  input {
2
2
  file {
3
3
  path => "/home/<%= fetch(:user) %>/apps/<%= fetch(:application) %>/shared/log/lograge_*"
4
- type => "json"
4
+ type => "<%= fetch(:application) %>"
5
5
  }
6
6
  }
7
7
  filter{
8
+ mutate {
9
+ #square brackets should be removed, otherwise parse error will happen
10
+ gsub => [ "message", "\[|\]", "" ]
11
+ }
8
12
  json{
9
13
  source => "message"
10
14
  }
@@ -16,7 +20,9 @@ filter{
16
20
  }
17
21
  }
18
22
  output {
19
- elasticsearch {
20
- index => "<%= fetch(:application) %>"
23
+ if [type] == "<%= fetch(:application) %>" {
24
+ elasticsearch {
25
+ index => "<%= fetch(:application) %>"
26
+ }
21
27
  }
22
28
  }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capun
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ivan Zamylin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-12-17 00:00:00.000000000 Z
11
+ date: 2015-12-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler