logging-get-logs
Retrieve Sitecore log files from the log directory by specifying file name, log level, date, and number of lines to view for troubleshooting and monitoring.
Instructions
Retrieves Sitecore logs from the log directory.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| 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 |
| level | No | The level of the log to retrieve. Defaults to DEBUG. | DEBUG |
| 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' | |
| tail | No | The number of lines to retrieve from the end of the log file. Defaults to 500. |