The Audit service is built as a Docker image and runs on top of Kafka and Elasticsearch. Therefore, these services must be set up and running before starting the Audit service.
Configure Elasticsearch connection for audit data storage:
Variable
Description
Default Value
SPRING_ELASTICSEARCH_REST_PROTOCOL
Connection protocol
https
SPRING_ELASTICSEARCH_REST_URIS
URL(s) of Elasticsearch nodes (no protocol)
-
SPRING_ELASTICSEARCH_REST_DISABLESSL
Disable SSL verification
false
SPRING_ELASTICSEARCH_REST_USERNAME
Authentication username
-
SPRING_ELASTICSEARCH_REST_PASSWORD
Authentication password
-
SPRING_ELASTICSEARCH_INDEXSETTINGS_DATASTREAM
Audit data stream name
audit-logs
SPRING_ELASTICSEARCH_INDEXSETTINGS_SHARDS
Number of primary shards
2
SPRING_ELASTICSEARCH_INDEXSETTINGS_REPLICAS
Number of replica shards
2
The Elasticsearch index settings determine how your audit data is distributed and replicated across the cluster. The number of shards affects search performance and indexing, while replicas provide redundancy.
The Audit Core service uses the standard FlowX.AI ingress pattern. For complete setup instructions including the full ingress template, CORS configuration, and troubleshooting, see the Ingress Configuration Guide.Service-specific values for Audit Core: