Linux:...l::Read(3pm)

πŸ’– NAME πŸ’–

okay so bestie, meet Linux::Systemd::Journal::Read β€” it reads from systemd journals. that's it, that's the whole job, and it's iconic ✨


πŸ¦‹ VERSION πŸ¦‹

version 1.201600

(this is the Linux::Systemd::Journal::Read(3pm) page from the User Contributed Perl Documentation, in case you were wondering where you wandered into 🫢)


🌸 METHODS 🌸

c<get_usage>

Returns the number of bytes used by the open journal πŸ’Ύ

ngl the page spells this one c<get_usage> β€” I'm quoting it exactly, no edits from me, that's just how it's written πŸ’…

"seek_head"

Seeks to the start of the open journal. βͺ

"seek_tail"

Seeks to the end of the open journal. ⏩

"next"

Moves to the next record. πŸ‘‰

get_data($field)

Returns the value of $field from the current record.

See systemd.journal-fields(7) for a list of well-known fields πŸ”

"get_entry"

Returns a hashref of all the fields in the current entry.

heads up: this method is not a direct wrap of the journal API 😀

"get_next_entry"

Convenience wrapper which calls "next" before "get_entry".

heads up again: this method is not a direct wrap of the journal API 🫠

okay these next ones β€” the page lists them all clumped together like a lil friend group, and only the last one gets a description. no notes, just listing them fr fr:

"match(field =" value)>

(the page gives you the name and nothing else β€” I'm not gonna make stuff up, that's a promise πŸ™ˆ)

"match_and(field =" value)>

(again, bare. nothing more on the page πŸ’€)

"match_or(field =" value)>

(still bare. matching the original, character for character πŸ‘‘)

"flush_matches"

Clears the match filters. 🧼


✨ AUTHOR ✨

Ioan Rogers <ioanr@cpan.org> πŸ’Œ


This software is Copyright (c) 2020 by Ioan Rogers.

This is free software, licensed under:

The GNU Lesser General Public License, Version 2.1, February 1999

and that's the whole thing bestie, you ate it πŸ“ this was perl v5.42.3, dated 2026-08-20, and it's the Linux:...l::Read(3pm) page β€” go read some journals, periodt πŸ’œ

πŸ“¦ where this page comes from