Search Apex Log Events
apexlog_search_eventsSearch Apex debug log events in log order to inspect printed output, validation rules, and statements, filter by event type, namespace, or parent method, and page results to read full event text.
Instructions
Search the events of an Apex debug log in log order: what the code printed (USER_DEBUG), validation rules, statements, or every event under one method. For plain text in the saved .log, grep is cheaper; use this for event types, nesting, or without a shell. Text past 400 characters is elided; ask for one event by eventIndex to read up to 30,000.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | Only these log event types, e.g. USER_DEBUG, VALIDATION_RULE | |
| limit | No | Page size (default: 50) | |
| offset | No | Rows to skip (default: 0): the last page's nextOffset | |
| contains | No | Only events whose text holds this, ignoring case | |
| namespace | No | Only these namespaces | |
| eventIndex | No | Only this event, with more of its text | |
| logFilePath | Yes | Absolute path | |
| parentEventIndex | No | Only events below this one |