Sha256: 3d72befbcc1abd67e957980582dec60ffe34e653103b04d69cfcfb1329f439e3
Contents?: true
Size: 1.53 KB
Versions: 2
Compression:
Stored size: 1.53 KB
Contents
# fluent-plugin-formatter_sprintf [![Build Status](https://secure.travis-ci.org/toyama0919/fluent-plugin-formatter_sprintf.png?branch=master)](http://travis-ci.org/toyama0919/fluent-plugin-formatter_sprintf) Fluentd sprintf formatter plugin ## Install Use RubyGems: ``` gem install fluent-plugin-formatter_sprintf ``` ## Configuration Example `out_file` and `out_s3` plugin supports formatter plugin. ### out_file ```apache <match test.file> type file path /tmp/test.log format sprintf sprintf_format "${tag} ${time} ${url} ${ip_address}\n" time_format "%Y-%m-%d %H:%M:%S" </match> ``` ### out_s3 ```apache <match test.s3> type s3 aws_key_id XXXXXXXXXXXXXXXXXX aws_sec_key XXXXXXXXXXXXXXXXXX s3_bucket sample-bucket s3_object_key_format %{path}%{time_slice}%{index} path logs/ buffer_path /tmp/fluent/s3 buffer_chunk_limit 8m time_slice_format %Y/%m/%d/test.log.%H%M time_slice_wait 1m time_format %Y-%m-%d %H:%M:%S,%3N store_as text format sprintf sprintf_format "${tag} ${time} ${url} ${ip_address}\n" </match> ``` ### bad syntax(at error) sprintf_format "%s ${tag} ${time} ${url} ${ip_address}\n" ## ChangeLog See [CHANGELOG.md](CHANGELOG.md) for details. ## Contributing 1. Fork it 2. Create your feature branch (`git checkout -b my-new-feature`) 3. Commit your changes (`git commit -am 'Add some feature'`) 4. Push to the branch (`git push origin my-new-feature`) 5. Create new [Pull Request](../../pull/new/master) ## Copyright Copyright (c) 2014 Hiroshi Toyama. See [LICENSE](LICENSE) for details.
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
fluent-plugin-formatter_sprintf-0.0.3 | README.md |
fluent-plugin-formatter_sprintf-0.0.2 | README.md |