When I set up the template file and used logstash to create the index, I got an error

Yes, it is.