public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Canek Peláez Valdés" <caneko@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] syslog-ng: how to read the log files
Date: Wed, 18 Feb 2015 12:53:51 -0600	[thread overview]
Message-ID: <CADPrc81hUFMEvJu5NQhsy+nkn=mhTx+kaZScFkvY7r3P02T9xw@mail.gmail.com> (raw)
In-Reply-To: <878ufvqdu0.fsf@nyu.edu>

[-- Attachment #1: Type: text/plain, Size: 1679 bytes --]

On Wed, Feb 18, 2015 at 12:22 PM, <gottlieb@nyu.edu> wrote:
>
> On Tue, Feb 17 2015, Canek Peláez Valdés wrote:
>
> > On Tue, Feb 17, 2015 at 2:29 PM, <covici@ccs.covici.com> wrote:
> >>
> >> I wonder if the OP is using systemd and trying to read the journal
> >> files?
> >
> > Those live under /var/lib/journal (which you need to create; Gentoo
doesn't
> > do it by default last time I saw),
>
> Wow!  I just checked and indeed I do not have /var/lib/journal.
> I run systemd (thanks to canek) and use journalctl, which I *thought*
> was displaying the journal).

The journal works without permanent storage (one more of its many
advantages); in that case, it keeps a small amount of logs in memory (you
can set how much memory to reserve for it).

> Need I make some changes?

Only if you want to have logs in permanent storage. In that case, you only
need to create the /var/log/journal dir with systemd-journal GID, and 2755
permissions (with setgid). systemd-journald will automatically rotate the
logs when they use 10% of the free disk available (you can also change
that).

Since the logs are compressed and indexed, each entry on them is accesible
in O(1), and they don't use that much space (with 280 megabytes reserved in
my laptop for journal logs, I have logs since Sep 20, 2014; that's 5 months
worth of logs, although my laptop doesn't run that many daemons).

Anyway, the journal works perfectly without permanent storage (as you can
see); if you are happy that way, you don't need to enable it.

Regards.
--
Canek Peláez Valdés
Profesor de asignatura, Facultad de Ciencias
Universidad Nacional Autónoma de México

[-- Attachment #2: Type: text/html, Size: 1974 bytes --]

  reply	other threads:[~2015-02-18 18:54 UTC|newest]

Thread overview: 67+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-17 18:26 [gentoo-user] syslog-ng: how to read the log files lee
2015-02-17 18:37 ` Rich Freeman
2015-02-17 18:38 ` Alexander Kapshuk
2015-02-17 19:09   ` Alexander Kapshuk
2015-02-17 19:29   ` covici
2015-02-17 19:45     ` Canek Peláez Valdés
2015-02-17 22:31       ` Marc Joliet
2015-02-18 19:01         ` systemd journal location (was: Re: [gentoo-user] syslog-ng: how to read the log files) Marc Joliet
2015-02-18 18:22       ` [gentoo-user] syslog-ng: how to read the log files gottlieb
2015-02-18 18:53         ` Canek Peláez Valdés [this message]
2015-02-18 22:43           ` gottlieb
2015-02-18 20:49     ` lee
2015-02-18 22:31       ` Neil Bothwick
2015-02-22 23:41         ` lee
2015-02-23  0:19           ` Canek Peláez Valdés
2015-05-04  5:57             ` lee
2015-05-04 14:56               ` Tom H
2015-05-09 15:01                 ` lee
2015-05-09 16:00                   ` Peter Humphrey
2015-02-23  0:37           ` Rich Freeman
2015-05-04  6:09             ` lee
2015-02-23  8:15           ` Marc Joliet
2015-02-23  8:41             ` covici
2015-02-23 16:18               ` Canek Peláez Valdés
2015-02-23 17:49                 ` covici
2015-02-23 18:10                   ` Canek Peláez Valdés
2015-02-23 19:19                     ` Marc Joliet
2015-02-23 19:31                       ` covici
2015-02-23 19:35                         ` Canek Peláez Valdés
2015-02-23 20:07                           ` covici
2015-02-23 23:18                           ` covici
2015-02-23 23:29                             ` Neil Bothwick
2015-02-24  0:50                               ` Peter Humphrey
2015-02-24  7:21                                 ` Marc Joliet
2015-02-24  9:57                                 ` Matti Nykyri
2015-02-23 19:26                     ` covici
2015-05-04  6:14             ` lee
2015-05-04 11:24               ` Rich Freeman
2015-05-09 15:08                 ` lee
2015-05-09 18:07                   ` Rich Freeman
2015-05-10 17:51                   ` [gentoo-user] " »Q«
2015-02-17 18:41 ` [gentoo-user] " Matti Nykyri
2015-02-17 22:51   ` Peter Humphrey
2015-02-17 23:13     ` Peter Humphrey
2015-02-17 23:23       ` Jan Sever
2015-02-17 23:54         ` Peter Humphrey
2015-02-18  7:38       ` Mick
2015-02-18  9:38         ` Peter Humphrey
2015-02-17 23:52     ` Rich Freeman
2015-02-17 23:55       ` Peter Humphrey
2015-02-17 19:02 ` [gentoo-user] " Nikos Chantziaras
2015-02-17 19:02 ` [gentoo-user] " Alan Mackenzie
2015-02-17 19:17   ` lee
2015-02-17 22:01     ` Mick
2015-02-18 13:29 ` Stroller
2015-02-18 20:40   ` lee
2015-02-18 21:33     ` Stroller
2015-02-22 23:48       ` lee
2015-02-23  0:21         ` Canek Peláez Valdés
2015-02-23  2:57         ` Dale
2015-02-23  3:06           ` Peter Humphrey
2015-02-23  4:28             ` Dale
2015-02-23 10:13               ` Peter Humphrey
2015-02-24 19:30         ` Stroller
2015-02-19 19:02 ` Fernando Rodriguez
2015-02-19 19:11   ` Jan Sever
2015-02-23  0:03     ` lee

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CADPrc81hUFMEvJu5NQhsy+nkn=mhTx+kaZScFkvY7r3P02T9xw@mail.gmail.com' \
    --to=caneko@gmail.com \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox