ip2host


Ⅰ. 插件描述

Resolve IPs to hostnames in web server logs

Ⅱ. 基本信息

创建日期:  2010-05-09
使用用户:  1
Github星:  4
插件作者:  mla

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'mla/ip2host'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'mla/ip2host'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'mla/ip2host'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/mla/ip2host

Ⅳ. 文档说明

NAME

  ip2host - Resolves IPs to hostnames in web server logs

SYNOPSIS

  ip2host [OPTIONS] [cache_file] < infile > outfile

  infile  - Web server log file.

  outfile - Same as input file, but with IPs resolved to hostnames.        

  Options:

  --children=...  Number of child processes to spawn (default: 40)
  --timeout=...   Seconds to wait on DNS response (default: 20)
  --buffer=...    Maximum number of log lines to keep in
                  memory (default: 50000)
  --flush=...     Number of lines to process before flushing
                  output buffer (default: 500)
  --cache=...     Filename to use as disk cache (default: none)
  --ttl=...       Number of seconds before IPs cached on disk are expired
                  (default: 604800 - One week)

DESCRIPTION

This is a faster, drop-in replacement for the logresolve utility
distributed with the Apache web server.

It's been reported to work under Linux, FreeBSD, Solaris, Tru64, and
IRIX.

AUTHOR

Maurice Aubrey <maurice.aubrey+ip2host@gmail.com>

Based on the logresolve.pl script by Rob Hartill.

COPYRIGHT

Copyright 1999-2010, Maurice Aubrey <maurice.aubrey+ip2host@gmail.com>.

This module is free software; you may redistribute it and/or modify it
under the same terms as Perl itself.

README

Resolves IPs to hostnames in web server logs. This is a faster, drop-in
replacement for the logresolve utility distributed with the Apache web
server.

SCRIPT CATEGORIES

Web

添加新评论