Skip to content

Instantly share code, notes, and snippets.

@patcable
Last active December 1, 2016 18:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save patcable/cdba4098363fc1e28d2d2d854ae85949 to your computer and use it in GitHub Desktop.
Save patcable/cdba4098363fc1e28d2d2d854ae85949 to your computer and use it in GitHub Desktop.
graylog2 editing permissions

Editing permissions w/ Graylog

  • Goal: let devs create streams and search.
  • How: Post permissions to REST API

Useful tool: API browser. https://<grayloghost>/api/api-browser Can also CURL as well...

curl -v -XPUT -u ADMIN:PASSWORD -H 'Content-Type: application/json' 'http://graylog.example.org:9000/api/roles/rolename' -d 'collapsed_json_here'

need to find other permissions?

RestPermissions.java has information on the strings to search the repo for.

{
"name": "devs",
"description": "Stuff for Devs to see and do",
"permissions": [
"streams:read",
"searches:keyword",
"streams:changestate",
"searches:relative",
"savedsearches:create",
"streams:create",
"searches:absolute",
"streams:edit:*",
"savedsearches:read",
"savedsearches:edit:*"
],
"read_only": false
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment