Filebeat 6.5.4 not able to create kibana dashboard


(Mahendra Shinde) #1

Hi All,
We are new to filebeat and setting monitoring cluster for our prod stack.
I am trying to setup filebeat and monitoring on kibana.

But Filebeat fail to boot with dashboard error

2019-02-17T14:01:31.944+0530    ERROR   instance/beat.go:800    Exiting: Error importing Kibana dashboards: fail to create the Kibana loader: Error creating Kibana client: Error creating Kibana client: fail to get the Kibana version: HTTP GET request to /api/status fails: <nil>. Response: {"statusCode":404,"error":"Not Found","message":"Not Found"}.
Exiting: Error importing Kibana dashboards: fail to create the Kibana loader: Error creating Kibana client: Error creating Kibana client: fail to get the Kibana version: HTTP GET request to /api/status fails: <nil>. Response: {"statusCode":404,"error":"Not Found","message":"Not Found"}.

filebeat.yml kibana configuration

setup.dashboards.enabled: true
##ERROR CAUSING LINE ^

setup.kibana:
  # Kibana Host
  host: http://localhost:5643
  username: elastic
  password: elastic
#setup.dashboards.always_kibana: true 

Kibana is accessible from filebeat location
curl --user elastic:elastic -v localhost:5643/api/status

*   Trying 127.0.0.1...
* Connected to localhost (127.0.0.1) port 5643 (#0)
* Server auth using Basic with user 'elastic'
> GET /api/status HTTP/1.1
> Host: localhost:5643
> Authorization: Basic ZWxhc3RpYzplbGFzdGlj
> User-Agent: curl/7.47.0
> Accept: */*
>
< HTTP/1.1 200 OK
< kbn-name: kibana
< kbn-xpack-sig: 2346b4b8fd4d973aeddf3a05a426b06f
< content-type: application/json; charset=utf-8
< cache-control: no-cache
< content-length: 4757
< accept-ranges: bytes
< connection: close
< Date: Sun, 17 Feb 2019 08:45:49 GMT
<
{"name":"mahendra-lap","uuid":"fff20184-0259-4fcc-8d89-3bdc46a0a70b","version":{"number":"6.5.4","build_hash":"2d4c9c3fd9afd81ded3ac2e686bc1f7204078f14","build_number":18878,"build_snapshot":false},"status":{"overall":{"state":"green","title":"Green","nickname":"Looking good","icon":"success","uiColor":"secondary","since":"2019-02-15T17:36:18.603Z"},"statuses":[{"id":"plugin:kibana@6.5.4","state":"green","icon":"success","message":"Ready","uiColor":"secondary","since":"2019-02-15T17:36:18.603Z"},{"id":"plugin:elasticsearch@6.5.4","state":"green","icon":"success","message":"Ready","uiColor":"secondary","since":"2019-02-17T08:27:28.828Z"},{"id":"plugin:xpack_main@6.5.4","state":"green","icon":"success","message":"Ready","uiColor":"secondary","since":"2019-02-17T08:27:28.907Z"},{"id":"plugin:searchprofiler@6.5.4","state":"green","icon":"success","message":"Ready","uiColor":"secondary","since":"2019-02-17T08:27:28.909Z"},{"id":"plugin:ml@6.5.4","state":"green","icon":"success","message":"Ready","uiColor":"secondary","since":"2019-02-17T08:27:28.911Z"},{"id":"plugin:tilemap@6.5.4","state":"green","icon":"success","message":"Ready","uiColor":"secondary","since":"2019-02-17T08:27:28.913Z"},{"id":"plugin:watcher@6.5.4","state":"green","icon":"success","message":"Ready","uiColor":"secondary","since":"2019-02-17T08:27:28.921Z"},{"id":"plugin:license_management@6.5.4","state":"green","icon":"success","message":"Ready","uiColor":"secondary","since":"2019-02-15T17:36:18.734Z"},{"id":"plugin:index_management@6.5.4","state":"green","icon":"success","message":"Ready","uiColor":"secondary","since":"2019-02-17T08:27:28.923Z"},{"id":"plugin:rollup@6.5.4","state":"green","icon":"success","message":"Ready","uiColor":"secondary","since":"2019-02-17T08:27:28.926Z"},{"id":"plugin:timelion@6.5.4","state":"green","icon":"success","message":"Ready","uiColor":"secondary","since":"2019-02-15T17:36:19.005Z"},{"id":"plugin:graph@6.5.4","state":"green","icon":"success","message":"Ready","uiColor":"secondary","since":"2019-02-17T08:27:28.929Z"},{"id":"plugin:monitoring@6.5.4","state":"green","icon":"success","message":"Ready","uiColor":"secondary","since":"2019-02-15T17:36:19.018Z"},{"id":"plugin:spaces@6.5.4","state":"green","icon":"success","message":"Ready","uiColor":"secondary","since":"2019-02-17T08:27:31.438Z"},{"id":"plugin:security@6.5.4","state":"green","icon":"success","message":"Ready","uiColor":"secondary","since":"2019-02-17T08:27:28.959Z"},{"id":"plugin:grokdebugger@6.5.4","state":"green","icon":"success","message":"Ready","uiColor":"secondary","since":"2019-02-17T08:27:28.935Z"},{"id":"plugin:dashboard_mode@6.5.4","state":"green","icon":"success","message":"Ready","uiColor":"secondary","since":"2019-02-15T17:36:19.078Z"},{"id":"plugin:logstash@6.5.4","state":"green","icon":"success","message":"Ready","uiColor":"secondary","since":"2019-02-17T08:27:28.940Z"},{"id":"plugin:beats_management@6.5.4","state":"green","icon":"success","message":"Ready","uiColor":"secondary","since":"2019-02-17T08:27:28.942Z"},{"id":"plugin:apm@6.5.4","state":"green","icon":"success","message":"Ready","uiColor":"secondary","since":"2019-02-15T17:36:19.120Z"},{"id":"plugin:canvas@6.5.4","state":"green","icon":"success","message":"Ready","uiColor":"secondary","since":"2019-02-15T17:36:21.351Z"},{"id":"plugin:console@6.5.4","state":"green","icon":"success","message":"Ready","uiColor":"secondary","since":"2019-02-15T17:36:21.362Z"},{"id":"plugin:console_extensions@6.5.4","state":"green","icon":"success","message":"Ready","uiColor":"secondary","since":"2019-02-15T17:36:21.368Z"},{"id":"plugin:notifications@6.5.4","state":"green","icon":"success","message":"Ready","uiColor":"secondary","since":"2019-02-15T17:36:21.375Z"},{"id":"plugin:infra@6.5.4","state":"green","icon":"success","message":"Ready","uiColor":"secondary","since":"2019-02-15T17:36:21.407Z"},{"id":"plugin:metrics@6.5.4","state":"green","icon":"success","message":"Ready","uiColor":"secondary","since":"2019-02-15T17:36:21.413Z"},{"id":"plugin:reporting@6.5.4","state":"green","icon":"success","message":"Ready","uiColor":"secondary","since":"2019-02-17T08:27:28.944Z"}]},"metrics":{"last_updated":"2019-02-17T08:45:45.889Z","collection_interval_in_millis":5000,"process":{"memory":{"heap":{"total_in_bytes":244072448,"used_in_bytes":219148552,"size_limit":1501560832},"resident_set_size_in_bytes":224276480},"event_loop_delay":2.8253999948501587,"pid":5384,"uptime_in_millis":141015774},"os":{"load":{"1m":0,"5m":0,"15m":0},"memory":{"total_in_bytes":17054711808,"free_in_bytes":2581807104,"used_in_bytes":14472904704},"up* Closing connection 0
time_in_millis":333515000},"response_times":{"max_in_millis":0},"requests":{"total":0,"disconnects":0,"status_codes":{}},"concurrent_connections":1}}

(Steffen Siering) #2

Filebeat tries to read the kibana version before it starts to install the dashboards.
It reads the path /api/status, but the HTTP reponse code is 404 Not Found. Do you operate Kibana from behind a firewall or proxy?


(system) closed #3

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