---
name: "Linux::Systemd::Journal::Read"
section: "3pm"
platform: "linux"
package: "liblinux-systemd-perl"
version: "1.201600-4+b4"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/Linux::Systemd::Journal::Read"
---

# Linux::Systemd::Journal::Read(3pm)

Read from systemd journals

## NAME

Linux::Systemd::Journal::Read - Read from systemd journals

## VERSION

version 1.201600

## METHODS

### c\<get\_usage\>

Returns the number of bytes used by the open journal

### "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)](/systemd.journal-fields/7.md) for a list of well-known fields.

### "get\_entry"

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

This method is not a direct wrap of the journal API.

### "get\_next\_entry"

Convenience wrapper which calls "next" before "get\_entry"

This method is not a direct wrap of the journal API.

### "match(field =" value)\>

### "match\_and(field =" value)\>

### "match\_or(field =" value)\>

### "flush\_matches"

Clears the match filters.

## AUTHOR

Ioan Rogers \<ioanr@cpan.org\>

## COPYRIGHT AND LICENSE

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
```
