Skip to content

Commit 21e4a2c

Browse files
committed
README.md: fix regexp description
1 parent 9d6c5fd commit 21e4a2c

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

README.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ exclusions:
115115
SYSLOG_IDENTIFIER:
116116
- from here
117117
- MESSAGE_ID: [c7a787079b354eaaa9e77b371893cd27]
118-
- MESSAGE: ["/Normal exit \(.*run\)/"]
118+
- MESSAGE: ["/Normal exit (.*run)/"]
119119
```
120120

121121
This would cause `journal-brief` to ignore journal entries that
@@ -124,10 +124,11 @@ satisfy both conditions: `SYSLOG_IDENTIFIER` is `from here`, and
124124

125125
It will also ignore any entries with the specified `MESSAGE_ID`.
126126

127-
In addition, any entries whose `MESSAGE` matches the regular
128-
expression `Normal exit \(.*run\)` will be excluded. Regular
129-
expressions are indicated with `/` at the beginning and end of the
130-
match string.
127+
In addition, any entries whose `MESSAGE` matches the (Python) regular
128+
expression `Normal exit (.*run)` will be excluded. Regular expressions
129+
are indicated with `/` at the beginning and end of the match string,
130+
and are used for matching (not searching) against the field in
131+
question at the beginning of the field's string value.
131132

132133
The available journal fields are described in the
133134
systemd.journal-fields(7) manual page.

0 commit comments

Comments
 (0)