Dear Wazuh Team,Despite of default Decoder and Rule-set for MongoDB, we are unable to observe alerts on wazuh, after some testing and manually log testing we observed below findings:
MongoDB Logs at (Monitored Endpoint End):
{"t":{"$date":"2023-04-26T12:10:12.184+05:00"},"s":"D3", "c":"STORAGE", "id":22414, "ctx":"TTLMonitor","msg":"WT begin_transaction","attr":{"snapshotId":66432,"readSource":"kNoTimestamp"}}
{"t":{"$date":"2023-04-26T12:10:12.184+05:00"},"s":"I", "c":"INDEX", "id":5479200, "ctx":"TTLMonitor","msg":"Deleted expired documents using index","attr":{"namespace":"config.system.sessions","index":"lsidTTLIndex","numDeleted":0,"durationMillis":0}}
{"t":{"$date":"2023-04-26T12:10:12.185+05:00"},"s":"D3", "c":"STORAGE", "id":22413, "ctx":"TTLMonitor","msg":"WT rollback_transaction","attr":{"snapshotId":66432}}
{"t":{"$date":"2023-04-26T12:10:14.974+05:00"},"s":"I", "c":"STORAGE", "id":22430, "ctx":"Checkpointer","msg":"WiredTiger message","attr":{"message":"[1682493014:974802][4788:0x7fee5da99700], WT_SESSION.checkpoint: [WT_VERB_CHECKPOINT_PROGRESS] saving checkpoint snapshot min: 182, snapshot max: 182 snapshot count: 0, oldest timestamp: (0, 0) , meta checkpoint timestamp: (0, 0) base write gen: 550"}}

MongoDB Logs at Wazuh End After enabling Archives.log:
[root@localhost archives]# cat /var/ossec/logs/archives/archives.log| grep -w mongo
2023 Apr 26 11:40:58 (Linux-Testing-Machine) any->/var/log/mongodb/mongod.log {"t":{"$date":"2023-04-26T11:40:57.109+05:00"},"s":"D1", "c":"-", "id":23074, "ctx":"conn4","msg":"User assertion","attr":{"error":"HostUnreachable: Connection closed by peer","file":"src/mongo/transport/service_state_machine.cpp","line":394}}
2023 Apr 26 11:40:58 (Linux-Testing-Machine) any->/var/log/mongodb/mongod.log {"t":{"$date":"2023-04-26T11:40:57.109+05:00"},"s":"D1", "c":"-", "id":23074, "ctx":"conn4","msg":"User assertion","attr":{"error":"HostUnreachable: Connection closed by peer","file":"src/mongo/transport/service_state_machine.cpp","line":536}}
2023 Apr 26 11:40:59 (Linux-Testing-Machine) any->/var/log/mongodb/mongod.log {"t":{"$date":"2023-04-26T11:40:58.669+05:00"},"s":"D1", "c":"-", "id":23074, "ctx":"conn5","msg":"User assertion","attr":{"error":"NoReplicationEnabled: not running with --replSet","file":"src/mongo/db/repl/repl_set_get_status_cmd.cpp","line":56}}
2023 Apr 26 11:40:59 (Linux-Testing-Machine) any->/var/log/mongodb/mongod.log {"t":{"$date":"2023-04-26T11:40:58.669+05:00"},"s":"D1", "c":"-", "id":23074, "ctx":"conn5","msg":"User assertion","attr":{"error":"NoReplicationEnabled: not running with --replSet","file":"src/mongo/util/future_impl.h","line":1104}}
2023 Apr 26 11:40:59 (Linux-Testing-Machine) any->/var/log/mongodb/mongod.log {"t":{"$date":"2023-04-26T11:40:58.670+05:00"},"s":"D1", "c":"-", "id":23074, "ctx":"conn5","msg":"User assertion","attr":{"error":"NoReplicationEnabled: not running with --replSet","file":"src/mongo/util/future_impl.h","line":1087}}
2023 Apr 26 11:40:59 (Linux-Testing-Machine) any->/var/log/mongodb/mongod.log {"t":{"$date":"2023-04-26T11:40:58.670+05:00"},"s":"D1", "c":"-", "id":23074, "ctx":"conn5","msg":"User assertion","attr":{"error":"NoReplicationEnabled: not running with --replSet","file":"src/mongo/util/future_impl.h","line":1104}}
2023 Apr 26 11:40:59 (Linux-Testing-Machine) any->/var/log/mongodb/mongod.log {"t":{"$date":"2023-04-26T11:40:58.670+05:00"},"s":"D1", "c":"-", "id":23074, "ctx":"conn5","msg":"User assertion","attr":{"error":"NoReplicationEnabled: not running with --replSet","file":"src/mongo/util/future_impl.h","line":1087}}

As you have noticed That timestamp is added before the actual log and that is creating problem that we are not getting match the MongoDB decoder with the timestamp based logs because as per the LogTest pasted below, it seems it is working without timestamp.
LogTest Results:
Configuration at Agent End:
Please provide a way out that would enable us to successfully decode MongoDB logs.