Docker based wrapper for mongo connector to send data to elasticsearch.
In Development
https://github.com/totem/docker-mongo-es/issues
- Docker 1.6.2+
- MongoDB Replica Set (1 or more nodes)
- Admin access to replicaset
- ElasticSearch Instance
docker run --rm -it -e MONGO_URL=172.17.42.1:27017 -e ES_URL=172.17.42.1:9200 totem/docker-mongo-es
Specifies the mongo replicaset url. (e.g.: 172.17.42.1:27017)
Specified the elastic search url (e.g.: 172.17.42.1:9200)
Admin username for mongodb. If blank, no credentials are used. (Defaults to blank)
Admin password for mongodb.(Default to blank)
List of database.collection separated by comma that needs to be included for indexing. e.g.: totem.events,totem.deployments
to
include database collections events and deployments from totem database.
Optional config file location. (Defaults to blank). e.g.: file:///tmp/config.yml or https://my-config-server/config.yml. Example config file:
defaults:
index-defaults: &index-defaults
mappings:
_default_:
_all:
enabled: true
dynamic_templates:
- string_fields:
mapping:
index: not_analyzed
type: string
match: '*'
match_mapping_type: string
es:
indexes:
totem:
<<: *index-defaults
mongo-connector:
logging:
type: stream
Note: List of complete mongo-connector settings can be found in mongo-connector wiki
Verbosity for logging (between 0 - 3, where 0 is ERROR, 3 is DEBUG)