Filebeat does not process the log messages. It just takes line by line and forwards it to Logstash or Elasticsearch. If you need log line processing and extraction, that is what Logstash is for.
The filebeat template has no affect on what filebeat itself does. It is for elasticsearch to know the types of the fields.