AUPARSE_METRICS(3)

πŸ“¦
version 4.2.1 Β· 3 versions
, in alpine 3.23, alpine 3.24, arch rolling, centos-stream 10, fedora 43, fedora 44, nixpkgs unstable, ubuntu resolute, ubuntu stonking

πŸ’– 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. πŸ’–πŸŒΈπŸ¦‹