Filebeat 8.8.0 error loading template: failed to put data stream: could not put data stream: 400 Bad Request

Actually, you can get filebeat to automatically create and set up a template based on the filebeat base template.

I think I have an example of it here