apptuit-fluent-plugin 0.1.2 → 0.1.3
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/Gemfile.lock +1 -1
- data/README.md +0 -12
- data/apptuit-fluent-plugin.gemspec +1 -1
- data/lib/fluent/plugin/filter_apptuit.rb +7 -9
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1307342316fe6f37a4720e9cd35cbfaa07d1e0bd8ae9cef04547eca0c519dd54
|
4
|
+
data.tar.gz: 82c06218485631107c90a9ac84a3037d25181afbfaf1eee031c20958f0425c61
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e63c937598b18e486335ecf7462486ecaf37694f43690048078c6e8a38fc8d18040ddbc35a782d2837d23015d3f264de3b847ddc4cf13cccf59d63823c29299c
|
7
|
+
data.tar.gz: 683775dca19051efbb2b76a6f0d35ebbb0add9ba14ed3bc05f53f6e893a9999719cd2900246129d54bd2e99533b4c4588482cd9e28b4b092d7be4ddb8a78a75c
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -45,8 +45,6 @@ $ sudo td-agent-gem install apptuit-fluent-plugin
|
|
45
45
|
2. java
|
46
46
|
3. nodejs
|
47
47
|
|
48
|
-
|
49
|
-
|
50
48
|
* **syslog (bool) (optional)**
|
51
49
|
* This is boolean config parameter and its default value is `false`.
|
52
50
|
|
@@ -58,16 +56,6 @@ $ sudo td-agent-gem install apptuit-fluent-plugin
|
|
58
56
|
* This config parameter is used to give the tag name of the error message.
|
59
57
|
|
60
58
|
Default value: `message`.
|
61
|
-
|
62
|
-
* **fingerprint_name (string) (optional)**
|
63
|
-
* This config parameter is used to give a custom name to he fingerprint tag.
|
64
|
-
|
65
|
-
Default value: `error_fingerprint`.
|
66
|
-
|
67
|
-
* **exception_name (string) (optional)**
|
68
|
-
* This config parameter is used to give a custom name to he exception tag.
|
69
|
-
|
70
|
-
Default value: `exception`.
|
71
59
|
|
72
60
|
## Result
|
73
61
|
If the provided message is valid then the record is added with an two new tags that is `error` and `error_hash` and the can be specified in labels section for exposing in metrics
|
@@ -24,9 +24,7 @@ module Fluent::Plugin
|
|
24
24
|
|
25
25
|
config_param :lang, :string
|
26
26
|
config_param :syslog, :bool, default: false
|
27
|
-
config_param :error_msg_tag, :string, default: 'message'
|
28
|
-
config_param :fingerprint_name, :string, default: 'error_fingerprint'
|
29
|
-
config_param :exception_name, :string, default: 'exception'
|
27
|
+
config_param :error_msg_tag, :string, default: 'message'
|
30
28
|
|
31
29
|
def get_decoded_message(message)
|
32
30
|
message = message.gsub(/#([0-9]{3})/) {$1.oct.chr}
|
@@ -45,8 +43,8 @@ module Fluent::Plugin
|
|
45
43
|
end
|
46
44
|
err_name, fingerprint, essence, stack = fingerprint_object.fingerprint_java(message)
|
47
45
|
if err_name != nil
|
48
|
-
record[
|
49
|
-
record[
|
46
|
+
record['error_fingerprint'] = fingerprint
|
47
|
+
record['exception'] = err_name
|
50
48
|
end
|
51
49
|
end
|
52
50
|
elsif @lang.downcase == 'python'
|
@@ -58,8 +56,8 @@ module Fluent::Plugin
|
|
58
56
|
end
|
59
57
|
err_name, fingerprint, essence, stack = fingerprint_object.fingerprint_python(message)
|
60
58
|
if err_name != nil
|
61
|
-
record[
|
62
|
-
record[
|
59
|
+
record['error_fingerprint'] = fingerprint
|
60
|
+
record['exception'] = err_name
|
63
61
|
end
|
64
62
|
end
|
65
63
|
elsif @lang.downcase == 'nodejs'
|
@@ -71,8 +69,8 @@ module Fluent::Plugin
|
|
71
69
|
end
|
72
70
|
err_name, fingerprint, essence, stack = fingerprint_object.fingerprint_nodejs(message)
|
73
71
|
if err_name != nil
|
74
|
-
record[
|
75
|
-
record[
|
72
|
+
record['error_fingerprint'] = fingerprint
|
73
|
+
record['exception'] = err_name
|
76
74
|
end
|
77
75
|
end
|
78
76
|
else
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: apptuit-fluent-plugin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- hari prasad
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-02-
|
11
|
+
date: 2019-02-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|