Data field pushed as "text" type in elastic

I am trying to push SNMP trap output field of logstash to elastic. It is pushing as "text" type. I understand that "string" type data will be pushed as "text". I want it to be as "keyword" type to do some analytics on the data. I tried to change the data type with dynamic_template, but it is still coming as "text" type. Here is the link for reference:
[https://www.elastic.co/guide/en/elasticsearch/reference/6.2/dynamic-templates.html]

And here is the Index file and output:

I want "IF-MIB::ifAdminStatus" in "keyword" type. Please suggest some way to change the data type of field.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.