From: Mikhail Yakshin <greycat@altlinux.org>
To: ALT Linux Sisyphus discussions <sisyphus@lists.altlinux.org>
Subject: Re: [sisyphus] Слишком умный multitail
Date: Sat, 22 Sep 2012 14:23:02 +0400
Message-ID: <CANp_HXd4r26T9fevvnNfWmJMaCZiQXOu40kwJytN6rdhmAAYVw@mail.gmail.com> (raw)
In-Reply-To: <CAC4WpAyeOfsSj9DSX55wm=djU14hXCv+jKJ1Rb+baD9PdEW6SQ@mail.gmail.com>
Приветствую,
> Захотелось мне посмотреть синхронно два лога.
> Знаю волшебное слово "multitail"...
>
> Одним из логов является лог lighttpd, в котором строка начинается с IP-адреса.
> Но multitail упорно резолвит эти адреса в FQDN, хотя я этого не просил.
> Не нашел способа вернуть его в адекватное состояние.
>
> Это так и задумано, или баг?
Это стандартное поведение multitail: он детектит, что лог от lighttpd
и делает вывод, что парсить его надо по схеме "apache":
# default colorschemes:
scheme:postfix:/var/log/mail/
scheme:sendmail:/var/log/mail/
scheme:exim:/var/log/mail/
scheme:apache:/var/log/apache/.*access
scheme:apache:/var/log/lighttpd/.*access
Схема определяет цветовую раскраску, а также ряд преобразований
(conversions), в частности, такое:
# possible conversions:
# ip4tohost: an ip-address in 4 byte dotted format to a hostname
convert:apache:ip4tohost:^([0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3})
Отключить можно, например, закомментировав строчку "convert:apache" в
конфиге multitail или определив новую собственную схему для логов
lighttpd и _не_ включая туда это преобразование ip4tohost.
--
WBR, Mikhail Yakshin
next prev parent reply other threads:[~2012-09-22 10:23 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-09-21 9:10 Dmitriy Kruglikov
2012-09-22 10:23 ` Mikhail Yakshin [this message]
2012-09-22 10:39 ` Dmitriy Kruglikov
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=CANp_HXd4r26T9fevvnNfWmJMaCZiQXOu40kwJytN6rdhmAAYVw@mail.gmail.com \
--to=greycat@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