天天看點

第 23 章 Logs 分析

目錄

<dl></dl>

<dt>23.1. log</dt>

<dd><dl></dl></dd>

<dt>23.1.1. logwatch</dt>

<dt>23.1.2. logcheck : Analyzes log files and sends noticeable events as email</dt>

<dt>23.1.3. nulog</dt>

<dt>23.2. Web</dt>

<dt>23.2.1. Apache Log</dt>

<dt>23.2.1.1. 刪除日志</dt>

<dt>23.2.1.2. 統計爬蟲</dt>

<dt>23.2.1.3. 統計浏覽器</dt>

<dt>23.2.1.4. IP 統計</dt>

<dt>23.2.1.5. 統計域名</dt>

<dt>23.2.1.6. HTTP Status</dt>

<dt>23.2.1.7. URL 統計</dt>

<dt>23.2.1.8. 檔案流量統計</dt>

<dt>23.2.1.9. URL通路量統計</dt>

<dt>23.2.1.10. 腳本運作速度</dt>

<dt>23.2.1.11. IP, URL 抽取</dt>

<dt>23.2.2. awstats</dt>

<dt>23.2.2.1. 語言</dt>

<dt>23.2.2.2. 輸出HTML文檔</dt>

<dt>23.2.2.3. 多站點配置</dt>

<dt>23.2.2.4. 合并日志</dt>

<dt>23.2.2.5. Flush history file on disk (unique url reach flush limit of 5000) 優化</dt>

<dt>23.2.2.6. JAWStats</dt>

<dt>23.2.3. webalizer</dt>

<dt>23.2.3.1. 手工生成</dt>

<dt>23.2.3.2. 批量處理曆史資料</dt>

<dt>23.2.3.3. crontab</dt>

<dt>23.2.4. Sarg - Squid Analysis Report Generator</dt>

<dt>23.2.5. goaccess - Fast web log analyzer and interactive viewer.</dt>

<dt>23.3. Tomcat</dt>

<dt>23.3.1. 截取 0-3 點區間的日志</dt>

<dt>23.3.2. 監控Redis</dt>

<dt>23.4. Mail</dt>

<dd><dl><dt>23.4.1. pflogsumm.pl - Produce Postfix MTA logfile summary</dt></dl></dd>

<dt>23.5. OpenSSH 日志 /var/log/secure</dt>

<dd><dl><dt>23.5.1. 檢視登陸使用者</dt></dl></dd>

<dt>23.6. rinetd.log</dt>

<dt>23.7. php-syslog-ng</dt>

<dt>23.8. Log Analyzer</dt>

<dt>23.9. Splunk</dt>

<dt>23.10. Octopussy</dt>

<dt>23.11. eventlog-to-syslog</dt>

<dt>23.12. Apache Flume</dt>

<dt>23.12.1. 安裝 Apache flume</dt>

<dt>23.12.2. 基本配置</dt>

<dt>23.12.3. 配置 MySQL 存儲日志</dt>

<dt>23.12.4. 配置 HDFS 存儲日志</dt>

http://www.logwatch.org/

過程 23.1. logwatch 安裝步驟:

Install

Ubuntu 7.10

apt-get install

the logwatch has been installed, it should create a file in '/etc/cron.daily/00logwatch'.

config

mail to

To change detail level for the report

Crontab

The logwatch is command, you can run it.

 logwatch --print 

單獨檢視某個服務,比如 SSH 登入資訊

logwatch --service sshd --print

安裝 logcheck

檢視 logchek 包所含檔案

例 23.1. config.php

原文出處:Netkiller 系列 手劄

本文作者:陳景峯

轉載請與作者聯系,同時請務必标明文章原始出處和作者資訊及本聲明。

上一篇: 第 22 章 Beta
下一篇: 23.2. Web