Edit a watcher
Editing a watcher uses the same Rule and Prove it panels as New watcher, in one dialog. You change the rule, see its tests and history check run against your edit, and save. The running rule stays as it is until you save.
Open the watcher's panel in Content library › Watchers and select Edit, or select Edit watcher on a template of your own in the Library. The watcher's panel stays open behind the editor, and stays open on the same tab after you save.
How it runs now
The top of the dialog reads Edit and the watcher's name, then the organisation when you work across several. Under it, How it runs now keeps the watcher's state and its response apart:
- State: Shadow: matches are recorded, with no hunt or notification., Off: not running., or On: it responds when it matches.
- When it matches (When it matches (once On) when it isn't On): Start hunt and notify or Notify.
The editor doesn't change either of them. Change these on the Response tab closes the editor, asking first if you have unsaved edits, and opens the watcher's Response tab.
Rule
The Rule tab has the watcher's Name, Severity and Description.
They are your own and don't follow the rule's title, level and
description. When the rule's value differs, Use the rule's title (or
level, or description) copies it once.
Below them is the editor, as in New watcher: the rule is checked as you type, lines with a problem are marked, and the Rule check panel lists every check, with Apply fix where Huntbase knows the fix. See Step 2: Rule for the badges and the checks. If another watcher already has the new name, the check reads Another watcher already has this name: both can exist, but a different name is easier to tell apart.
Prove it
The Prove it tab shows the watcher's saved tests and the history check, both run against the edited rule. They keep running while you are on the Rule tab, and the tab's label says how they stand: Prove it · checking… while the tests run, then for example Prove it · 2 of 2 pass.
- You can add, edit and remove tests as in Step 3: Prove it. Changed tests are saved with the watcher.
- If the saved tests can't be loaded, the tab says so with Retry, and the saved tests are kept as they are.
- Suggest tests opens Scout in a new chat and closes the editor. Unsaved edits are not kept.
What saving does
Above the footer, a summary says what changed and what saving will do:
- what changed, for example Rule: 3 lines added, 1 removed (with Show the changes), Name: "A" becomes "B", Severity: High becomes Medium, Description changed or Tests: 2 saved, 3 after this edit;
- what saving does:
- a rule change: Saving makes this the running rule within about a minute, in the watcher's current state: Off, Shadow or On;
- only the name, severity or description: no new version is created, because versions are made only when the rule changes;
- where a rollout manages the watcher: saving creates a new version, which goes through the rollout's checks. Follow it on the Response tab.
When the rule changed, you can leave a note under What changed (optional). It is saved with the new version and shown in the watcher's History.
Select Save changes. The confirmation reads Saved as version N, or Saved when no new version was made. The saved tests run again against the new rule.
Save waits until the edited rule compiles. While a watcher is Off or Shadow, nothing else holds it.
Saving a watcher that is On
An edit to a watcher that is On runs live within about a minute. If a test fails against the edited rule, the history check found it noisy, or the history check hasn't finished, the dialog lists what is unproven and asks before saving:
- Save it anyway while it is On: tick it, then Save changes.
- Set to Shadow and save: saves the edit and moves the watcher to Shadow, so you can watch it before it responds again. This isn't offered where a rollout manages the watcher's state.
A rename, or a change to the severity or description only, is saved without these checks.
Watchers you can't edit here
Some watchers open read-only:
- A watcher from the Library, including a SigmaHQ rule your organisation fetched. To change it, select Customise a copy: the copy is yours to edit, and the editor reopens on it. A SigmaHQ rule can't be edited in place, because the next SigmaHQ sync replaces its rule and would lose the edit.
- A watcher another organisation owns. Only the organisation that owns a watcher can edit its rule. If it is yours, choose that organisation in the scope selector and edit it again.
- Graph, correlation and intel watchers have no Sigma rule to edit.
If you close the dialog with unsaved changes, it asks Discard your changes? first.
Next steps
- Create a watcher — the four steps of New watcher
- Watchers — states, the watcher's panel and its history
- Content library › Watchers — Customise a Library watcher