I have multiple filebeats v 7.17.5 are configured on different remote servers with custom index names. I have recently updated my ELk stack to 8.8.0 and also updating the filebeat version to 8.8.0. I also try to add some new remote ubuntu servers in elk but the issue is i try to create custom index and start the filebeat but that index is not showing in kibana v8.80 data view. here is the my custom index settings.
output.elasticsearch:
# Array of hosts to connect to.
hosts: "http://x.x.x.x.x:9200"
username: "citsale"
password: "mFVKkXXNnOuUzgahLpLpp"
# Protocol - either `http` (default) or `https`.
ssl.verification_mode: none
# Authentication credentials - either API key or username/password.
index: "test"
setup.template.name: "test"
setup.template.pattern: "test-*"
I found some error but didn't know why its occurring i was following the same procedure in FB 7.17.7 to load the template in ELK and that was working, but when i tried to same steps for FB 8.8.0 i am getting the below error.
Exiting: error loading template: failed to put data stream: could not put data stream: 400 Bad Request: {"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"no matching index template found for data stream [linux]"}],"type":"illegal_argument_exception","reason":"no matching index template found for data stream [linux]"},"status":400}. Response body: {"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"no matching index template found for data stream [linux]"}],"type":"illegal_argument_exception","reason":"no matching index template found for data stream [linux]"},"status":400}
If this will not work then filebeat setup -e.
There is an option to export templates for only 3 modules, and manually create, described here , and you will need dashboards, export, import.
Hi @Rios thanks for the help. I can see the index now in Index Templates, but when i trying to create a DataView to view the logs of filebeat so that index is not showing there
while running the filebeat setup -e the index loaded in index template but getting the below error. Exiting: error loading template: failed to put data stream: could not put data stream: 400 Bad Request: {"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"no matching index template found for data stream [staging]"}],"type":"illegal_argument_exception","reason":"no matching index template found for data stream [staging]"},"status":400}. Response body: {"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"no matching index template found for data stream [staging]"}],"type":"illegal_argument_exception","reason":"no matching index template found for data stream [staging]"},"status":400}
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.