Monitor and log censhare
Monitor and log the censhare and related services.
Work with censhare services
Services:
censhare Server
censhare.cloud-gateway
censhare.static-resource-server
keycloak
censhare.google-ai
- social.media.service
- censhare core-mail.service
Check all running services:
systemctl status
systemctl status censhare.*
systemctl status SERVICE_NAME
sudo systemctl start SERVICE_NAME
sudo systemctl restart SERVICE_NAME
sudo systemctl stop SERVICE_NAME
For more information, see How to administrate censhare related systemd services.
Monitoring
Monitoring for censhare services is activated by default.
The health check endpoint for load balancers, for example, is usable like this:
curl -s http://localhost:9000/monitoring/health
On success, this returns:
{ "status": "UP"}
Monitoring for Cloud Gateway is activated by default.
The health check endpoint for Cloud Gateway, for example, is usable like this:
curl -s http://localhost:8082/actuator/health
On success, the JSON returned also includes this:
{ "status": "UP"}
Monitoring for Static Resource Server is activated by default.
The health check endpoint for Static Resource Server, for example, is usable like this:
curl -s http://localhost:8081/actuator/health
On success, the JSON returned also includes this:
{ "status": "UP"}
Logging
Find log file directions for all censhare and related services.
censhare Server
You can find the logs at:
/opt/corpus/work/logs/server-0.0.log
Cloud Gateway
You can find the logs at:
/var/log/censer/core-cloud-gateway.log
Cloud Gateway detailed logging:
spring.application.log-request-details: true
logging.level.org.springframework.web: TRACE
logging.level.org.springframework.web.HttpLogging: TRACE
Static Resource Server
You can find the logs at:
/var/log/censer/static-resource-server.log
Static Resource Server detailed logging:
spring.application.log-request-details: true
logging.level.org.springframework.web: TRACE
logging.level.org.springframework.web.HttpLogging: TRACE
Keycloak logs
/var/log/keycloak/
less /var/log/keycloak/server.log
Authorization mapper logging
For more information, see Authorization mapper.
Optional services logs
If installed, logs for the optional services are in
Google AI
/var/log/censer/google-ai.log
Social media management
/var/log/censer/social-media-service.log
Social media management
/var/log/censer/core-mail-service.log