How to send wazuh logs to elastic trough logstash

Hi
I want to sent wazug logs to elastic
I found this documentation:
But, when I execute the following command to verify my logstash configuration, I obtain errors:


Can someone help me?
Thank you

This is my configuration

The error logs refers there is a problem with /etc/logstash/templates/wazuh,json. Please check wazuh.json is exist, and make sure it's a proper JSON file. Also, there can be a file permission issue.

Note: Please share your question as text instead of screenshots to make it findable for others.