-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
import_dashboards.exe Error 400 Bad Request #3740
Comments
It turned out to be the slash at the end of the elastic search path. This failed: 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 |
@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 We also didn't see other reports for this one, so I'd rather close it for now. |
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\tmp541042443\beats-dashboards-5.2.2\filebeat
C:\Users\WIN10-~1\AppData\Local\Temp\tmp541042443\beats-dashboards-5.2.2\heartbeat
C:\Users\WIN10-~1\AppData\Local\Temp\tmp541042443\beats-dashboards-5.2.2\metricbeat
C:\Users\WIN10-~1\AppData\Local\Temp\tmp541042443\beats-dashboards-5.2.2\packetbeat
C:\Users\WIN10-~1\AppData\Local\Temp\tmp541042443\beats-dashboards-5.2.2\winlogbeat
Import directory C:\Users\WIN10-~1\AppData\Local\Temp\tmp541042443\beats-dashboards-5.2.2\winlogbeat/index-pattern
Import index to /.kibana/index-pattern/winlogbeat-* from C:\Users\WIN10-~1\AppData\Local\Temp\tmp541042443\beats-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\tmp541042443\beats-dashboards-5.2.2\winlogbeat/index-pattern: error loading C:\Users\WIN10-~1\AppData\Local\Temp\tmp541042443\beats-dashboards-5.2.2\winlogbeat\index-pattern\winlogbeat.json: couldn't load json. Error: 400 Bad Request
The text was updated successfully, but these errors were encountered: