Prerequisite
Install Java 17.
Ensure your Zephyr and Rabbit MQ application is set up and running, For RabbitMq Setup follow the instructions on the following page.
[By launching the application in the browser:Launch Zephyr with your respective host/domain. Ex: https://test.yourzephyr.com
Launch RabbitMq with the host and configured port. Ex: http://localhost:15672]
Launch RabbitMq Management in the browser with the host and port (Ex: http://localhost:15672).
AuditService Service Deployment(Jar)
Download the ze-audit-service.jar
Create a ze-audit-service.jar config file Named “
zeAuditService.properties
"Add the below line in the file
zeAuditService.properties
.
server.port=8082 zephyr.queue.name=ze_audit_queue zephyr.queue.exchange=ze_audit_exchange zephyr.queue.routing.key=ze_audit_routing_key # hostname should point to continer name if in case you are running webhook on docker spring.rabbitmq.host=<rabbitmq_hostname> spring.rabbitmq.port=<rabbitmq_port> spring.rabbitmq.username=<rabbitmq_username> spring.rabbitmq.password=<rabbitmq_password>
An example of zeAuditService.properties
should look like the below:
server.port=8082 #Rabbitmq config zephyr.queue.name=ze_audit_queue zephyr.queue.exchange=ze_audit_exchange zephyr.queue.routing.key=ze_audit_routing_key spring.rabbitmq.host=localhost spring.rabbitmq.port=5672 spring.rabbitmq.username=guest spring.rabbitmq.password=guest
Start the AuditService with the following command.
sudo java -jar -DzeAuditConfigPath="<config file path till root folder>" ze-audit-service.jar
Example command:
java -jar -DzeAuditConfigPath="/home/ubuntu/Foldername" ze-audit-service.jar
The audit started snapshot for reference: -
Note: -
The Logs folder will be created where your jars are deployed. Separate log files will be created for each jar.