MongoDB configuration optionsedit

mongodb_capture_statement_commandsedit

MongoDB command names for which the command document will be captured, limited to common read-only operations by default. Set to ` ""` (empty) to disable capture, and "*" to capture all (which is discouraged as it may lead to sensitive information capture).

This option supports the wildcard *, which matches zero or more characters. Examples: /foo/*/bar/*/baz*, *foo*. Matching is case insensitive by default. Prepending an element with (?-i) makes the matching case sensitive.

dynamic config

Default Type Dynamic

find, aggregate, count, distinct, mapReduce

List

true

Java System Properties Property file Environment

elastic.apm.mongodb_capture_statement_commands

mongodb_capture_statement_commands

ELASTIC_APM_MONGODB_CAPTURE_STATEMENT_COMMANDS