Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
username/password must be created on jabberserver.com. [email protected] must be loged in via Jabber/XMPP client that you write on your own (I prefer perl + Net::Jabber). Then you can do whatever you want with the incoming XMPP messages (store on DB, send e-mail, ...).
At Ustream we needed a tool just like that, so we wrote Yolo. It is a general log parser and processor that can send data to StatsD, which aggregates the data you need (it supports counters, timing data and gauges) and sends to Graphite.
In a nutshell you just have to write a config file, setup a regexp parser to match your log data and setup the statsd keys you want to use. You don't have to write any code.
发布评论
评论(3)
当添加新行时,将 Jabber/XMPP 消息发送到 [email protected]日志:
用户名/密码必须在 jabberserver.com 上创建。 [email protected] 必须通过您编写的 Jabber/XMPP 客户端登录靠你自己(我更喜欢perl + Net::Jabber)。然后您可以对传入的 XMPP 消息执行任何您想要的操作(存储在数据库中、发送电子邮件……)。
Send Jabber/XMPP message to [email protected] when new line is appended to the log:
username/password must be created on jabberserver.com. [email protected] must be loged in via Jabber/XMPP client that you write on your own (I prefer perl + Net::Jabber). Then you can do whatever you want with the incoming XMPP messages (store on DB, send e-mail, ...).
Tail 是我所知道的最常用的工具,如果你在 Windows 上有< a href="http://download.cnet.com/Hoo-WinTail/3000-2218_4-10425410.html" rel="nofollow">wintail。
Tail is the most common tool I know of and if your on windows there is wintail.
在 Ustream,我们需要一个类似的工具,因此我们编写了 Yolo。它是一个通用日志解析器和处理器,可以将数据发送到 StatsD,StatsD 聚合您需要的数据(它支持计数器、计时数据和仪表)并发送到 Graphite。
简而言之,您只需编写一个配置文件,设置一个正则表达式解析器来匹配您的日志数据,并设置您想要使用的 statsd 键。您不必编写任何代码。
您可以在 Github 上找到示例配置。
At Ustream we needed a tool just like that, so we wrote Yolo. It is a general log parser and processor that can send data to StatsD, which aggregates the data you need (it supports counters, timing data and gauges) and sends to Graphite.
In a nutshell you just have to write a config file, setup a regexp parser to match your log data and setup the statsd keys you want to use. You don't have to write any code.
You can find an example config on Github.