Index lifecycle policy have 0 linked indice

Hello to all,

I use logstash to send data to ElasticSeach. This data is sent with the index "aruba-mobilitymaster-logs".

On Kibana, I have created an "index template" as follows:

We see that the index pattern is "aruba-*".

And I created an "index retention policy" as follows:


and

I linked my "index template" with this retention policy as you can see on the image below:
image

But however, the "Linked Indices" value always remains at zero for my policy and therefore this data retention rule does not apply.
image

What am I doing wrong?

Thanks in advance for your help.

My problem was that I had configured my ILM after adding data with Logstash. I found that you have to create the ILM first before sending data with a new index that matches this policy.