1 |
*.emerg;local6.none :omusrmsg:* |
You can also do like:
1 |
local5.none;local4.none /var/log/messages |
in your own config file.
sskaje's blog, study & research on technology
1 |
*.emerg;local6.none :omusrmsg:* |
You can also do like:
1 |
local5.none;local4.none /var/log/messages |
in your own config file.
Still in beta, merged into rsyslog’s official repo.
Known issues or features to be supported:
Error codes returned;
Connection detect;
http keep-alive;
…
Code here: https://github.com/rsyslog/rsyslog/tree/master/contrib/omhttpfs
Continue reading “OmHTTPFS, Another Rsyslog HDFS Output Plugin” »
omhttpfs is contrib-ed to rsyslog official repo as an alternative log-to-hdfs solution.
Omhdfs is not provided as an RPM from rsyslog’s offical yum repo, so I’m trying to build on a machine with hadoop installed.
My server is CentOS 6.5, with CDH 5.1 installed.
Download source from: http://www.rsyslog.com/files/download/rsyslog/rsyslog-8.2.2.tar.gz
Install dependencies:
1 |
yum install libestr libestr-devel liblogging liblogging-devel json-c-devel json-c libuuid-devel uuid libgcrypt-devel libgcrypt zlib-devel byacc byaccj |
Then I tried to:
1 |
./configure --enable-omhdfs --enable-zlib |
Failed on make.
Error message:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
omhdfs.c:80: error: expected specifier-qualifier-list before 'hdfsFS' omhdfs.c:121: error: expected ')' before 'fs' omhdfs.c:140: error: expected ')' before 'fs' omhdfs.c: In function 'fileObjConstruct': omhdfs.c:167: error: 'file_t' has no member named 'hdfsHost' omhdfs.c:168: error: 'file_t' has no member named 'fh' omhdfs.c:169: error: 'file_t' has no member named 'nUsers' omhdfs.c: In function 'fileObjAddUser': omhdfs.c:180: error: 'file_t' has no member named 'nUsers' omhdfs.c:181: error: 'file_t' has no member named 'nUsers' omhdfs.c:182: error: 'file_t' has no member named 'mut' omhdfs.c:183: error: 'file_t' has no member named 'nUsers' omhdfs.c: In function 'fileObjDestruct': omhdfs.c:190: error: 'file_t' has no member named 'nUsers' omhdfs.c:191: error: 'file_t' has no member named 'mut' omhdfs.c:194: error: 'file_t' has no member named 'hdfsHost' omhdfs.c:195: error: 'file_t' has no member named 'fh' omhdfs.c: In function 'filePrepare': omhdfs.c:210: warning: implicit declaration of function 'HDFSFileExists' omhdfs.c:210: error: 'file_t' has no member named 'fs' omhdfs.c:222: error: 'file_t' has no member named 'fs' omhdfs.c:223: warning: implicit declaration of function 'HDFSmkdir' omhdfs.c:223: error: 'file_t' has no member named 'fs' ... |
Continue reading “Build omhdfs for Rsyslog” »