Skip to content
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

Closed
Exocomp opened this issue Mar 12, 2017 · 7 comments
Closed

import_dashboards.exe Error 400 Bad Request #3740

Exocomp opened this issue Mar 12, 2017 · 7 comments

Comments

@Exocomp
Copy link

Exocomp commented Mar 12, 2017

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

@Exocomp
Copy link
Author

Exocomp commented Mar 12, 2017

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

@andrewkroh andrewkroh changed the title Winlogon beat import_dashboards.exe 400 Bad Request import_dashboards.exe Error 400 Bad Request Mar 15, 2017
@ruflin
Copy link
Collaborator

ruflin commented Mar 15, 2017

@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.

@andrewkroh
Copy link
Member

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

@liketic
Copy link

liketic commented Sep 21, 2017

@ruflin Is this still an issue?

@ruflin
Copy link
Collaborator

ruflin commented Sep 25, 2017

@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.

@tsg
Copy link
Contributor

tsg commented Sep 25, 2017

@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.

@tsg tsg closed this as completed Sep 25, 2017
@liketic
Copy link

liketic commented Sep 25, 2017

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants