RSyslog Documentation



re_match(expr, re)

Returns 1, if expr matches re, 0 otherwise. Uses POSIX ERE.


Functions using regular expressions tend to be slow and other options may be faster.


In the following example it is checked if the msg object matches the regex string.


See also

Help with configuring/using Rsyslog:

  • Mailing list - best route for general questions
  • GitHub: rsyslog source project - detailed questions, reporting issues that are believed to be bugs with Rsyslog
  • Stack Exchange (View, Ask) - experimental support from rsyslog community

See also

Contributing to Rsyslog:

Copyright 2008-2020 Rainer Gerhards (Großrinderfeld), and Others.

Scroll to top