...
Step 1. Download Saga Parser
...
Code Block | ||||
---|---|---|---|---|
| ||||
"repositories: { ... "bundleVersions": { "bundle": [ { "@artifactId": "app-saga-parser", "@groupId": "com.accenture.aspire", "@version": "5.2.02.133000134000" }, { "@artifactId": "aspire-saga-parser", "@groupId": "com.accenture.aspire", "@version": "5.2.02.133000134000" } ] } } |
Step 4. Add Saga Config in Aspire 5
Create config.json (The "logging_provider" bit is ONLY FOR 1.3.4^)
NOTE: The tagManager and pipelineManager keys are also removed in 1.3.4^
Code Block | ||||
---|---|---|---|---|
| ||||
{ "config": { "libraryJars": ["./lib"], "tagManager": { "resource": "saga-provider:saga_tags" }, "pipelineManager": { "resource": "saga-provider:saga_pipelines" }, "providers": [ { "name": "filesystem-provider", "type": "FileSystem", "baseDir": "./config" }, { "name": "saga-provider", "type": "Elastic", "nodeUrls": ["http://localhost:9200"], "timestamp": "updatedAt", "authentication": "none", "caFilePath": "", "trustAllSSL": false, "indexName": "saga", "exclude": [ "updatedAt", "createdAt" ], "maxResults": 2000000 } ], "logging_provider": { "name": "saga-parser-logging-provider", "type": "Elastic", "nodeUrls": ["http://localhost:9200"], "timestamp": "updatedAt", "indexName": "saga", "authentication": "none", "timeout": 90, "delay": 5, "retries": 3, "exclude": [ ] } } } |
Note |
---|
For OpenSearch, replace the "saga-provider" section of type "Elastic" with the corresponding OpenSearch configuration as shown here:
|
Also, you need to add these two files as well: eventAppenderTemplate.json and sagaLoggerTemplate.json. (VERSION 1.3.4)
Code Block | ||||
---|---|---|---|---|
| ||||
{ "mdc": { "$resolver": "mdc" }, "exception": { "exception_class": { "$resolver": "exception", "field": "className" }, "exception_message": { "$resolver": "exception", "field": "message" }, "stacktrace": { "$resolver": "exception", "field": "stackTrace", "stackTrace": { "stringified": true } } }, "line_number": { "$resolver": "source", "field": "lineNumber" }, "class": { "$resolver": "source", "field": "className" }, "@version": 1, "source_host": "${hostName}", "message": { "$resolver": "message", "stringified": true }, "thread_name": { "$resolver": "thread", "field": "name" }, "@timestamp": { "$resolver": "timestamp" }, "level": { "$resolver": "level", "field": "name" }, "file": { "$resolver": "source", "field": "fileName" }, "method": { "$resolver": "source", "field": "methodName" }, "logger_name": { "$resolver": "logger", "field": "name" } } |
Code Block | ||||
---|---|---|---|---|
| ||||
{ "index_patterns": [ "*_logger*" ], "priority": 300, "template": { "settings": { "index": { "refresh_interval": "5s" } }, "mappings": { "properties": { "class": { "type": "text", "index": false }, "message": { "type": "text", "index": false }, "date_time": { "type": "date", "format": "date_time" }, "level": { "type": "text", "index": false } } } } } |
...