EXPERIMENTAL Event Stream Processor (ESP) for Event Stream (logs, audits, errors, trace, etc)
- Improve unit tests.
- Improve code-coverage to 90% across the board: .nycrc.yml.
- Add NPM script
test
as apre-commit
in the package.json. - Update CI-CD to include unit and code-coverage checks.
Ensure that you have created the following resources prior to deploying the ESP component:
- Create a Policy with the desired Rollover configurations: policy-rollover-mojaloop.json
- Create a Template to associate the Policy Settings to the Logstash index based on the following config: template-mojaloop.json
NOTE: If ESP component is running prior to configuring the above template, the index mapping will be auto-created and will not take effect.
curl -X PUT "http://elasticsearch:9200/_ilm/policy/mojaloop_rollover_policy?pretty" -H 'Content-Type: application/json' -d @config/policy-rollover-mojaloop.json
NOTE: only needed if you need to remove the policy_
curl -X DELETE "http://elasticsearch:9200/_ilm/policy/mojaloop_rollover_policy?"
NOTE: useful for debugging issues_
curl -X GET "http://elasticsearch:9200/_ilm/policy/mojaloop_rollover_policy?"
curl -X PUT "http://elasticsearch:9200/_template/moja_template?pretty" -H 'Content-Type: application/json' -d @config/template-mojaloop.json'
NOTE: only needed if you need to remove the template_
curl -X DELETE "http://elasticsearch:9200/_template/moja_template"
NOTE: useful for debugging template issues_
curl -X GET "http://elasticsearch:9200/_template/moja_template"