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

push does nothing #3

Open
mantoni opened this issue Apr 12, 2018 · 5 comments
Open

push does nothing #3

mantoni opened this issue Apr 12, 2018 · 5 comments

Comments

@mantoni
Copy link

mantoni commented Apr 12, 2018

Hi there,

Nice module. It's exactly what I want. While pull works fine and downloads quite a few files, push does nothing. It doesn't fail either, it just does nothing.

From trying to trace it down, it seems like the used type doesn't match. When pulling, it creates a doc directory in the datadir, while when pushing, it looks for search and visualization directories which don't exist.

  • Node 6.13
  • Kibana 6.2.2

Thanks for your help.

@robaca
Copy link
Member

robaca commented Apr 20, 2018

Hi @mantoni,

sorry for the late reply. While you can pull every type that kibana contains, kibconfig itself only processes search, visualization and dashboard types when pushing. I would start inside Kibana, create a sample dashboard interactively and then pull.

@mantoni
Copy link
Author

mantoni commented Apr 20, 2018

Hi 👋That is what I did. Created a bunch of searches, graphs and dashboards. It downloads them with pull and I see all the files.

However, I now have a new Elastic instance and I want to apply the same dashboards, but push does nothing. From my debugging attempts, it doesn’t even try to upload anything. Apparently it doesn’t find the files.

@robaca
Copy link
Member

robaca commented Apr 20, 2018

Could you please send me an excerpt of your .kibconfig?

@mantoni
Copy link
Author

mantoni commented Apr 20, 2018

I don't have one. I've set up a small repository with this package json:

{
  "name": "my-kibana-config",
  "private": true,
  "version": "0.0.0",
  "description": "Kibana configs",
  "scripts": {
    "pull": "kibconfig --url http://127.0.0.1:9200 --datadir . pull",
    "push": "kibconfig --url http://127.0.0.1:9200 --datadir . push"
  },
  "devDependencies": {
    "kibconfig": "^0.2.1"
  }
}

Then I run npm run pull and npm run push.

@robaca
Copy link
Member

robaca commented Apr 23, 2018

@mantoni I found the issue

The newest Kibana versions seem to have changed in how all the entities are stored in the .kibana index. I will try to support that new storage format in the next release.

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

No branches or pull requests

2 participants