Infrastructure prerequisites
Before proceeding, ensure the following components are set up:- Redis
- Kafka
- Elasticsearch
Configuration
Kafka configuration
Set the following Kafka-related configurations using environment variables:SPRING_KAFKA_BOOTSTRAP_SERVERS
: Address of the Kafka serverKAFKA_TOPIC_DATA_SEARCH_IN
: The Kafka topic for the search service requests to the engineKAFKA_TOPIC_DATA_SEARCH_OUT
: Where the engine awaits for the responseKAFKA_CONSUMER_THREADS
: Number of Kafka consumer threads
Elasticsearch configuration
Configure Elasticsearch connection using the following environment variables:Variable | Description | Default Value | Example |
---|---|---|---|
SPRING_ELASTICSEARCH_REST_URIS | URL(s) of Elasticsearch nodes (no protocol) | - | elasticsearch:9200 |
SPRING_ELASTICSEARCH_REST_PROTOCOL | Connection protocol | https | https or http |
SPRING_ELASTICSEARCH_REST_DISABLESSL | Disable SSL verification | false | false |
SPRING_ELASTICSEARCH_REST_USERNAME | Authentication username | - | elastic |
SPRING_ELASTICSEARCH_REST_PASSWORD | Authentication password | - | your-password |
SPRING_ELASTICSEARCH_INDEXSETTINGS_NAME | Index name for search data | process_instance | process_instance |
Authorization & access roles configuration
Set the following environment variables to connect to the identity management platform:SECURITY_OAUTH2_BASE_SERVER_URL
SECURITY_OAUTH2_CLIENT_CLIENT_ID
SECURITY_OAUTH2_REALM
Logging configuration
Control log levels using these environment variables:LOGGING_LEVEL_ROOT
: For root spring boot microservice logsLOGGING_LEVEL_APP
: For app-level logs
Elasticsearch
Data search in Elasticsearch operates against an index pattern representing multiple indices. The index pattern is derived from the configuration propertyspring.elasticsearch.index-settings.name
.
Hereβs an example filter for use in Kibana (generated by data search):
Kibana is an open-source data visualization and exploration tool designed primarily for Elasticsearch. It serves as the visualization layer for the Elastic Stack, allowing users to interact with their data stored in Elasticsearch to perform various activities such as querying, analyzing, and visualizing data.For more information about Kibana and its capabilities, visit the Kibana official documentation. This resource provides in-depth guidance, tutorials, and documentation on how to use Kibana effectively for data visualization, analysis, and dashboard creation.