Loading Index Template of Filebeat into Elasticsearch in Windows

Following the guide in this link to add a filebeat-template. I got the this error:

Then, I added -Credential switch in to PS command followed by the elastic username:

Powershell accepted the command and prompt for the password:


And the template was successfully imported.

If your Elasticsearch requires authentication, you need to provide credentials to be able to load index templates. I guess you are using X-Pack, where basic authentication is default.

May I ask you what is your question regarding the behavior you described above?

Thanks for your replay.

Since this a discussion forum, I shared this experience for the people who might get into this issue to shorten the overhead for them because I spent 30 mins searching for the answer.


Great! Thanks for sharing it with us.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.