AUPARSE_METRICS(3)
π AUPARSE_METRICS π
okay bestie, gather round, because we're looking at auparse_metrics(3) from the Linux Audit API and it's lowkey one of the most useful little peek-behind-the-curtain functions you'll meet. π«Ά
β¨ NAME β¨
auparse_metrics β get some metrics about auparse π
πΈ SYNOPSIS πΈ
#include <auparse.h>
char * auparse_metrics(const auparse_state_t *au);"
π¦ DESCRIPTION π¦
so auparse_metrics gets you some basic info about auparse's internal state. that's it. that's the vibe. π
it hands you back a character string that's ready to print β like, no extra formatting work on your end, she did that for you, main character energy fr.
what's actually in that string? three things:
- the current limit for storing building events β wait, the current limit for storing building events
- the maximum events building or ready
- the number of ready events for processing
heads up bestie: this info is only useful when the feed api is being used. if you're not feeding, this is givingβ¦ nothing. π
π RETURN VALUE π
on success you get a memory buffer of the current metrics. on error you get NULL. simple.
β οΈ and this part matters: the caller must free the string. that memory is yours now. take care of her. π«Ά
π SEE ALSO π
π AUTHOR π
Steve Grubb β¨
and that's the whole page, bestie β no notes, she ate. this icon of a manpage came to you from Red Hat, dated Sept 2023. go forth and free your strings. ππΈπ¦
π¦ 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