Configuring Which Log Messages Become Events
You can configure rules to determine which log messages become events.
Cloudera defines a number of rules by default. For example:
- The line {
"rate": 10, "threshold":"FATAL"},
means log entries with severityFATAL
should be forwarded as events, up to 10 a minute. - The line {
"rate": 0, "exceptiontype": "java.io.EOFException"},
means log entries with the exception java.io.EOFException should always be forwarded as an event.
The syntax for these rules is defined in the Description field for this property: the syntax lets you create rules that identify log messages based on log4j severity, message content matching, or the exception type. These rules must result in valid JSON.
Minimum Required Role: Configurator (also provided by Cluster Administrator, Limited Cluster Administrator , and Full Administrator)