bpaquet / node-logstash

Simple logstash implmentation in nodejs : file log collection, sent with zeromq
Other
517 stars 141 forks source link

all verbs with this library? #118

Closed made-by-chris closed 8 years ago

made-by-chris commented 8 years ago

I’m looking to listen to read/write/delete events from nodeJS to mongoDB - I can already detect the events, now I would like to duplicate the events from nodeJS to my elasticsearch instance. Can i use node-logstash to read/write/delete from nodeJS to elasticsearch? Thanks, I'm pretty confused at this point. (Also i dont want to use any direct streams between the database like mongo-connector)

bpaquet commented 8 years ago

You can use node-logstash to write to ES from NodeJS. There are two plugins

You can use it as external tools, or you can load node-logstash directly into your program. If you are interested by the second solution, let me know, I will write some docs.