Beats: import_dashboards.exe Error 400 Bad Request

Created on 13 Mar 2017  路  7Comments  路  Source: elastic/beats

See output dump below, I believe the reason is "Unzip archive", in the folder where it claims to unzip I don't see the unzipped folder, that command may not be working.

C:\Users\Win10-x64\Downloads\winlogbeat-5.2.2-windows-x86_64>scripts\import_dashboards.exe -es http://192.168.1.121:9200/
fail to set the mapping. Error: 400 Bad Request
Create temporary directory C:\Users\WIN10-~1\AppData\Local\Temp\tmp541042443
Downloading https://artifacts.elastic.co/downloads/beats/beats-dashboards/beats-dashboards-5.2.2.zip
Unzip archive C:\Users\WIN10-~1\AppData\Local\Temp\tmp541042443
C:\Users\WIN10-~1\AppData\Local\Temp\tmp541042443beats-dashboards-5.2.2\filebeat
C:\Users\WIN10-~1\AppData\Local\Temp\tmp541042443beats-dashboards-5.2.2\heartbeat
C:\Users\WIN10-~1\AppData\Local\Temp\tmp541042443beats-dashboards-5.2.2\metricbeat
C:\Users\WIN10-~1\AppData\Local\Temp\tmp541042443beats-dashboards-5.2.2\packetbeat
C:\Users\WIN10-~1\AppData\Local\Temp\tmp541042443beats-dashboards-5.2.2\winlogbeat
Import directory C:\Users\WIN10-~1\AppData\Local\Temp\tmp541042443beats-dashboards-5.2.2\winlogbeat/index-pattern
Import index to /.kibana/index-pattern/winlogbeat-* from C:\Users\WIN10-~1\AppData\Local\Temp\tmp541042443beats-dashboards-5.2.2\winlogbeat\index-pattern\winlogbeat.json
ERROR: couldn't load json. Error: 400 Bad Request
fail to import index-pattern: fail to load directory C:\Users\WIN10-~1\AppData\Local\Temp\tmp541042443beats-dashboards-5.2.2\winlogbeat/index-pattern: error loading C:\Users\WIN10-~1\AppData\Local\Temp\tmp541042443beats-dashboards-5.2.2\winlogbeat\index-pattern\winlogbeat.json: couldn't load json. Error: 400 Bad Request

bug libbeat

All 7 comments

It turned out to be the slash at the end of the elastic search path.

This failed: http://192.168.1.121:9200/
This worked: http://192.168.1.121:9200

@Exocomp Thanks for reporting the issue and glad you found a solution. Definitively something we should improve on our side to make it easier for the user.

We should investigate if import_dashboards is constructing a URL with a double slash like http://localhost:9200//.kibana.

@ruflin Is this still an issue?

@liketic TBH haven't checked recently and didn't do the investigation yet. In case you investigated the issue let us know if it is still there.

@liketic This is kind of moot now because in master/6.0 we no longer have an import_dashboards script that downloads the archive, but the setup command that loads the local dashboards (they come with the Beat).

We also didn't see other reports for this one, so I'd rather close it for now.

@ruflin @tsg I just want to say the command has been removed so this issue should been closed now. So nothing we can do for this now.

Was this page helpful?
0 / 5 - 0 ratings