Usage of /usr/bin/monstache:
-backoff-exempt-status-codes value
HTTP status codes that must not initiate backoff
-change-stream-namespace value
A list of change stream namespaces
-cluster-name string
Name of the monstache process cluster
-config-database-name string
The MongoDB database name that monstache uses to store metadata
-debug
True to enable verbose debug information
-delete-index-pattern string
An Elasticsearch index-pattern to restric the scope of stateless deletes
-delete-strategy value
Stategy to use for deletes. 0=stateless,1=stateful,2=ignore
-direct-read-bounded
True to limit direct reads to the docs present at query start time
-direct-read-concur int
Max number of direct-read-namespaces to read concurrently. By default all givne are read concurrently
-direct-read-dynamic-exclude-regex string
A regex to use for excluding namespaces when using dynamic direct reads
-direct-read-dynamic-include-regex string
A regex to use for including namespaces when using dynamic direct reads
-direct-read-namespace value
A list of direct read namespaces
-direct-read-no-timeout
True to set the no cursor timeout flag for direct reads
-direct-read-split-max int
Max number of times to split a collection for direct reads
-direct-read-stateful
True to mark direct read namespaces as complete and not sync them in future runs
-disable-change-events
True to disable listening for changes. You must provide direct-reads in this case
-disable-delete-protection
True to disable delete protection and allow multiple deletes in Elasticsearch per event in MongoDB
-disable-file-pipeline-put
True to disable auto-creation of the ingest plugin pipeline
-dropped-collections
True to delete indexes from dropped collections (default true)
-dropped-databases
True to delete indexes from dropped databases (default true)
-elasticsearch-api-key string
Base64 encoded elasticsearch APIKey value
-elasticsearch-client-timeout int
Number of seconds before a request to Elasticsearch is timed out
-elasticsearch-max-bytes int
Number of bytes to hold before flushing to Elasticsearch
-elasticsearch-max-conns int
Elasticsearch max connections
-elasticsearch-max-docs int
Number of docs to hold before flushing to Elasticsearch
-elasticsearch-max-seconds int
Number of seconds before flushing to Elasticsearch
-elasticsearch-password string
The elasticsearch password for basic auth
-elasticsearch-pem-file string
Path to a PEM file for secure connections to elasticsearch
-elasticsearch-retry
True to retry failed request to Elasticsearch
-elasticsearch-url value
A list of Elasticsearch URLs
-elasticsearch-user string
The elasticsearch user name for basic auth
-elasticsearch-validate-pem-file
Set to boolean false to not validate the Elasticsearch PEM file (default true)
-elasticsearch-version string
Specify elasticsearch version directly instead of getting it from the server
-enable-easy-json
True to enable easy-json serialization
-enable-http-server
True to enable an internal http server
-enable-oplog
True to enable direct tailing of the oplog
-enable-patches
True to include an json-patch field on updates
-env-delimiter string
A delimiter to use when splitting environment variable values (default ",")
-exit-after-direct-reads
True to exit the program after reading directly from the configured namespaces
-f string
Location of configuration file
-fail-fast
True to exit if a single _bulk request fails
-file-downloaders int
GridFs download go routines
-file-highlighting
True to enable the ability to highlight search times for a file query
-file-namespace value
A list of file namespaces
-graylog-addr string
Send logs to a Graylog server at this address
-gzip
True to enable gzip for requests to Elasticsearch
-http-server-addr string
The address the internal http server listens on
-index-as-update
True to index documents as updates instead of overwrites
-index-files
True to index gridfs files into elasticsearch. Requires the elasticsearch mapper-attachments (deprecated) or ingest-attachment plugin
-index-oplog-time
True to add date/time information from the oplog to each document when indexing
-index-stats
True to index stats in elasticsearch
-mapper-plugin-path string
The path to a .so file to load as a document mapper plugin
-max-file-size int
GridFs file content exceeding this limit in bytes will not be indexed in Elasticsearch
-merge-patch-attribute string
Attribute to store json-patch values under
-mongo-config-url string
MongoDB config server connection URL
-mongo-oplog-collection-name string
Override the collection name which contains the mongodb oplog
-mongo-oplog-database-name string
Override the database name which contains the mongodb oplog
-mongo-url string
MongoDB server or router server connection URL
-mongo-write-url string
MongoDB connection URL for writing monstache state
-namespace-drop-exclude-regex string
A regex which is matched against a drop operation's namespace (<database>.<collection>). Only drop operations which do not match are synched to elasticsearch
-namespace-drop-regex string
A regex which is matched against a drop operation's namespace (<database>.<collection>). Only drop operations which match are synched to elasticsearch
-namespace-exclude-regex string
A regex which is matched against an operation's namespace (<database>.<collection>). Only operations which do not match are synched to elasticsearch
-namespace-regex string
A regex which is matched against an operation's namespace (<database>.<collection>). Only operations which match are synched to elasticsearch
-oplog-date-field-format string
Format to use for the oplog date
-oplog-date-field-name string
Field name to use for the oplog date
-oplog-ts-field-name string
Field name to use for the oplog timestamp
-patch-namespace value
A list of patch namespaces
-pipe-allow-disk
True to allow MongoDB to use the disk for pipeline options with lots of results
-post-processors int
Number of post-processing go routines
-pprof
True to enable pprof endpoints
-print-config
Print the configuration and then exit
-prune-invalid-json
True to omit values which do not serialize to JSON such as +Inf and -Inf and thus cause errors
-relate-buffer int
Number of relates to queue before skipping and reporting an error
-relate-threads int
Number of threads dedicated to processing relationships
-replay
True to replay all events from the oplog and index them in elasticsearch
-resume
True to capture the last timestamp of this run and resume on a subsequent run
-resume-from-earliest-timestamp
Automatically select an earliest timestamp to resume syncing from
-resume-from-timestamp int
Timestamp to resume syncing from
-resume-name string
Name under which to load/store the resume state. Defaults to 'default'
-resume-strategy value
Strategy to use for resuming. 0=timestamp,1=token
-resume-write-unsafe
True to speedup writes of the last timestamp synched for resuming at the cost of error checking
-routing-namespace value
A list of namespaces that override routing information
-stats
True to print out statistics
-stats-duration string
The duration after which stats are logged
-stats-index-format string
time.Time supported format to use for the stats index names
-time-machine-direct-reads
True to index the results of direct reads into the any time machine indexes
-time-machine-index-prefix string
A prefix to preprend to time machine indexes
-time-machine-index-suffix string
A suffix to append to time machine indexes
-time-machine-namespace value
A list of direct read namespaces
-tpl
True to interpret the config file as a template
-v True to print the version number
-verbose
True to output verbose messages
-worker string
The name of this worker in a multi-worker configuration
-workers value
A list of worker names
Options (94)
| Option | Description | Source |
|---|---|---|
-backoff-exempt-status-codes value | HTTP status codes that must not initiate backoff | help |
-change-stream-namespace value | A list of change stream namespaces | help |
-cluster-name string | Name of the monstache process cluster | help |
-config-database-name string | The MongoDB database name that monstache uses to store metadata | help |
-debug | True to enable verbose debug information | help |
-delete-index-pattern string | An Elasticsearch index-pattern to restric the scope of stateless deletes | help |
-delete-strategy value | Stategy to use for deletes. | help |
-direct-read-bounded | True to limit direct reads to the docs present at query start time | help |
-direct-read-concur int | Max number of direct-read-namespaces to read concurrently. | help |
-direct-read-dynamic-exclude-regex string | A regex to use for excluding namespaces when using dynamic direct reads | help |
-direct-read-dynamic-include-regex string | A regex to use for including namespaces when using dynamic direct reads | help |
-direct-read-namespace value | A list of direct read namespaces | help |
-direct-read-no-timeout | True to set the no cursor timeout flag for direct reads | help |
-direct-read-split-max int | Max number of times to split a collection for direct reads | help |
-direct-read-stateful | True to mark direct read namespaces as complete and not sync them in future runs | help |
-disable-change-events | True to disable listening for changes. | help |
-disable-delete-protection | True to disable delete protection and allow multiple deletes in Elasticsearch per event in MongoDB | help |
-disable-file-pipeline-put | True to disable auto-creation of the ingest plugin pipeline | help |
-dropped-collections | True to delete indexes from dropped collections (default true) | help |
-dropped-databases | True to delete indexes from dropped databases (default true) | help |
-elasticsearch-api-key string | Base64 encoded elasticsearch APIKey value | help |
-elasticsearch-client-timeout int | Number of seconds before a request to Elasticsearch is timed out | help |
-elasticsearch-max-bytes int | Number of bytes to hold before flushing to Elasticsearch | help |
-elasticsearch-max-conns int | Elasticsearch max connections | help |
-elasticsearch-max-docs int | Number of docs to hold before flushing to Elasticsearch | help |
-elasticsearch-max-seconds int | Number of seconds before flushing to Elasticsearch | help |
-elasticsearch-password string | The elasticsearch password for basic auth | help |
-elasticsearch-pem-file string | Path to a PEM file for secure connections to elasticsearch | help |
-elasticsearch-retry | True to retry failed request to Elasticsearch | help |
-elasticsearch-url value | A list of Elasticsearch URLs | help |
-elasticsearch-user string | The elasticsearch user name for basic auth | help |
-elasticsearch-validate-pem-file | Set to boolean false to not validate the Elasticsearch PEM file (default true) | help |
-elasticsearch-version string | Specify elasticsearch version directly instead of getting it from the server | help |
-enable-easy-json | True to enable easy-json serialization | help |
-enable-http-server | True to enable an internal http server | help |
-enable-oplog | True to enable direct tailing of the oplog | help |
-enable-patches | True to include an json-patch field on updates | help |
-env-delimiter string | A delimiter to use when splitting environment variable values (default ",") | help |
-exit-after-direct-reads | True to exit the program after reading directly from the configured namespaces | help |
-f string | Location of configuration file | help |
-fail-fast | True to exit if a single _bulk request fails | help |
-file-downloaders int | GridFs download go routines | help |
-file-highlighting | True to enable the ability to highlight search times for a file query | help |
-file-namespace value | A list of file namespaces | help |
-graylog-addr string | Send logs to a Graylog server at this address | help |
-gzip | True to enable gzip for requests to Elasticsearch | help |
-http-server-addr string | The address the internal http server listens on | help |
-index-as-update | True to index documents as updates instead of overwrites | help |
-index-files | True to index gridfs files into elasticsearch. | help |
-index-oplog-time | True to add date/time information from the oplog to each document when indexing | help |
-index-stats | True to index stats in elasticsearch | help |
-mapper-plugin-path string | The path to a .so file to load as a document mapper plugin | help |
-max-file-size int | GridFs file content exceeding this limit in bytes will not be indexed in Elasticsearch | help |
-merge-patch-attribute string | Attribute to store json-patch values under | help |
-mongo-config-url string | MongoDB config server connection URL | help |
-mongo-oplog-collection-name string | Override the collection name which contains the mongodb oplog | help |
-mongo-oplog-database-name string | Override the database name which contains the mongodb oplog | help |
-mongo-url string | MongoDB server or router server connection URL | help |
-mongo-write-url string | MongoDB connection URL for writing monstache state | help |
-namespace-drop-exclude-regex string | A regex which is matched against a drop operation's namespace (<database>.<collection>). | help |
-namespace-drop-regex string | A regex which is matched against a drop operation's namespace (<database>.<collection>). | help |
-namespace-exclude-regex string | A regex which is matched against an operation's namespace (<database>.<collection>). | help |
-namespace-regex string | A regex which is matched against an operation's namespace (<database>.<collection>). | help |
-oplog-date-field-format string | Format to use for the oplog date | help |
-oplog-date-field-name string | Field name to use for the oplog date | help |
-oplog-ts-field-name string | Field name to use for the oplog timestamp | help |
-patch-namespace value | A list of patch namespaces | help |
-pipe-allow-disk | True to allow MongoDB to use the disk for pipeline options with lots of results | help |
-post-processors int | Number of post-processing go routines | help |
-pprof | True to enable pprof endpoints | help |
-print-config | Print the configuration and then exit | help |
-prune-invalid-json | True to omit values which do not serialize to JSON such as +Inf and -Inf and thus cause errors | help |
-relate-buffer int | Number of relates to queue before skipping and reporting an error | help |
-relate-threads int | Number of threads dedicated to processing relationships | help |
-replay | True to replay all events from the oplog and index them in elasticsearch | help |
-resume | True to capture the last timestamp of this run and resume on a subsequent run | help |
-resume-from-earliest-timestamp | Automatically select an earliest timestamp to resume syncing from | help |
-resume-from-timestamp int | Timestamp to resume syncing from | help |
-resume-name string | Name under which to load/store the resume state. | help |
-resume-strategy value | Strategy to use for resuming. | help |
-resume-write-unsafe | True to speedup writes of the last timestamp synched for resuming at the cost of error checking | help |
-routing-namespace value | A list of namespaces that override routing information | help |
-stats | True to print out statistics | help |
-stats-duration string | The duration after which stats are logged | help |
-stats-index-format string | time.Time supported format to use for the stats index names | help |
-time-machine-direct-reads | True to index the results of direct reads into the any time machine indexes | help |
-time-machine-index-prefix string | A prefix to preprend to time machine indexes | help |
-time-machine-index-suffix string | A suffix to append to time machine indexes | help |
-time-machine-namespace value | A list of direct read namespaces | help |
-tpl | True to interpret the config file as a template | help |
-v | True to print the version number | help |
-verbose | True to output verbose messages | help |
-worker string | The name of this worker in a multi-worker configuration | help |
-workers value | A list of worker names | help |