Overview
----
System.Runtime.InteropServices.COMException (0x80040001): Your event log request exceeds the maximum data size.
To get event log data, specify a smaller range of events.
CoVaultEventLogOperations.cpp, 457, Your event log request exceeds the maximum data size.
To get event log data, specify a smaller range of events. (0x8004097F)
CoRPCOverCOM.cpp, 3419, Your event log request exceeds the maximum data size.
To get event log data, specify a smaller range of events. (0x8004097F)
RPCEventsAdmin.cpp, 502, Your event log request exceeds the maximum data size.
To get event log data, specify a smaller range of events. (0x8004097F)
RPCEventsHelper.cpp, 6507, Your event log request exceeds the maximum data size.
To get event log data, specify a smaller range of events. (0x8004097F)
(M-Files <version> <timestamp>)
----
Solution
The error denotes that the event log request is too large, and thus the best way to ensure the logs are generated successfully is by reducing the "MaxToExportAtOnce" value in the Log Exporter configuration until the export process works. Alternatively, you may also try reducing the "MaxPerFolder" until the export process works.
Example
{
"this-Comment": "M-Files Compliance Kit: Default empty configuration for Log Exporter",
"Enabled": true,
"EventCountToKeep": 6000000,
"EventAgeToKeep": 525600,
"ExportProviders": [
{
"ProviderType": "LocalFileExport",
"LocalFileExport": {
"LogPath": "E:\\log export",
"MaxPerFolder": 100000 -> 50000
},
"arrayElementGuid": "3b0aa895-c89b-464d-86cc-81a838dd6621",
"Enabled": true
}
],
"IntervalSeconds": 600,
"IsMsmCompatible": true,
"ConfigVersion": "2.0",
"FailureMailUserGroup": "{8B320F0E-2981-4C7F-9407-11BA908DB753}",
"MaxToClearAtOnce": 1500,
"MaxToExportAtOnce": 1500, -> 750
"MinCountToClear": 1500
}
Above, we have reduced the default values by half. You can try in different increments until the logs export without exceeding the limit.
