search_logs
Find specific entries across Tenable Patch Management log files by text or regex, filtering by time, device, role, or severity, with context and de-duplicated multiline results.
Instructions
Search every log, including multi-line messages and stack traces.
Matches are whole entries (not single lines), de-duplicated across logs that repeat the same event, sorted by time, and redacted.
Args: pattern: Text to find (literal unless regex=true), e.g. a KB number, patch ID, client ID, content ID ("Policy_104117") or error text. regex: Treat pattern as a regular expression. case_sensitive: Default false. since: Window start (ISO or relative like 24h); default all history. until: Window end. source: Source name; omit for all sources. device: Only this device. role: "server", "client" or "setup". files: Log names or globs to search. component: Exact component name, e.g. "TenableClient". min_severity: Only entries at or above INFO/WARN/ERROR. context: Entries of context before and after each match from the same file (0-5). limit: Matches to return (1-200). offset: Skip this many matches (paging; see next_offset). order: "newest" (default) or "oldest" first.
Returns:
total_matches, matches (with file, line, component, thread, codes) and paging.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| role | No | ||
| files | No | ||
| limit | No | ||
| order | No | newest | |
| regex | No | ||
| since | No | ||
| until | No | ||
| device | No | ||
| offset | No | ||
| source | No | ||
| context | No | ||
| pattern | Yes | ||
| component | No | ||
| min_severity | No | ||
| case_sensitive | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||