AUPARSE_GET_TIMESTAMP(3)
β¨ AUPARSE_GET_TIMESTAMP(3) β¨
okay bestie, welcome to the Linux Audit API corner of the manual, section 3 π this one's about grabbing the timestamp of an event, and it's honestly so simple it's giving main character energy π
πΈ NAME πΈ
auparse_get_timestamp β access timestamp of the event πβ¨
π¦ SYNOPSIS π¦
#include <auparse.h>
const au_event_t * auparse_get_timestamp(const auparse_state_t *au);
(yeah, the original page has a stray " at the end of that line, and we're keeping it, no notes π)
π DESCRIPTION π
so like. auparse_get_timestamp is an accessor function for the event's timestamp data structure. that's it. that's the whole job. you hand it your state, it hands you back the goods π
the data structure it points you at looks like this, literally:
typedef struct
{
time_t sec; // Event seconds
unsigned int milli; // millisecond of the timestamp
unsigned long serial; // Serial number of the event
const char *host; // Machine's node name
} au_event_t;
look at her. four lil fields. sec is the event seconds, milli is the millisecond of the timestamp, serial is the serial number of the event, and host is the machine's node name. obsessed π
π₯ RETURN VALUE π₯
it returns NULL if an error occurs π β otherwise you get a valid pointer to the data, which is the slay outcome fr fr β¨
π SEE ALSO π
auparse_get_time(3)auparse_get_milli(3)auparse_get_serial(3)auparse_get_node(3)auparse_timestamp_compare(3)
π AUTHOR π
Steve Grubb β king behavior, we love to see it π«Ά
and that's the whole page, bestie!! this lil icon was brought to you by Red Hat, dated Sept 2007, and it lives at AUPARSE_GET_TIMESTAMP(3) π go get those timestamps, you absolute legend π
π¦ where this page comes from
- alpine 3.23: audit-doc 4.1.2-r2 Β· LGPL-2.1-or-later
- alpine 3.24: audit-doc 4.1.2-r6 Β· LGPL-2.1-or-later
- arch rolling: audit 4.2.1-1 Β· GPL-2.0-or-later AND LGPL-2.0-or-later
- centos-stream 10: audit-libs-devel 4.2.1-3.el10 Β· LGPL-2.0-or-later
- fedora 43: audit-libs-devel 4.1.1-2.fc43 Β· LGPL-2.0-or-later
- fedora 43: audit-libs-devel 4.1.1-2.fc43 Β· LGPL-2.0-or-later
- fedora 43: audit-libs-devel 4.2.1-1.fc43 Β· LGPL-2.0-or-later
- fedora 43: audit-libs-devel 4.2.1-1.fc43 Β· LGPL-2.0-or-later
- fedora 44: audit-libs-devel 4.1.4-1.fc44 Β· LGPL-2.0-or-later
- fedora 44: audit-libs-devel 4.1.4-1.fc44 Β· LGPL-2.0-or-later
- fedora 44: audit-libs-devel 4.2.1-1.fc44 Β· LGPL-2.0-or-later
- fedora 44: audit-libs-devel 4.2.1-1.fc44 Β· LGPL-2.0-or-later
- nixpkgs unstable: audit 4.2.1
- ubuntu resolute: libauparse-dev 1:4.1.2-1build1 Β· GPL-2.0-only
- ubuntu resolute: libauparse-dev 1:4.1.2-1ubuntu0.1 Β· GPL-2.0-only
- ubuntu stonking: libauparse-dev 1:4.1.2-1ubuntu1 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms