AUPARSE\_GET\_FILENAME(3) Linux Audit API AUPARSE\_GET\_FILENAME(3)

# [NAME](#NAME)

auparse\_get\_filename - get the filename where record was found

# [SYNOPSIS](#SYNOPSIS)

**#include &lt;auparse.h&gt;**

**const char * auparse\_get\_filename(const auparse\_state\_t \*au);"**

# [DESCRIPTION](#DESCRIPTION)

auparse\_get\_filename will return the name of the source file where the record was found if the source type is AUSOURCE\_FILE or AUSOURCE\_FILE\_ARRAY. For other source types the return value will be NULL.

# [RETURN VALUE](#RETURN_VALUE)

Returns pointer to a filename or NULL if unavailable.

# [SEE ALSO](#SEE_ALSO)

[**auparse\_get\_line\_number**(3)](/man/os/audit/auparse_get_line_number.3). [**auparse\_next\_record**(3)](/man/os/audit/auparse_next_record.3).

# [AUTHOR](#AUTHOR)

John Dennis

Feb 2007 Red Hat

---

Document: auparse_get_filename(3) from audit 4.2.1-r4 (Chainguard OS)
Source: https://github.com/linux-audit/audit-userspace
