graylog2-server
graylog2-server copied to clipboard
Streams not updating by default.
Whenever I click a stream to see what's going on, I'd like the stream to keep updating. At the very least, I'd like the stream to keep updating after I enable it and then refresh the page, so I can bookmark it.
Expected Behavior
Remember the updating/refresh state of a stream in the URL.
Current Behavior
The frontend and presumably the backend do not remember that I was in "updating" mode when looking at the stream.
Possible Solution
Put some state in the URL to re-enable updating after a page refresh. Alternatively, add a preference for me to always start refreshing when I look at a stream.
Steps to Reproduce (for bugs)
- Click any stream in Graylog.
- Observe that it is not updating by default.
- Enable updates.
- Refresh the page: observe that updating is no longer enabled.
Context
It's annoying af.
Your Environment
- Graylog Version:
- Java Version:
- Elasticsearch Version:
- MongoDB Version:
- Operating System:
- Browser version:
For now I used the TamperMonkey Chrome Extension to click the button for me:
// ==UserScript==
// @name Graylog Updates Clicker
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://logs.mycompany.com/streams/*/search
// @icon data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==
// @grant none
// ==/UserScript==
(function() {
'use strict';
setTimeout(() => {
const el = document.querySelector('[aria-label="Refresh Search Controls"]')?.children?.[0];
if (el) {
el.click();
}
}, 2000);
})();