logging-get-logs
Retrieves Sitecore CM logs over SPE for environments without direct filesystem access, filtering by date, file name, level, and tail count.
Instructions
Retrieves Sitecore logs from the CM's data folder over SPE. On a local Docker CM the same files are on a mounted volume, so reading them from disk is cheaper and shows the whole file; use this when you have no filesystem access to the CM. On a deployed SitecoreAI environment the platform collects logs and the data folder may hold little or nothing.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | The date of the log file to retrieve. If not provided, defaults to today. Date format should be in ISO 8601 format (e.g., '2023-10-01T00:00:00Z' | |
| name | No | The name of the log file to retrieve. If not provided, defaults to log.*. Possible options: log, Crawiling.log, Search.log, SPE.log, Client.log, OWin.log, Publising.log. | log |
| tail | No | The number of lines to retrieve from the end of the log file. Defaults to 500. | |
| level | No | The level of the log to retrieve. Defaults to DEBUG. | DEBUG |