Comments (4)
@hassen2017 thanks for trying monstache.
First, you will want to make sure that your settings for namespace-regex
and namespace-exclude-regex
do not match. The former is what your want to include in sync and the latter is what you want to exclude from sync. In the case above you are excluding documents from the testdb11.commentaires
collection which I'm pretty sure is not what you want. I should make that more clear in the docs. You do not need to configure either of those filters if you just want to sync all changes.
Next, you start monstache with the -verbose
flag you should see activity in your console anytime you make changes to MongoDB that match your filtering (if any). This activity will be the bulk indexing API requests to Elasticsearch. Note the responses to these requests and make sure that they are successful.
Finally, to view your data in Elasticsearch you can use something like curl or install Kibana to visualize your indexes. See mapping for information on how monstache determines the index and type of documents.
For your config you can try a curl request like below to view the data in Elasticsearch.
curl -XGET 'localhost:9200/testdb11.commentaires/_search?pretty'
from monstache.
@rwynn thanks for your response that's helped to understand the concepts
I have cloned and installed git://github.com/mobz/elasticsearch-head.git and I succeeded to see my data into the Cluster Overview
from monstache.
Hello @rwynn
I used Kibana to visualise the data indexed to elasticsearch & I was runnig Monstache with this cmd in Ubentu 16.4 : ./bin/monstache -f config.toml --verbose
But i cannot visualise the data in realTime when i make changes to MongoDB
Please what can I doing for that ?
from monstache.
Please read the info at https://www.elastic.co/guide/en/kibana/current/discover.html
You will want to make sure you have configured a valid index pattern in Kibana for the data you want to view. For example if you wanted to view the Mongo data from the database test
and the collection users
you would set the index pattern in Kibana to test.users
. When you type the index pattern, Kibana should let you create it when it detects matching indexex in Elasticsearch. Also, setup the index pattern to be time based. You can choose use the _timestamp field, or tell monstache to add a date field by using the following configuration settings -> https://rwynn.github.io/monstache-site/config/#index-oplog-time. Set index-oplog-time
to true and you will get a date field added by monstache that you can use when creating the index-pattern. Finally, make sure you have auto-refresh turned on in Kibana and that you are not filtering the data with a search term.
from monstache.
Related Issues (20)
- Issue with updating status of collections mentioned in direct-read-namespaces to directreads collection HOT 3
- Monstache up and running but not indexing/documents, first sync with direct reads seems too slow HOT 2
- Monstache with elastic search 8.x cluster HOT 2
- MongoClient missing in filter plugin input HOT 1
- Mongo data is not synced to elastic unless monstache is restarted HOT 5
- key operation time not found
- When run in an AWS multinode environment monstache throws error "Error starting change stream...cannot run with a readConcern other than 'majority'..." HOT 1
- Featurerequest: Waiting until the target index exists HOT 2
- set es mapping in monstache
- AWS: Support EKS serviceaccount tokens HOT 2
- Data incomplete synchronization HOT 2
- A lot of strange logs on bulk update not_found even though the logic works good HOT 6
- FEATURE: "mongo-url" (MONSTACHE_MONGO_URL) to separate for reading data and writing configs
- Signal for other processes when Monstache is done with direct reads
- Monstache sends bulk POST to ES with data in different order than that from mongodb HOT 1
- High rated vulnerability in `golang.org/x/text` (CVE-2022-32149)
- Further understanding of the worker mode
- ARM64 Docker Image
- Failed to find unique document using index pattern While document exists
- elasticsearch-max-bytes not effective, still error : Error 413 (Request Entity Too Large)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from monstache.