<PackageReference Include="System.Diagnostics.EventLog" Version="9.0.5" />

EventLogInformation

public sealed class EventLogInformation
Allows you to access the run-time properties of active event logs and event log files. These properties include the number of events in the log, the size of the log, a value that determines whether the log is full, and the last time the log was written to or accessed.
/* Exception of type 'System.OutOfMemoryException' was thrown. */