apptuit-fluent-plugin
Fluentd filter plugin to get the fingerprint of error messages
It is a simple filter plugin for fluentd and it is used to generate SHA1 hash for error messages.
Installation
RubyGems
Install with gem or td-agent-gem as below
$ gem install apptuit-fluent-plugin
$ sudo td-agent-gem install apptuit-fluent-plugin
Usage
<filter>
@type apptuit
lang python
syslog true
error_msg_tag error_message
fingerprint_name fingerprint
exception_name error_exception
</filter>
Configuration
Result
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
demo_error_count{error_exception="NameError",fingerprint="d85a855fe660c936ea88492a6bd4c3d5f4a448cf"} 1.0
LICENSE
Copyright 2017 Agilx, Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.