logstash-input-mongodb | MongoDB input plugin for Logstash | Plugin library
kandi X-RAY | logstash-input-mongodb Summary
kandi X-RAY | logstash-input-mongodb Summary
MongoDB input plugin for Logstash
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of logstash-input-mongodb
logstash-input-mongodb Key Features
logstash-input-mongodb Examples and Code Snippets
Community Discussions
Trending Discussions on logstash-input-mongodb
QUESTION
I am looking for a way to sync collections in MongoDB with Elastic Search (ES). The goal is to have MongoDB as a primary data source and use MongoDB as a full text search engine. (The business logic of my project is written in python).
Several approaches are online available.
- Mongo-connect
- River plugin
- logstash-input-mongodb (logstash plugin) see similar question
- Transporter
However, most of the suggestions are several years old and I could not find any solution that supports the current version of ES (ES 7.4.0). Is anyone using such a construct? Do you have any suggestions?
I thought about dropping MongoDB as primary data source and just using ES for storing and searching. Though I have read that ES should not be used as a primary data source.
Edit
Thank you @gurdeep.sabarwal. I followed your approach. However, I do not manage to sync the mongodb to ES. My configuration looks like this:
...ANSWER
Answered 2019-Oct-11 at 22:33For ELK stack, I have implemented using (1st and 2nd ) approach and while doing research i came accross multiple appraches , so you could pick anyone. but my personal choice is 1st or 2nd becoz it give you lots of option for customization.
if you need code let me know,i can share snippet of it. i don't want to make answer long!.
1.Use dbSchemeJdbc jar(https://dbschema.com) to stream data from mongodb to ElasticSearch.
a.OpenSource dbSchemeJdbc jar
b.You could write native mongodb query or aggregation query directly in logstash.
your pipeline may look like the following:
QUESTION
I want to convert geo data of mongodb to elasticsearch 7.x in realtime.
I just know that should to use logstash-input-mongodb
plugin of logstash
.
Please, let me know how can I make logstash.conf
refer to below.
I have a mongodb data like :
(some fields were encrypted. using GibberishAES.size(256)
with custom string key.)
ANSWER
Answered 2019-Nov-11 at 01:30I solved it as made mongodb oplog
sender.
read mongodb oplog with encoding data and then send it with decoding to logstash
.
if someone find solution, you can find it in below :
QUESTION
I want to sync my mongodb data(local mongodb) to elastic search(local elastic) using logstash-plugin of mongodb
I have install logstash plugin using
...ANSWER
Answered 2019-Nov-05 at 08:37Problem solved! actually the directory opt/logstash was not created . So I manually create the logstash folder under opt. After that i gave Write permission to that directory , so that when we execute the command for logstash then it can create file inside this folder.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install logstash-input-mongodb
Logstash installed from ZIP | TGZ bin/plugin install /path/to/logstash-input-mongodb-0.3.0.gem
Logstash from GIT git clone https://github.com/elastic/logstash.git cd logstash (ensure that the correct jruby is installed for the version of logstash you are installing) rake test:install-core bin/plugin install /path/to/logstash-input-mongodb-0.3.0.gem bin/plugin install --development
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page