需要使用 Node.js 的 SysLog 建议 [英] Need suggestion for SysLog with Node.js

查看:38
本文介绍了需要使用 Node.js 的 SysLog 建议的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚安装了 npm install node-syslog 但它不起作用.

I have just npm install node-syslog but it doesn't work.

我有一个系统日志服务器(IP 地址和 local0).

I have a syslog server (IP address , and local0).

我正在寻找一个 syslog 模块来帮助我将消息发布到 syslog.但我不知道我应该使用哪一种.请给我一些建议.谢谢.

And I'm looking for a syslog module to help me post the message to syslog. But I don't know which one I should use. Please give me some suggestion. thanks.

哦..如果有好的系统日志解析器(node.js),也请告诉我.:)

oh.. if there is a good syslog parser (node.js), please let me know too. :)

推荐答案

我都用过

https://github.com/cloudhead/node-syslog

https://github.com/cconstantine/syslog-node

没有任何问题.

但是当我遇到你的情况时,我会跑:

But when I'm in your situation I run:

 npm search $(what im looking for)

我运行了 npm search syslog,这是我的输出,希望对您有所帮助.

I ran npm search syslog and this is my output, hope it helps.

ain                  Syslog logging for node.js                                    =akaspin       (prehi
ain-tcp              Syslog logging for node.js, with syslog/TCP support           =andry1        2011-0
ain2                 Syslog logging for node.js. Continuation of ain               =phuesler      2012-0
ain2-fs              Syslog logging for node.js. Continuation of ain               =ossareh       2011-1
ain2-papandreou      Syslog logging for node.js. Continuation of ain               =papandreou    2012-0
artifi-glossy        Syslog parser and producer. It is fork of https://github.com/squeeks/glossy - pleas
beatit               Simple agent that can stay hooked on a log file (even if while log rotated and send
frontail             tail -F output in browser                                     =mthenw        2012-0
glossy               Syslog parser and producer                                    =squeeks       2012-0
netasqsyslog         Syslog for NETASQ security appliances                         =sdolard       2012-0
node-nativesyslog    JavaScript-only syslog module for NodeJS                      =janoszen      2011-1
node-syslog          Node module to support sending messages to syslog daemon      =schamane      2012-0
posix                The missing POSIX system calls                                =mel           2012-0
rconsole             'syslog.h' bindings with a revised console module             =tblobaum      2012-0
simplelogger         A simple logging solution supporting file, stdout and syslog output =ditesh 2011-06
splog                A NodeJS library which provides a syslog-like remote logging interface =mattbornski
syslog               Syslog-ng TCP client, with basic fault-tolerance.             =cloudhead     2011-0
syslog-node          A syslog server and realtime web view of syslog messages      =cconstantine  2011-0
syslogd-nodejs       syslogd in node.js with logging to cli, file, mongodb and via websockets =crahles 2
tails                Aggregate your syslog messages & filter for those that matter in real time. =porter
winston-syslog       A syslog transport for winston                                =indexzero     2011-0
winston-syslog-ain2  An ain2 based syslog transport for winston                    =lamtha        2012-0

这篇关于需要使用 Node.js 的 SysLog 建议的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆