Skip to content
This repository has been archived by the owner on Jun 1, 2023. It is now read-only.

Support views #182

Open
fcoelho opened this issue Oct 2, 2019 · 7 comments
Open

Support views #182

fcoelho opened this issue Oct 2, 2019 · 7 comments
Labels
enhancement New feature or request

Comments

@fcoelho
Copy link

fcoelho commented Oct 2, 2019

Views became part of the open source Graylog in 3.1

image

@suzuki-shunsuke suzuki-shunsuke added the enhancement New feature or request label Oct 2, 2019
suzuki-shunsuke added a commit that referenced this issue Oct 3, 2019
@suzuki-shunsuke
Copy link
Owner

WIP #183

suzuki-shunsuke added a commit that referenced this issue Oct 3, 2019
suzuki-shunsuke added a commit that referenced this issue Oct 3, 2019
@Karreg
Copy link

Karreg commented Apr 16, 2020

Hello,

This is also the only way now to handle dashboards. With Graylog 3.1+, the provider can't create dashboards anymore... Or to be more precise, they are created, but can't be reached through the GUI... :(

@suzuki-shunsuke
Copy link
Owner

@Karreg
Please tell us the version of Graylog which you use.
I confirmed that I can create a Dashboard with this provider and can access to the Dashboard though the web browser.

I'm using

  • Graylog 3.1.0+aa5175e
  • Terraform v0.12.24
  • terraform-provider-graylog v11.3.0

https://github.com/suzuki-shunsuke/go-graylog/blob/a26bd268c99483896b456e972309aa5ed0d2c88c/examples/v0.12/dashboard.tf

image

suzuki-shunsuke added a commit that referenced this issue Apr 16, 2020
suzuki-shunsuke added a commit that referenced this issue Apr 16, 2020
@Karreg
Copy link

Karreg commented Apr 16, 2020

Sure.

I'm using

  • Graylog 3.2.3+a9c061c
  • Terraform 0.12.24
  • go-graylog 11.3.0

By using the provider, the dashboard is created, and can be seen through the API endpoint <graylog>/api/dashboards.

But it does not appear in the GUI. The GUI is using the dashboards by using the API endpoint <graylog>/api/views/dashboards that does not contain the dashboard created by the terraform provider.

Maybe the new API becomes mandatory with version 3.2? This would be a bad move from them to still keep the old API while it's not used anymore...

@suzuki-shunsuke
Copy link
Owner

Thank you for your information.
I'll check in this weekend.

@suzuki-shunsuke
Copy link
Owner

I confirmed that the API /api/dashboards is treated as legacy on Graylog v3.2 as you said.
Thank you for your information.

The data structure of Views API's request and response body is too complicated to implement it as usual.
So I'm seeking a good way to support this.

@Karreg
Copy link

Karreg commented Apr 20, 2020

Thanks for the feedback. I'll try to work with content packs API to move on with my needs, and switch back to the provider someday in the future :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants