---
name: "ausearch_cur_event"
section: "3"
platform: "linux"
package: "audit"
version: "4.2.1-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/ausearch_cur_event"
---

# ausearch\_cur\_event(3)

check if the current event meets search criteria

## NAME

ausearch\_cur\_event - check if the current event meets search criteria

## SYNOPSIS

**#include \<auparse.h\>**

**int ausearch\_cur\_event(auparse\_state\_t \****au);"*

## DESCRIPTION

ausearch\_cur\_event will scan the input source and evaluate whether any record in the current event contains the data being searched for. Evaluation is done at the record level. If a match is found, the cursor is repositioned; otherwise, it remains on the last successfully parsed record within the current event.

## RETURN VALUE

Returns -1 if an error occurs, 0 if no matches, and 1 for success.

## SEE ALSO

[**ausearch\_add\_item**(3)](/ausearch_add_item/3.md), [**ausearch\_add\_regex**(3)](/ausearch_add_regex/3.md), [**ausearch\_next\_event**(3)](/ausearch_next_event/3.md), [**ausearch\_set\_stop**(3)](/ausearch_set_stop/3.md).

## AUTHOR

Attila Lakatos
