Errors like the following are found in the MongoDB agent log file file
WARN [SMA-MongoDB-pool-1-thread-65] com.sma.mongodb.log.LogProcessor - One or more log processing errors occured for instance INSTANCENAME:42058. The first encountered was: Error parsing log entry: missing context field. WARN [SMA-MongoDB-pool-1-thread-113] com.sma.mongodb.log.LogProcessor - One or more log processing errors occured for instance INSTANCENAME:42019. The first encountered was: Unparseable date: "{"t": {"$date":"2021-07-16T09:29:05.581+00:00"},"s":"I", "c":"STORAGE", "id":22430,"
原因
Starting in MongoDB 4.4, mongod / mongos instances output all log messages in structured JSON format. Log entries are written as a series of key-value pairs, where each key indicates a log message field type, such as "severity", and each corresponding value records the associated logging information for that field type, such as "informational". Previously, log entries were output as plaintext.