AUPARSE\_GET\_LINE\_NUMBER(3) Linux Audit API AUPARSE\_GET\_LINE\_NUMBER(3)

# [NAME](#NAME)

auparse\_get\_line\_number - get line number where record was found

# [SYNOPSIS](#SYNOPSIS)

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

**unsigned int auparse\_get\_line\_number(const auparse\_state\_t \*au);"**

# [DESCRIPTION](#DESCRIPTION)

auparse\_get\_line\_number will return the source input line number for the current record of the current event. Line numbers start at 1. If the source input type is AUSOURCE\_FILE\_ARRAY the line numbering will reset back to 1 each time a new line in the file array is opened.

# [RETURN VALUE](#RETURN_VALUE)

Returns the line number. Line numbers are 1 based, a zero value indicates the line number information is unavailable.

# [SEE ALSO](#SEE_ALSO)

[**auparse\_get\_filename**(3)](/man/os/audit/auparse_get_filename.3). [**auparse\_next\_record**(3)](/man/os/audit/auparse_next_record.3).

# [AUTHOR](#AUTHOR)

John Dennis

June 2016 Red Hat

---

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