since my filebeat doesn't have any access to Elasticsearch I have to follow this procedure https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-template.html#load-template-manually.
I have the following output:
curl -XPUT -H 'Content-Type: application/json' http://localhost:9200/_template/filebeat-6.2.1 -d@/tmp/filebeat.template.json -u admin Enter host password for user 'admin': curl: (52) Empty reply from server
Is it correct output ? And how do I verify this command did what it was supposed to do ?