ausearch_add_regex(3)

ausearch_add_regex3

Use regular expression search rule

Usage

#include <auparse.h>

int ausearch_add_regex(auparse_state_t *au,constchar*"regexp);"

Overview

ausearch_add_regex adds one search condition based on a regular expression to the current audit search expression. The search conditions can then be used to scan logs, files, or buffers for something of interest. The regular expression follows the posix extended regular expression conventions, and is matched against the full record (without interpreting field values).

If an existing search expression E is already defined, this function replaces it by (E && this_regexp).

Return value

Returns -1 if an error occurs; otherwise, 0 for success.

Releases

10 releases since Debian 5.0 (Lenny); the text changed 5 times.

  1. 5.0–6.0
  2. 7
  3. 8–11
  4. 12
  5. 13
  6. Arch

Author

Steve Grubb

From audit 4.2.1-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.