Logstash how to send string as not_analyzed into elasticsearch

Your template is for indexes whose name matches the pattern logstash-* but you're pushing data to an index named ems so it won't use your template.