简体   繁体   中英

Event logging with distributed database for node.js (MongoDB?)

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.

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.

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

Winston是目前node.js最好的日志记录框架,可以选择登录MongoDB或CouchDB。

Scribe could be what you're looking for. There are node packages too

I have never checked it out so I'd be interested in reading your thoughts in the comments if you investigate it and find it good/bad, easy/hard to setup, etc.

MongoDB or any other distributed databases will not solve problem. In-house project must be created. Some features of MongoDB for consideration:

Capped Collections are actually way to loose data. I may be good for short history.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM