Skip to main content
Skip table of contents

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: 

CODE
systemctl status  

Check running censhare services (does not include Keycloak): 

CODE
systemctl status censhare.*  

Check for a certain service: 

CODE
systemctl status SERVICE_NAME

Start a service: 

CODE
sudo systemctl start SERVICE_NAME

Restart a service: 

CODE
sudo systemctl restart SERVICE_NAME 

Stop a service: 

CODE
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:

CODE
curl -s http://localhost:9000/monitoring/health


On success, this returns:

CODE
{ "status": "UP"} 


Monitoring for Cloud Gateway is activated by default.

The health check endpoint for Cloud Gateway, for example, is usable like this:

CODE
curl -s http://localhost:8082/actuator/health


On success, the JSON returned also includes this:

CODE
{ "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:

CODE
curl -s http://localhost:8081/actuator/health


On success, the JSON returned also includes this:

CODE
{ "status": "UP"} 

Logging

Find log file directions for all censhare and related services.

censhare Server

You can find the logs at:

CODE
/opt/corpus/work/logs/server-0.0.log

Cloud Gateway

You can find the logs at:

CODE
/var/log/censer/core-cloud-gateway.log

Cloud Gateway detailed logging:

CODE
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:

CODE
/var/log/censer/static-resource-server.log

Static Resource Server detailed logging:

CODE
spring.application.log-request-details: true
logging.level.org.springframework.web: TRACE
logging.level.org.springframework.web.HttpLogging: TRACE

Keycloak logs

CODE
/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

CODE
/var/log/censer/google-ai.log

Social media management

CODE
/var/log/censer/social-media-service.log

Social media management

CODE
/var/log/censer/core-mail-service.log
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.