fluent-plugin-detectmate
Fluentd formatter plugin for DetectMate.
Installation
You can install this gem using the following command:
$ fluent-gem install fluent-plugin-detectmate
Configuration
This example reads logs from a file(/var/log/some.log) and sends
the data to a nano msg socket(using fluent-plugin-nng).
It automatically formats the data using the detectmate LogSchema.
<source>
@type tail
@id input_tail
<parse>
@type none
</parse>
path /var/log/some.log
path_key logSource
tag nng.*
</source>
<match nng.**>
@type nng
uri tcp://127.0.0.1:5557
<inject>
hostname_key hostname
# overwrite hostname:
# hostname somehost
</inject>
<buffer>
flush_mode immediate
</buffer>
<format>
@type detectmate
</format>
</match>
Limitation
Currently the formatter only supports LogSchema
Copyright
- Copyright(c) 2026- whotwagner
- License
- EUROPEAN UNION PUBLIC LICENCE, Version 1.2