๐Ÿ–ฅ๏ธConsole Filter

The console filter suppresses unwanted messages from the server console output. This is useful for reducing log spam from plugins or repetitive system messages. Configuration is in moderation/console-filter.yml.

Configuration

enabled: false

filters:
  # Exact match โ€” message must equal this string
  exact: []

  # Contains โ€” message must contain this substring
  contains: []

  # Starts-with โ€” message must start with this string
  starts-with: []

  # Regex โ€” message must match this pattern
  regex: []

Filter Types

Type
Description
Example

exact

Message must exactly match

"Unknown command"

contains

Message contains the substring

"moved too quickly"

starts-with

Message starts with the string

"[ViaVersion]"

regex

Message matches the regex pattern

".*issued server command.*"

The contains and regex filter types are case-insensitive. The exact and starts-with filter types are case-sensitive.

Examples

Suppress common console spam:

How It Works

The console filter integrates with Log4j to intercept and suppress matching log messages. Because it operates as a Log4j filter on the root logger, filtered messages may also be suppressed from log files.

Last updated