TRANSFORM Destination index is not using Index Template

Hello Team,

We are using Elasticsearch 7.8.0 version. I understand its very old [ w are in process of upgradation too ]

While using TRANSFORM feature , I am finding that my destination index is not using template settings of having primary shards = 5.

Could you please help me. how to fix this.

curl -XPUT "/_transform/my_dau_trans?pretty" -H 'Content-Type: application/json' -d ' { "source": { "index": "appdetail-000001" }, "dest": { "index": "agg-jcappdtl-mydau-transform" }, "pivot": { "group_by": { "event_date": { "date_histogram": { "field": "timeStamp", "calendar_interval": "1d" } }, "appId_long": { "terms": { "field": "appId" } }, "platform": { "terms": { "field": "deviceInfo.platformType.keyword" } } }, "aggregations": { "active_users": { "cardinality": { "field": "accountId" } } } } }' -u $ES_USER:$ES_PASS

My Template :

curl -X PUT "/_index_template/appdt_transform?pretty" -H 'Content-Type: application/json' -d' { "index_patterns": [ "agg-jcappdtl*transform" ], "priority": 500, "template": { "settings": { "number_of_shards": 5, "number_of_replicas": 1 } } } ' -u $ES_USER:$ES_PASS

Hello @tusharnemade

This seems to be known issue & found below relevant github open issue :

As shared above we might have to create the transform index in advance with settings needed post which the transform will have the primary shards per requirement else it will be 1 primary shard & (0-1) auto expandable replicas.

Thanks!!