get_event_logs
Retrieve and filter Windows event logs from System, Application, or Security sources to monitor system events, troubleshoot issues, and analyze security activities.
Instructions
Get Windows event logs.
Args:
logname: Name of the event log (System, Application, Security, etc.)
newest: Number of most recent events to retrieve (default 10)
level: Filter by event level (1: Critical, 2: Error, 3: Warning, 4: Information)
timeout: Command timeout in seconds (1-300, default 60)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| logname | Yes | ||
| newest | No | ||
| level | No | ||
| timeout | No |
Input Schema (JSON Schema)
{
"properties": {
"level": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"default": null,
"title": "Level"
},
"logname": {
"title": "Logname",
"type": "string"
},
"newest": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"default": 10,
"title": "Newest"
},
"timeout": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"default": 60,
"title": "Timeout"
}
},
"required": [
"logname"
],
"type": "object"
}