graylog2-server icon indicating copy to clipboard operation
graylog2-server copied to clipboard

Streams not updating by default.

Open waynebloss opened this issue 3 years ago • 1 comments

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)

  1. Click any stream in Graylog.
  2. Observe that it is not updating by default.
  3. Enable updates.
  4. 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:

waynebloss avatar Jul 26 '22 15:07 waynebloss

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);
})();

waynebloss avatar Jul 26 '22 16:07 waynebloss