auparse_find_field(3)

auparse_find_field3

Search for field name

Usage

#include <auparse.h>

const char * auparse_find_field(auparse_state_t *au,constchar*"name);"

Overview

auparse_find_field will scan all records in an event to find the first occurrence of the field name passed to it. Searching begins from the cursor's current position. The field name is stored for subsequent searching.

NOTE: auparse creates 2 pseudo fields that do not exist in the natural record for SELinux AVC and USER_AVC decision and permissions. The field names are seresult and seperms respectively.

Return value

Returns NULL field not found. If an error occurs errno will be set. Otherwise, it returns a pointer to the text value associated with the field.

Releases

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

  1. 5.0–8
  2. 9–11
  3. 12
  4. 13
  5. 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.