Get Event Log Files
sf_get_event_logsQueries Salesforce EventLogFile to fetch activity logs for security monitoring and performance analysis.
Instructions
Queries EventLogFile for detailed activity logs. Event logs capture granular org activity for security monitoring and performance analysis.
Common eventType values:
Login — login attempts and results
API — SOAP/REST API calls
Report — report executions
Flow — Flow runs and executions
ApexExecution — Apex code executions
LightningPageView — Lightning page views
RestApi — REST API requests
VisualforceRequest — Visualforce page requests
URI — general HTTP requests
LightningError — Lightning component errors
Returns parsed CSV log entries (up to 20 rows per log file, up to 3 files per call).
Requires Event Monitoring add-on OR Agentforce debug logs to be enabled.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum log files to fetch | |
| endDate | No | End date in ISO format, e.g. '2025-12-31' | |
| eventType | Yes | Event type, e.g. 'Login', 'API', 'Report', 'Flow', 'ApexExecution', 'LightningPageView', 'RestApi' | |
| startDate | No | Start date in ISO format, e.g. '2025-01-01' |