Dinamically assing template

Hello,
I have read that it is possible to assing dynamic names to the indexes like
this:

elasticsearch {
            cluster => "logstash"
            index => "logstash-%{clientid}-%{+YYYY.MM.dd}"
    }

What I am wondering is if it is possible to assing the template dynamically
as well:

elasticsearch {
            cluster => "logstash"
            template => "/etc/logstash/conf.d/%{clientid}-template.json"
    }

Also where does the variable %{clientid} come from?

Thanks!

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/819fe763-74b7-4a37-817c-9152547e9e42%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.