capun 0.0.11 → 0.0.12

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: b1d0573df83bbb9e028086c7d85384ab0228a7ce
4
- data.tar.gz: 1e7391d997f28349c819d70cf6ea99ed8000be05
3
+ metadata.gz: fd69811f9f389f1e06e05c5b283c6d02f938606b
4
+ data.tar.gz: 37cfff03d94df8c7fa2c46f9e39abc4b5325c44d
5
5
  SHA512:
6
- metadata.gz: b2359e6adb1d8e820296eb6711ca9d91db05d22ad126becce1bf3749675cfd568f76085ac23523a6362c44930d02a786db1b4e7f0c11168075e23a14b3ccf891
7
- data.tar.gz: 630f52a24899ed457db5032649ed23a9d10978f31bfd69541647cffa29d2909414bdbe17e89a1eb573e62dafac8397e196d6d5e7ff12b180376c009364deb0a5
6
+ metadata.gz: 7d798e12a6bb566ac22fc896ce9f1ebfdacbf2c313f29873bb6d09c0ec4f4e5dea3b9df622a3fe213474af4176c662bc62a15e633e70082f63e1dda0a9677735
7
+ data.tar.gz: 231cdcbe657b0e86b1f50892234b7f970dfc91b83acc4d3dc594516b56c09e6f13d206feff13b6adac438341102e12bc0aea1247f2ee3444dce83b0d9b2a4f8d
data/lib/capun/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Capun
2
- VERSION = "0.0.11"
2
+ VERSION = "0.0.12"
3
3
  end
@@ -5,18 +5,20 @@ input {
5
5
  }
6
6
  }
7
7
  filter{
8
- mutate {
9
- #square brackets should be removed, otherwise parse error will happen
10
- gsub => [ "message", "\[|\]", "" ]
11
- }
12
- json{
13
- source => "message"
14
- }
15
- useragent {
16
- source => "agent_string"
17
- }
18
- geoip {
19
- source => "remote_ip"
8
+ if [type] == "<%= fetch(:application) %>" {
9
+ mutate {
10
+ #square brackets should be removed, otherwise parse error will happen
11
+ gsub => [ "message", "\[|\]", "" ]
12
+ }
13
+ json{
14
+ source => "message"
15
+ }
16
+ useragent {
17
+ source => "agent_string"
18
+ }
19
+ geoip {
20
+ source => "remote_ip"
21
+ }
20
22
  }
21
23
  }
22
24
  output {
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capun
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.11
4
+ version: 0.0.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ivan Zamylin