Skip to content

[DOCS] Document event_match_type option for master and minion configuration files #58891

Closed as not planned

Description

@ScriptAutomate

Description

This was discovered as part of working on #58112

How is event_match_type used, when listed in the minion and master config files?

salt/conf/minion

Lines 929 to 932 in 8afbb8e

###### Miscellaneous settings ######
############################################
# Default match type for filtering events tags: startswith, endswith, find, regex, fnmatch
#event_match_type: startswith

Suggested Fix

Define how it is used, and what the available values mean, at least somewhere in the master and minion docs (*.rst files)

  • startswith
  • endswith
  • find
  • regex
  • fnmatch

Type of documentation

  • minion/master configuration files
  • Salt Documentation (.rst) for master/minion configuration files

Location or format of documentation

Master:

Minion:

Additional context

15:28 $ grep -nr "event_match_type"| grep -v "Binary file"
salt/utils/event.py:450:            match_type = self.opts["event_match_type"]
salt/utils/event.py:618:            Default is opts['event_match_type'] or 'startswith'
salt/config/__init__.py:438:        "event_match_type": str,
salt/config/__init__.py:1225:        "event_match_type": "startswith",
salt/config/__init__.py:1469:        "event_match_type": "startswith",      "event_match_type": "startswith",

Potentially related results come from grep -nr "match_type"

Activity

  1. added
    documentation
    on Nov 5, 2020
  2. added this to the Approved milestone on Nov 6, 2020
  3. added
    doc-request
    on Nov 6, 2020
  4. ScriptAutomate commented on Aug 19, 2021

    @ScriptAutomate
    ContributorAuthor

    salt/salt/utils/event.py

    Lines 612 to 619 in 79b5631

    match_type
    Set the function to match the search tag with event tags.
    - 'startswith' : search for event tags that start with tag
    - 'endswith' : search for event tags that end with tag
    - 'find' : search for event tags that contain tag
    - 'regex' : regex search '^' + tag event tags
    - 'fnmatch' : fnmatch tag event tags matching
    Default is opts['event_match_type'] or 'startswith'

  5. added
    severity-medium
    on Feb 14, 2022
  6. dwoz commented on Oct 15, 2026

    @dwoz
    Contributor

    Thanks for the original report. This issue has been open for more than three years without recent activity and carries a severity label below severity-high. As part of a backlog cleanup, we're closing older low- and medium-severity issues so triage can focus on reports against currently supported releases.

    Closing isn't a judgement that the problem wasn't real — only that the codebase has moved through several releases since this was filed, and much of the surrounding code has changed.

    If you — or anyone else — can still reproduce this on the 3008.x LTS release, please leave a comment with a reproduction and a maintainer will reopen. The original reporter can also reopen directly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    doc-requestdocumentationseverity-mediumstaletime-estimate-sprint

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions