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: Member Modules:
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>