• Stars
    star
    102
  • Rank 328,362 (Top 7 %)
  • Language
    Ruby
  • Created almost 10 years ago
  • Updated 7 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Multi format parser for Fluentd

Multi format parser plugin for Fluentd

Parse format mixed logs.

Requirements

fluent-plugin-multi-format-parser fluentd ruby
>= 1.0.0 >= v0.14.0 >= 2.1
< 1.0.0 >= v0.12.0 >= 1.9

Installation

Use RubyGems:

fluent-gem install fluent-plugin-multi-format-parser

Configuration

This plugin is a parser plugin. After installed, you can use multi_format in <parse> supported plugins. Use multiple <pattern>s to specify multiple parser formats.

<source>
  @type udp
  tag logs.multi

  <parse>
    @type multi_format
    <pattern>
      format apache
    </pattern>
    <pattern>
      format json
      time_key timestamp
    </pattern>
    <pattern>
      format none
    </pattern>
  </parse>
</source>

multi_format tries pattern matching from top to bottom and returns parsed result when matched.

Available format patterns and parameters are depends on Fluentd parsers. See parser plugin document for more details.

For v1.0

Put <pattern>s inside <parse>.

<filter app.**>
  @type parser
  key_name message
  <parse>
    @type multi_format
    <pattern>
      format json
    </pattern>
    <pattern>
      format regexp
      expression /...your regexp pattern.../
    </pattern>
    <pattern>
      format none
    </pattern>
  </parse>
</filter>

For v0.12

Use format instead of <parse></parse>.

<filter app.**>
  @type parser
  key_name message

  format multi_format
  <pattern>
    format json
  </pattern>
  <pattern>
    format /...your regexp pattern.../
  </pattern>
  <pattern>
    format none
  </pattern>
</filter>

NOTE

This plugin doesn't work with multiline parsers because parser itself doesn't store previous lines.

Copyright

AuthorMasahiro Nakagawa
CopyrightCopyright (c) 2014- Masahiro Nakagawa
LicenseApache License (2.0)

More Repositories

1

fluent-plugin-record-modifier

Fluentd filter plugin for modifying each event record
Ruby
116
star
2

fluent-plugin-netflow

Netflow plugin for Fluentd
Ruby
59
star
3

mustache-d

Mustache template engine for D
D
53
star
4

fluent-plugin-beats

Fluentd plugin for Elastic beats
Ruby
45
star
5

ruby-string-random

StringRandom is Ruby version of String::Random written in Perl
Ruby
23
star
6

denv

D version of rbenv
Shell
22
star
7

xxhash-d

D implementation of xxhash
D
16
star
8

yajl-d

YAJL binding for D
D
11
star
9

reed

Arango Driver for D
D
10
star
10

d-volkswagen

Volkswagen detects when your tests are being run in a CI server, and makes them pass.
D
10
star
11

fluent-top

top for Fluentd
Ruby
9
star
12

hadoop-metrics

Wrapper for Hadoop Metrics API
Ruby
8
star
13

Mongo-D-Driver

Mongo Driver for D
D
7
star
14

fluentd-admin

Easy to use fluentd web interface
JavaScript
5
star
15

fluent-plugin-dict-map

Dictionary based map filter for Fluentd
Ruby
5
star
16

repeatedly.github.com

HTML
5
star
17

fluent-plugin-stdin

Fluentd plugin for reading events from stdin
Ruby
5
star
18

zstd-d

D binding for Zstandard
D
5
star
19

fluent-plugin-http-puma

Puma based HTTP(S) plugin for Fluentd
Ruby
4
star
20

siphash-d

D implementation of SipHash
D
4
star
21

shule-aroon

Shule Aroon is a discovery service written in Ruby.
Ruby
4
star
22

colored-logger

Colored logger for TTY
D
4
star
23

ltsv-d

LTSV implemetation for D
D
3
star
24

shibboleth-module-for-openpne

This module conduct Shibboleth authentication on OpenPNE.
PHP
3
star
25

shibboleth-demo

Demo site and sample code of Shibbolize.
Ruby
2
star
26

mustache4d

Old location
2
star
27

ReVIEW

writing tool. original author Minero Aoki(aka aamine) http://www.loveruby.net/
Ruby
2
star
28

travis-test

Testing d project by travis
D
1
star