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

System.Diagnostics.Eventing.Reader.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.
namespace System.Diagnostics.Eventing.Reader { public sealed class EventLogInformation { public int? Attributes { get; } public DateTime? CreationTime { get; } public long? FileSize { get; } public bool? IsLogFull { get; } public DateTime? LastAccessTime { get; } public DateTime? LastWriteTime { get; } public long? OldestRecordNumber { get; } public long? RecordCount { get; } } }