List Event Logs (Data On Demand)

Community.DataOnDemand.GetEventLogs (Task)

Displays the top 4 system event log entries on the target computer.
Note: JSON format is only supported if PowerShell v3 or later is installed on the target server.

Element properties:

TargetMicrosoft.Windows.Computer
AccessibilityPublic
CategoryOperations
EnabledTrue
RemotableFalse
Timeout120

Member Modules:

ID Module Type TypeId RunAs 
WA WriteAction Community.DataOnDemand.WriteAction.GetEventLogs Default

Source Code:

<Task ID="Community.DataOnDemand.GetEventLogs" Accessibility="Public" Timeout="120" Enabled="true" Remotable="false" Target="Windows!Microsoft.Windows.Computer">
<Category>Operations</Category>
<WriteAction ID="WA" TypeID="Community.DataOnDemand.WriteAction.GetEventLogs">
<LogName>system</LogName>
<After/>
<Before/>
<Top>4</Top>
<EntryType/>
<Format>csv</Format>
<TimeoutSeconds>120</TimeoutSeconds>
</WriteAction>
</Task>