> For the complete documentation index, see [llms.txt](https://theiotlearninginitiative.gitbook.io/embedded-linux/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://theiotlearninginitiative.gitbook.io/embedded-linux/user-space/logs.md).

# Logs

## Logs

## JournalCtl

> journalctl — Query the systemd journal. journalctl may be used to query the contents of the systemd journal as written by systemd-journald.service. [Homepage](https://www.freedesktop.org/software/systemd/man/journalctl.html)

Show logging space

```bash
    root@edison:~# journalctl --disk-usage
```

Limit logging space

```bash
    root@edison:~# nano /etc/systemd/journald.conf
    SystemMaxUse=20M
```

Stop logging

```bash
    root@edison:~# nano /etc/systemd/journald.conf
    #Storage=persistent
    Storage=None
```

Remove all logs

```bash
    root@edison:~# cd /var/log/journal/
    root@edison:/var/log/journal# rm -rf *
```

Show logging space

```bash
root@edison:~# journalctl --disk-usage
No journal files were found.
Journals take up 0B on disk.
```
