Files
Joachim Wiberg b40c605ac5 test/case: simplify and add load-bearing sleep(2)
This (new) test sometimes fail on HW, so let's hold off a while before
sending our log messages.  Ths should allow the DUTs to settle.

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
2025-11-20 20:23:24 +01:00
..

=== Syslog Pattern Matching

ifdef::topdoc[:imagesdir: {topdoc}../../test/case/syslog/pattern_match]

==== Description

Verify the select-match feature: filtering syslog messages based on
pattern-match (POSIX regex) on message content.  Tests both simple
substring matching and complex regex patterns.

==== Topology

image::topology.svg[Syslog Pattern Matching topology, align=center, scaledwidth=75%]

==== Sequence

. Set up topology and attach to target DUT
. Clean up old log files from previous test runs
. Configure syslog with pattern-match filters
. Send test messages with various patterns
. Verify errors log contains ERROR and CRITICAL messages
. Verify routers log contains matching router[0-9]+ pattern
. Verify all-messages log contains all test messages