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 +4 -4
- data/lib/capun/version.rb +1 -1
- data/lib/generators/capun/templates/logstash.config.erb +9 -3
- 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: 5a95e8056cb34e4b5d26ba83491da6db43eb1044
|
4
|
+
data.tar.gz: e7585e0650039d21989fd0995421a2805748e90f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3e6872d0503878c8469cfd5054f5a5648792b30fd9d4bb6b3c33e55f107e847b88ee950f1e6083834f688d8cb1869c05b3e651d51c6f74c0eb6e8c91fef5bc7f
|
7
|
+
data.tar.gz: bec0f7dda088695b15ab5ece6c62bd0eb985c6b587c632b6080303b9a908c069786ef17127f023d052fd962e5727e8b59ff509756b7ddc65a3ffa5a52905c059
|
data/lib/capun/version.rb
CHANGED
@@ -1,10 +1,14 @@
|
|
1
1
|
input {
|
2
2
|
file {
|
3
3
|
path => "/home/<%= fetch(:user) %>/apps/<%= fetch(:application) %>/shared/log/lograge_*"
|
4
|
-
type => "
|
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
|
-
|
20
|
-
|
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.
|
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-
|
11
|
+
date: 2015-12-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|