|
1 | 1 | # event-stream-processor
|
2 |
| -** EXPERIMENTAL** Event Stream Processor (ESP) for Event Stream (logs, audits, errors, trace, etc) |
| 2 | + |
| 3 | +**EXPERIMENTAL** Event Stream Processor (ESP) for Event Stream (logs, audits, errors, trace, etc) |
3 | 4 |
|
4 | 5 | ## 1. Pre-requisites
|
5 | 6 |
|
6 | 7 | ### 1.1 Elasticsearch
|
7 | 8 |
|
8 | 9 | Ensure that you have created the following resources prior to deploying the ESP component:
|
| 10 | + |
9 | 11 | 1. [Create a Policy](#1111-create) with the desired Rollover configurations: [policy-rollover-mojaloop.json](./config/policy-rollover-mojaloop.json)
|
10 | 12 | 2. [Create a Template](#1121-create) to associate the Policy Settings to the Logstash index based on the following config: [template-mojaloop.json](./config/template-mojaloop.json)
|
11 | 13 |
|
12 |
| -> __NOTE__:<br/> |
| 14 | +> __NOTE__: |
13 | 15 | > If ESP component is running prior to configuring the above template, the index mapping will be auto-created and will not take effect.
|
14 | 16 |
|
15 |
| -<br/> |
16 |
| - |
17 | 17 | #### 1.1.1 Mojaloop Index Rollover Policy
|
18 | 18 |
|
19 | 19 | ##### 1.1.1.1 Create
|
| 20 | + |
20 | 21 | ```curl
|
21 | 22 | curl -X PUT "http://elasticsearch:9200/_ilm/policy/mojaloop_rollover_policy?pretty" -H 'Content-Type: application/json' -d @config/policy-rollover-mojaloop.json
|
22 | 23 | ```
|
23 | 24 |
|
24 | 25 | ##### 1.1.1.2 Delete
|
25 |
| -_Note: only needed if you need to remove the policy_ |
| 26 | + |
| 27 | +> __NOTE__: |
| 28 | +> only needed if you need to remove the policy_ |
| 29 | +
|
26 | 30 | ```curl
|
27 | 31 | curl -X DELETE "http://elasticsearch:9200/_ilm/policy/mojaloop_rollover_policy?"
|
28 | 32 | ```
|
29 | 33 |
|
30 | 34 | #### 1.1.1.3 Get
|
31 |
| -_Note: useful for debugging issues_ |
| 35 | + |
| 36 | +> __NOTE__: |
| 37 | +> useful for debugging issues_ |
| 38 | +
|
32 | 39 | ```curl
|
33 | 40 | curl -X GET "http://elasticsearch:9200/_ilm/policy/mojaloop_rollover_policy?"
|
34 | 41 | ```
|
35 | 42 |
|
36 | 43 | #### 1.1.2 Mojaloop Index Template
|
37 | 44 |
|
38 | 45 | ##### 1.1.2.1 Create
|
| 46 | + |
39 | 47 | ```curl
|
40 | 48 | curl -X PUT "http://elasticsearch:9200/_template/moja_template?pretty" -H 'Content-Type: application/json' -d @config/template-mojaloop.json'
|
41 | 49 | ```
|
42 | 50 |
|
43 | 51 | ##### 1.1.2.2 Delete
|
44 |
| -_Note: only needed if you need to remove the template_ |
| 52 | + |
| 53 | +> __NOTE__: |
| 54 | +> only needed if you need to remove the template_ |
| 55 | +
|
45 | 56 | ```curl
|
46 | 57 | curl -X DELETE "http://elasticsearch:9200/_template/moja_template"
|
47 | 58 | ```
|
48 |
| - |
49 |
| - #### 1.1.3 Get Template |
50 |
| - _Note: useful for debugging template issues_ |
| 59 | + |
| 60 | +#### 1.1.3 Get Template |
| 61 | + |
| 62 | + > __NOTE__: |
| 63 | + useful for debugging template issues_ |
| 64 | + |
51 | 65 | ```curl
|
52 | 66 | curl -X GET "http://elasticsearch:9200/_template/moja_template"
|
53 | 67 | ```
|
54 |
| - |
|
0 commit comments