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

# auparse\_get\_line\_number(3)

get line number where record was found

## NAME

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

## SYNOPSIS

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

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

## 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

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

## SEE ALSO

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

## AUTHOR

John Dennis
