From: "Dmitry V. Levin" <ldv@altlinux.org>
To: ALT Linux Sisyphus mailing list <sisyphus@lists.altlinux.org>
Subject: Re: [sisyphus] logrotate не ротейтит логи от snort
Date: Mon, 17 Dec 2007 11:38:13 +0300
Message-ID: <20071217083813.GB27758@basalt.office.altlinux.org> (raw)
In-Reply-To: <4765F43D.7080306@sakhalin.ru>
[-- Attachment #1: Type: text/plain, Size: 2497 bytes --]
On Mon, Dec 17, 2007 at 01:59:57PM +1000, Alexandr Isaev wrote:
> Имеем стандартные логи от snort:
>
> #ls -l /var/log/snort
> -rw------- 1 snort snort 10778160 Дек 17 13:30 alert
> -rw------- 1 snort snort 651 Дек 13 11:05 snort.log.1197507874
> -rw------- 1 snort snort 5919270 Дек 17 13:30 snort.log.1197509314
> -rw------- 1 snort snort 205 Дек 13 12:09 snort.log.1197511518
> -rw------- 1 snort snort 3719 Дек 13 15:48 snort.log.1197524772
> -rw------- 1 snort snort 4165 Дек 13 15:50 snort.log.1197524897
> -rw------- 1 snort snort 710 Дек 13 15:53 snort.log.1197525128
> -rw------- 1 snort snort 207 Дек 13 15:54 snort.log.1197525245
> -rw------- 1 snort snort 5733048 Дек 17 13:02 snort.log.1197527259
> -rw------- 1 snort snort 17992 Дек 17 13:30 snort.log.1197860539
>
> и стандартный логротейт файл из пакета snort:
>
> # [root@avi logrotate.d]# cat /etc/logrotate.d/snort
> /var/log/snort/* {
> daily
> rotate 7
> missingok
> compress
> postrotate
> /sbin/service snortd condreload 2>/dev/null || true
> endscript
> }
>
> /var/log/snort/*/* {
> daily
> rotate 7
> missingok
> compress
> postrotate
> /sbin/service snortd condreload 2>/dev/null || true
> endscript
> }
>
> а теперь запускаем logrotate на эту конструкцию:
>
> # logrotate -d /etc/logrotate.d/snort
> reading config file /etc/logrotate.d/snort
> Ignoring /var/log/snort/snort.log.1197507874, because of ".1197507874"
> ending
> Ignoring /var/log/snort/snort.log.1197509314, because of ".1197509314"
> ending
> Ignoring /var/log/snort/snort.log.1197511518, because of ".1197511518"
> ending
> Ignoring /var/log/snort/snort.log.1197524772, because of ".1197524772"
> ending
> Ignoring /var/log/snort/snort.log.1197524897, because of ".1197524897"
> ending
> Ignoring /var/log/snort/snort.log.1197525128, because of ".1197525128"
> ending
> Ignoring /var/log/snort/snort.log.1197525245, because of ".1197525245"
> ending
> Ignoring /var/log/snort/snort.log.1197527259, because of ".1197527259"
> ending
> Ignoring /var/log/snort/snort.log.1197860539, because of ".1197860539"
> ending
> End of reading config info for /var/log/snort/*
> error: error accessing /var/log/snort/*: No such file or directory
> error: /etc/logrotate.d/snort:11 glob failed for /var/log/snort/*/*
А зачем вам понадобился /var/log/snort/*/*?
--
ldv
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2007-12-17 8:38 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-12-17 3:59 Alexandr Isaev
2007-12-17 8:38 ` Dmitry V. Levin [this message]
2007-12-17 12:28 ` Alexandr Isaev
2007-12-17 17:47 ` Andrew Kornilov
2007-12-17 18:32 ` Dmitry V. Levin
2007-12-17 23:17 ` Alexandr Isaev
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=20071217083813.GB27758@basalt.office.altlinux.org \
--to=ldv@altlinux.org \
--cc=sisyphus@lists.altlinux.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
ALT Linux Sisyphus discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
public-inbox-index sisyphus
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.sisyphus
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git