Using wildcard label with Loki

hi all

i have example logs: “hostname: server1, hoststatus: down, message: powerdown”
how can i sink from vector to loki using wildcard then we can filter label on grafana?
all key in log have prefix “host” loki can using all key with prefix “host” as a label
hostname : {{hostname}}
hostsatus : {hoststatus}}
i can’t config like that: host* : {{host*}} → it not working

Thanks all

Are you perhaps looking for regex label filtering? If so, see Log queries | Grafana Loki documentation.