DOKK / manpages / debian 11 / libelogind-dev-doc / sd_journal_get_usage.3.en
SD_JOURNAL_GET_USAGE(3) sd_journal_get_usage SD_JOURNAL_GET_USAGE(3)

sd_journal_get_usage - Journal disk usage

#include <elogind/sd-journal.h>

int sd_journal_get_usage(sd_journal *j, uint64_t *bytes);

sd_journal_get_usage() determines the total disk space currently used by journal files (in bytes). As elogind does not generate any journal files, the result is always zero.

sd_journal_get_usage() returns 0.

elogind(8),

sd_journal_open(3),

elogind 246.9.1