-
Notifications
You must be signed in to change notification settings - Fork 1
/
mongo-connector.json-example
62 lines (52 loc) · 2.09 KB
/
mongo-connector.json-example
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
{
"__comment__": "Configuration options starting with '__' are disabled",
"__comment__": "To enable them, remove the preceding '__'",
"__comment__": "You need to create a user than can read the oplog",
"mainAddress": "mongodb://db_url_without_username_password:db_port/admin",
"__comment__": "NOTE(arthurb): Follow these steps to re-sync elasticsearch from scratch",
"__comment__": "Delete this oplog.timestamp file",
"oplogFile": "/var/log/mongo-connector/oplog.timestamp",
"__comment__": "set 'noDump' to true",
"__comment__": "and restart the service 'sudo service mongo-connector restart'",
"__comment__": "When it's all sync'd up, turn it off again, set 'noDump' to false, and start it up",
"noDump": false,
"batchSize": -1,
"verbosity": 3,
"continueOnError": false,
"logging": {
"type": "file",
"filename": "/var/log/mongo-connector/mongo-connector.log",
"__format": "%(asctime)s [%(levelname)s] %(name)s:%(lineno)d - %(message)s",
"__rotationWhen": "D",
"__rotationInterval": 1,
"__rotationBackups": 10,
"__type": "syslog",
"__host": "localhost:514"
},
"authentication": {
"adminUsername": "oplog-reader-username",
"password": "oplog-readers-password"
},
"__comment__": "For more information about SSL with MongoDB, please see http://docs.mongodb.org/manual/tutorial/configure-ssl-clients/",
"ssl": {
"sslCertificatePolicy": "required"
},
"__comment__": "The database name, followed by the collection name should go here in namespaces.",
"namespaces": {
"include": [
"database_name.cars",
"database_name.trucks",
"database_name.boats",
"database_name.zebras"
]
},
"docManagers": [
{
"docManager": "elastic_doc_manager",
"targetURL": "https://name-of-aws-es-instance-and-some-gobbledy-gook.us-east-1.es.amazonaws.com",
"__bulkSize": 1000,
"__uniqueKey": "_id",
"__autoCommitInterval": null
}
]
}