Hi,
Which REST API endpoint should be used for searching? /api/search/universal/relative makes sense, but it is listed as “Legacy”. Also, I can’t seem to figure out which roles/permissions my user should have to be granted access to this endpoint. “Admin” works, but “Reader” only returns 403 - I can’t seem to find any Roles that are “in between” Admin and Reader. I’d just like my token to have the permission to search logs.
I also tried using the /api/views/search API and POSTing the following:
I can’t seem to understand how to proceed from this. Calling /execute with the same ID returns MissingStreamPermission and GETing /api/views/search/63739930527a3b7ac90e10ab simply returns the same query I sent.
How should I be using search via the REST API? What am I missing?
Hello @nordsan
Lots of questions and I try to answer them best as I can.
Chances are when seeing that, it might get replaced or deleted from the API list.
The roles you see under roles that is it.
Example I have a user with "reader " role, Admin has to give permission to individual Streams, Dashboards , etc… This is done through “Shared” button. Kind of like a two step process.
There is a user and password need to access the API’s, I do believe this was answered here in the forum a couple times. Short answer I think it admin role needed.
Not sure but I would look at these links for clarification on Graylog versions.