在ftp服务器中过滤ftp日志文件

时间:2012-09-04 07:40:58

标签: linux ftp

在ftp服务器中,当用户从服务器下载数据时,它有一个大的日志文件来记录。 日志文件项目如

Sat Jun  2 03:32:13 2012 [pid 12461] CONNECT: Client "66.249.68.236"
Sat Jun  2 03:32:13 2012 [pid 12460] [ftp] OK LOGIN: Client "66.249.68.236", anon     password "gxxglxxxxt@google.com"
Sat Jun  2 03:32:14 2012 [pid 12462] [ftp] OK DOWNLOAD: Client "66.249.68.236",   "/pub/10.5524/100001_101000/100022/readme.txt", 451 bytes, 1.39Kbyte/sec
Sat Jun  2 03:32:22 2012 [pid 12677] CONNECT: Client "66.249.68.236"
Sat Jun  2 03:32:23 2012 [pid 12676] [ftp] OK LOGIN: Client "66.249.68.236", anon password "xxxxxbot@google.com"
Sat Jun  2 03:35:27 2012 [pid 12706] [ftp] FAIL DOWNLOAD: Client "66.2

那么我怎么能得到一个简单的日志文件只包含最近一周或7天的记录

由于

0 个答案:

没有答案