When the user asks to find recent errors, investigate failures, or troubleshoot SDDC Manager workflows, follow these steps:
LOGINSIGHT_HOST and LOGINSIGHT_API_TOKEN are available in the environment.exec tool to run the following command. This queries the Log Insight API for recent log entries containing the keyword "error" specifically originating from SDDC Manager or related VCF components:```bash
curl -s -k -X GET "https://$LOGINSIGHT_HOST/api/v1/events?keyword=error&limit=10" \
-H "Authorization: Bearer $LOGINSIGHT_API_TOKEN" \
-H "Accept: application/json" | jq '.events[]? | {timestamp, source, text}'
```
共 1 个版本