手机版
你好,游客 登录 注册 搜索
背景:
阅读新闻

Facebook scribe在Ubuntu下面安装笔记

[日期:2011-07-21] 来源:Linux社区  作者:emili [字体:大 中 小]

(10)   一个用来将 apache 等日志传到 scribe 的 Python 例子

Pipe Apache (or any) Logs to Scribe

I created a simple Python script called scribe_log to tail a log file and pipe it to Scribe.

I use supervisor to start and keep the pipe running.

Relevant supervisord.conf configuration:

[program:scribe.apache.access] 
command
=/usr/local/sbin/scribe_log --category apache.access --file /var/log/httpd/access_log

Options

usage: scribe_log [options]options: 
 
-h, --help           show this help message and exit 
 
--file=FILE          file to tail into Scribe 
 
--category=CATEGORY  Scribe category 
 
--host=HOST          destination Scribe host server 
 
--port=PORT          destination Scribe port 
 
--prefix=PREFIX      add to the beginning of each log line 
 
--postfix=POSTFIX    add to the end of each log line
linux
相关资讯       Ubuntu教程 
本文评论   查看全部评论 (1)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款
第 1 楼
* 匿名 发表于 2013/12/3 15:59:27
https://github.com/pcting/scribe/ 这个网址已经上不了