VCF Log Insight Health Check
When the user asks to check the health of the Log Insight or Aria Operations for Logs cluster, follow these steps:
- Verify Credentials: Ensure
LOGINSIGHT_HOSTandLOGINSIGHT_API_TOKENare available in the environment. - Fetch Cluster Health: Use the
exectool to run the following command to check the cluster status:curl -s -k -X GET "https://$LOGINSIGHT_HOST/api/v1/health" \ -H "Authorization: Bearer $LOGINSIGHT_API_TOKEN" \ -H "Accept: application/json" | jq '.' - Fetch Node Status: Use the
exectool to run the following command to check individual node uptime and status:curl -s -k -X GET "https://$LOGINSIGHT_HOST/api/v1/cluster/nodes" \ -H "Authorization: Bearer $LOGINSIGHT_API_TOKEN" \ -H "Accept: application/json" | jq '.nodes[] | {id, ip, status, uptime}' - Report to User: Summarize the JSON output into a clean, readable table detailing the overall health and the status of each node. Point out any errors or disconnected nodes explicitly.