Hello everyone,
I would like to ask if somebody know how I could import my dashboards directly with filebeat. When I do the procedure manually within the kibana page with import/export It works fine, yet when I set (setup.dashboards.file: , and/or setup.dashboards.enabled: true) in the filebeat.yml configuration file, it does not work and shows me the following error:
"2020-05-12T17:41:08.248+0200 ERROR instance/beat.go:933 Exiting: Error importing Kibana dashboards: fail to import the dashboards in Kibana: Error importing directory /home/jdbricenoguerrero/Downloads/elk_trial/filebeat-7.6.2-linux-x86_64/kibana: Failed to import dashboard: Failed to load directory /home/jdbricenoguerrero/Downloads/elk_trial/filebeat-7.6.2-linux-x86_64/kibana/7/dashboard: error loading /home/jdbricenoguerrero/Downloads/elk_trial/filebeat-7.6.2-linux-x86_64/kibana/7/dashboard/dashboard_orders.json: fail to unmarshal the dashboard content from file /home/jdbricenoguerrero/Downloads/elk_trial/filebeat-7.6.2-linux-x86_64/kibana/7/dashboard/dashboard_orders.json: invalid character '{' after top-level value
Exiting: Error importing Kibana dashboards: fail to import the dashboards in Kibana: Error importing directory /home/jdbricenoguerrero/Downloads/elk_trial/filebeat-7.6.2-linux-x86_64/kibana: Failed to import dashboard: Failed to load directory /home/jdbricenoguerrero/Downloads/elk_trial/filebeat-7.6.2-linux-x86_64/kibana/7/dashboard:
error loading /home/jdbricenoguerrero/Downloads/elk_trial/filebeat-7.6.2-linux-x86_64/kibana/7/dashboard/dashboard_orders.json: fail to unmarshal the dashboard content from file /home/jdbricenoguerrero/Downloads/elk_trial/filebeat-7.6.2-linux-x86_64/kibana/7/dashboard/dashboard_orders.json: invalid character '{' after top-level value"
My dashboards are in the filebeat folder path
"/home/jdbricenoguerrero/Downloads/elk_trial/filebeat-7.6.2-linux-x86_64/kibana/7/dashboard/ " I have there my two dashboards that I wish to import, they are ".json" , and the other ".ndjson".
I have been trying several combinations in the within the filebeat.yml file (zipping the files, changing that path locations... etc, setup.dashboard.directory....), but I have not been able to import them.
Could somebody please try to help me??? , I also read the webpages "https://www.elastic.co/guide/en/beats/filebeat/current/load-kibana-dashboards.html", "https://www.elastic.co/guide/en/beats/filebeat/current/configuration-dashboards.html"
but it does not help that much.
Thanks in advance for any suggestion,
Juan David Briceno Guerero