Class EventLogCollector
Collects system event logs.
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: AttackSurfaceAnalyzer.Collectors
Assembly: AsaLib.dll
Syntax
public class EventLogCollector : BaseCollector, IPlatformRunnable
Constructors
| Improve this Doc View SourceEventLogCollector(CollectCommandOptions, Action<CollectObject>)
Declaration
public EventLogCollector(CollectCommandOptions opts = null, Action<CollectObject> changeHandler = null)
Parameters
| Type | Name | Description |
|---|---|---|
| CollectCommandOptions | opts | |
| System.Action<CollectObject> | changeHandler |
Methods
| Improve this Doc View SourceCanRunOnPlatform()
Declaration
public override bool CanRunOnPlatform()
Returns
| Type | Description |
|---|---|
| System.Boolean |
Overrides
| Improve this Doc View SourceExecuteInternal()
Declaration
public override void ExecuteInternal()
Overrides
| Improve this Doc View SourceExecuteLinux()
Parses /var/log/auth.log and /var/log/syslog (no way to distinguish severity)
Declaration
public void ExecuteLinux()
ExecuteMacOs()
Collect event logs on macOS using the 'log' utility
Declaration
public void ExecuteMacOs()
ExecuteWindows()
Collect event logs on Windows using System.Diagnostics.EventLog
Declaration
public void ExecuteWindows()