auparse_get_line_number (3) - Linux Man Pages
auparse_get_line_number: get line number where record was found
NAMEauparse_get_line_number - get line number where record was found
unsigned int auparse_get_line_number(auparse_state_t *au);
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.
Returns the line number. Line numbers are 1 based, a zero value indicates the line number information is unavailable.