Graylog2 / graylog2-server

Free and open log management
https://www.graylog.org
Other
7.34k stars 1.05k forks source link

Missing api in verzion 6.x #20200

Open jeasoncz opened 1 month ago

jeasoncz commented 1 month ago

From version 6.x, the ability to read data from widgets on dashboards disappeared in the browser api. In the older version 2.3.x it is working.

Dashboards/Widgets : Manage widgets of an existing dashboard post /dashboards/{dashboardId}/widgets Add a widget to a dashboard put /dashboards/{dashboardId}/widgets/{widgetId} Update a widget delete /dashboards/{dashboardId}/widgets/{widgetId} Delete a widget get /dashboards/{dashboardId}/widgets/{widgetId} Get a widget put /dashboards/{dashboardId}/widgets/{widgetId}/cachetime Update cache time of a widget put /dashboards/{dashboardId}/widgets/{widgetId}/description Update description of a widget get /dashboards/{dashboardId}/widgets/{widgetId}/value Get a single widget value.

I need to read via API the data from the widget that are on the created dashboard.

I am using aggregated data dumps, but the api is limited to 15 items.

Anaglogically i need to do a select count(*), column dump for any data with group by any column.

and have a dump of all the results.

I am doing views on TOP stats, but I need to be able to set the number of records displayed.

I was looking for options to get this and the only option would be to go back to version 2 where the api is, but it doesn't make sense.

would it be possible to roll the api back to the new update please ?

drewmiranda-gl commented 1 day ago

Dashboards were replaced with "Views" (i think in one of the 3.x versions?)

Check out the views APIS:

Get a list of all views (dashboards) GET /api/views

Get a single view (dashboard) GET /api/views/<id>