Created
January 29, 2020 01:01
-
-
Save wrossmann/875c4018a81f084fa90497dd67f945c8 to your computer and use it in GitHub Desktop.
Revisions
-
wrossmann created this gist
Jan 29, 2020 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,19 @@ There doesn't seem to be a UI function for this, so if you're stuck up a creek like I am. ``` curl -s \ -H "Authorization: Basic $(echo -n 'username:password' | base64)" \ http://graylog-server:9000/api/streams \ | jq ' .streams[] | select(.outputs | length > 0) | { id: .id, title: .title, outputs: [( .outputs[] | {id: .id, title: .title} )] }' ``` You'll end up with a minimal JSON doc with the names and IDs of all the streams, and all the outputs mapped to them.