使用Node.js的分布式数据库进行事件记录(MongoDB?) [英] Event logging with distributed database for node.js (MongoDB?)

查看:102
本文介绍了使用Node.js的分布式数据库进行事件记录(MongoDB?)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找用于node.js的系统或库,该系统或库可以在每个远程服务器上记录有关客户端访问的信息,并自动在中央日志服务器上收集该信息以供以后分析.远程服务器将具有只写访问权限,而中央服务器将积累大量要读取的数据.

I am looking for system or library for node.js, that can log information about client access on every remote server and automatically gather that information on central log server for later analysis. Remote server will have write only access, while central server will accumulate a lot of data to read.

我希望有使用MongoDB之类的分布式[NoSQL]数据库的解决方案. 但是我还没有找到如何设置它.

I hope there is solution using distributed [NoSQL] database, like MongoDB. However I have not found how to set it up.

例如,我希望可以在中央日志服务器上启动清理旧数据(处理完数据后),并且可以在远程服务器上删除旧日期的条目,而不会产生太多开销.

For example I hope that cleaning old data can be initiated on central log server (when data has been processed) and entries on old dates can be removed on remote server with little overhead.

当前,我们已登录文件和Hadoop系统以进行日志分析. 但是我认为我们需要在数据库中累积数据.

Currently we have logging into files and Hadoop system for log analysis. But I think we need to accumulate data in database.

推荐答案

温斯顿,目前记录最好node.js框架,可以选择登录MongoDB或CouchDB.

Winston, currently the best logging framework for node.js, has option to log into MongoDB or CouchDB.

这篇关于使用Node.js的分布式数据库进行事件记录(MongoDB?)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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