Filtering Syslog Messages from the System Logs View#
Overview#
Key Points
- The
syslog_regex_listsetting hides matching lines from the System > Logs view. - The filter hides messages from the UI only — the kernel still writes them to the raw syslog.
- Patterns use POSIX Extended Regular Expression (ERE) syntax, not PCRE.
Some hardware and driver messages repeat constantly in System > Logs without indicating a real fault. A storage HBA driver that logs a failed ioctl on every poll is a common example. These messages bury the log entries you care about. This article shows how to hide them with the syslog_regex_list setting.
Warning
Use this filter only for messages you have confirmed are cosmetic. The filter quiets the log — it does not fix the underlying condition. Note anything worth monitoring, such as HBA firmware, before you suppress its output.
Prerequisites#
- A repeating log message that you have confirmed is not a real fault.
- A user with administrator access to the system API.
Step 1: Get the Exact Message Text#
- Navigate to System > Logs.
- Copy the repeating line.
- Keep the part of the message that stays the same each time it fires.
- Remove the parts that vary — controller instance numbers, hex status codes, and timestamps.
Example message:
The stable, matchable part is:
Warning
Do not include the kernel: prefix in your pattern. The Logs view prepends this identifier for display — it is not part of the message the filter sees. A pattern anchored on kernel: never matches.
Step 2: Build the Pattern#
Patterns use POSIX Extended Regular Expression (ERE) syntax, not PCRE. The simplest reliable pattern is a plain substring with no anchors and no capture groups:
This pattern matches every controller instance and every status code because the variable parts are not in it. If you must match variable text, use ERE character classes and escape literal parentheses:
Prefer the Shorter Substring
Broader matching is usually fine here. The goal is to quiet a known-cosmetic line, so use the shorter substring.
Step 3: Add the Pattern to syslog_regex_list#
The syslog_regex_list setting is not exposed in System > Settings > Advanced Settings by default, so set it through the API.
- Navigate to System > API Documentation.
- Find the settings endpoint.
- POST a new entry. If
syslog_regex_listalready exists, use PUT instead.
The value is a JSON array of pattern strings:
{
"key": "syslog_regex_list",
"value": "[\"Issue IOUCTL time_stamp: Failed ioc_status\"]",
"description": "syslog message filter"
}
To filter more than one message, add more elements to the array:
{
"key": "syslog_regex_list",
"value": "[\"Issue IOUCTL time_stamp: Failed ioc_status\",\"another pattern here\"]"
}
Step 4: Reload the Filter on Each Node#
Log capture reads the filter when you toggle it. Do this one node at a time:
- Edit the node.
- Clear the Capture System Logs checkbox and click Submit.
- Wait 15 to 30 seconds.
- Select the Capture System Logs checkbox and click Submit.
If a node still shows the message after you toggle log capture, reboot that node to force the reload.
Step 5: Verify the Filter#
Wait until the message would normally recur, then check System > Logs. The line no longer appears.
Verify in the Logs View, Not the Raw Syslog
The raw syslog inside a system diagnostics file still contains the message by design. Only the Logs view reflects the filter.
Troubleshooting#
The message still appears in the Logs view#
Cause: The pattern does not match, or a node has not reloaded the filter.
Solution:
- Make sure the pattern does not include the
kernel:prefix. - Make sure the pattern uses ERE syntax — escape literal parentheses as
\(and\). - Toggle Capture System Logs on the node again.
- If the message still appears, reboot the node.
The message still appears in a system diagnostics file#
Cause: The filter hides lines from the UI Logs view only. The kernel still writes them to the raw syslog.
Solution: This is expected behavior. Verify the filter in System > Logs, not in a system diagnostics file.
Additional Resources#
Need Help?
If you are not sure whether a repeating log line is cosmetic or a real fault, contact the VergeOS support team before you suppress it.