No commit activity in last 3 years
No release in over 3 years
Fluentd Output filter plugin.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Development

>= 0
>= 3.1.0

Runtime

< 0.14.0, >= 0.10.0
 Project Readme

fluent-plugin-path2tag

Build Status

Overview

A fluent output filter plugin for Nginx's logging.
Convert uri to tag. And reformat json data.

Installation

# for system installed fluentd
$ gem install fluent-plugin-path2tag

# for td-agent (Legacy)
$ sudo /usr/lib64/fluent/ruby/bin/fluent-gem install ffluent-plugin-path2tag -v 1.0.4

# for td-agent2 (with fluentd v0.12)
$ sudo td-agent-gem install fluent-plugin-path2tag -v 1.0.4

Configuration

Syntax

path2tag <path_key_name> <data_key_name>

Usage

<source>
  @type tail
  format ltsv
  tag nginx.access
  path /var/log/nginx/access.log
  pos_file /var/log/td-agent/buffer/access.log.pos
</source>

<match nginx.access>
    @type path2tag
    path2tag request_uri request_body
</match>

License

Copyright (c) 2017- Shota Kuwahara
MIT License