How to filter by hostname (elastic search)

Hi am a newbie. I have used the dasbhoards from

I want to introduce a hostname filter how to do that please i used a templated variable

{“find”: “terms”, “field”: “@hostname”}

It did not bring the desired hostnames in the dropdown. Please help

{"find": "terms","field":"host.keyword"}

This did the trick. I get the hostnames in the dropdown filter now