ConsoleLogLevel

Filters kernel console messages, printing only those with a severity up to the configured level.

This parameter applies to imklog: Kernel Log Input Module.

Name:

ConsoleLogLevel

Scope:

module

Type:

integer

Default:

-1

Required?:

no

Introduced:

at least 5.x, possibly earlier

Description

Sets the console log level. If specified, only messages with up to the specified level are printed to the console. The default is -1, which means that the current settings are not modified. To get this behavior, do not specify consoleLogLevel in the configuration file. Note that this is a global parameter. Each time it is changed, the previous definition is reset. The active setting will be the last one defined when imklog actually starts processing. To avoid unexpected behavior, it is recommended to specify this directive only once.

Linux only, ignored on other platforms (but may be specified).

Module usage

module(load="imklog" consoleLogLevel="4")

Legacy names (for reference)

Historic names/directives for compatibility. Do not use in new configs.

  • $klogConsoleLogLevel — maps to ConsoleLogLevel (status: legacy)

See also

imklog: Kernel Log Input Module


Support: rsyslog Assistant | GitHub Discussions | GitHub Issues: rsyslog source project

Contributing: Source & docs: rsyslog source project

© 2008–2025 Rainer Gerhards and others. Licensed under the Apache License 2.0.