Technical Script/Steps For Migration Process

Overview

This specifies the migration steps which are specific to the payment index.

Steps

Step 1. Adding a target index

Add index name dss-payment_v2 as below:

In Kibana dev tools, apply the below command

PUT dss-payment_v2

{} // add mapping file content here. mapping.json as attached below

Note: This name should be the value present in ingest es.index.namemapping.json24 May 2021, 11:15 AM

Step 2. Optional changes required in Ingest application properties

Ingest pipeline application properties contain es.direct.push supposed to be set true for testing.

Property NameValueDescription

es.direct.push

true

the transformed data will be pushed to ES index directly.

es.direct.push

false

the transformed data will be lying at egov-dss-ingest-enriched topic

Step 3. Run migration API, which migrates the data from the source index to the target index.

NameDescription

Method

End Point

Body

POST

{host}/dashboard-ingest/ingest/migrate/paymentsindex-v1/v2

{"RequestInfo":{"authToken":"2ba70924-1bba-4a9b-b55d-2e9471bf3081"}}

CURL

Note: After migration ensures dss-payment_v2 data has been populated and is available.

In Kibana dev tools verify using the below command

GET dss-payment_v2/_search

Last updated

​All content on this page by eGov Foundation is licensed under a Creative Commons Attribution 4.0 International License.