PHPackages                             thecodingcompany/php-fluentd-mariadb - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. thecodingcompany/php-fluentd-mariadb

ActiveLibrary

thecodingcompany/php-fluentd-mariadb
====================================

PHP Library to use with Fluentd exec\_filter plugin

v1.0.0(8y ago)012MITPHPPHP &gt;=5.6.0

Since Nov 27Pushed 8y ago1 watchersCompare

[ Source](https://github.com/TheCodingCompany/php-fluentd-mariadb)[ Packagist](https://packagist.org/packages/thecodingcompany/php-fluentd-mariadb)[ Docs](https://github.com/TheCodingCompany/php-fluentd-mariadb)[ RSS](/packages/thecodingcompany-php-fluentd-mariadb/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

FluentD Exec\_Filter PHP Plugin to MariaDB
==========================================

[](#fluentd-exec_filter-php-plugin-to-mariadb)

Use this plugin to send data with the exec\_filter plugin from FluentD (TCP) to MariaDB.

\#TD-agent configuration example td-agent config example

```
## built-in TCP input
## @see http://docs.fluentd.org/articles/in_forward
## @see https://docs.fluentd.org/v0.12/articles/out_exec_filter

  @type forward
  @label @PHP_FILE
  port 2017
  bind 127.0.0.1
  @log_level debug

        #@type stdout
        @type exec_filter
        command /bin/php /usr/local/example.php 2>&1
        in_format json
        out_format json
        flush_interval 1s
        tag php_out
        @log_level debug

```

\#PHP Code (Example)

```
