mirror of
https://github.com/kernelkit/infix.git
synced 2026-07-28 19:53:01 +02:00
Let's drop the leading IETF or Infix prefixes from tests. Initially the idea was to mimnic the YANG models, but it's difficult to navigate and does not provide any real benefit to developers or end-users. Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
26 lines
772 B
Plaintext
26 lines
772 B
Plaintext
=== 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
|
|
|
|
|