Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kjdev/apache-mod-fluentd
Apache fluentd module
https://github.com/kjdev/apache-mod-fluentd
Last synced: 25 days ago
JSON representation
Apache fluentd module
- Host: GitHub
- URL: https://github.com/kjdev/apache-mod-fluentd
- Owner: kjdev
- License: apache-2.0
- Created: 2015-04-28T07:36:10.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-07-12T05:45:48.000Z (over 8 years ago)
- Last Synced: 2024-11-18T00:52:40.951Z (about 2 months ago)
- Language: C
- Size: 146 KB
- Stars: 6
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# mod_fluentd
mod_fluentd is Fluentd log output module for Apache HTTPD Server.
## Build
```
% git clone --depth=1 https://github.com/kjdev/apache-mod-fluentd.git
% cd apache-mod-fluentd
% ./autogen.sh # OR autoreconf -i
% ./configure [OPTION]
% make
% make install
```### Build options
apache path.
* --with-apxs=PATH
* --with-apr=PATH## Configration
httpd.conf:
```
LoadModule fluentd_module modules/mod_fluentd.soCustomLog "fluentd:tag" combined
# Output:
# host: 127.0.0.1
# port: 5160 (UDP)
# out : {"tag":"tag","message":"127.0.0.1 - - .."}
# message to combined format## Select Host/Port
CustomLog "fluentd:host-port#192.168.122.123@8765" combined
# Output:
# host: 192.168.122.123
# port: 8765 (UDP)
# out : {"tag":"host-port","message":"127.0.0.1 - - .."}
# message to combined format## Append log message
CustomLog 'fluentd:append {"out":"append"}' combined
# Output:
# host: 127.0.0.1
# port: 5160 (UDP)
# out : {"tag":"append","out":"append","message":"127.0.0.1 - - .."}
# message to combined format```