论坛风格切换
  • 2773阅读
  • 0回复

[整体方案]将access.log里面的日志正则匹配导出 [复制链接]

上一主题 下一主题
离线太史慈
 

发帖
766
金币
626
威望
556
只看楼主 倒序阅读 使用道具 楼主  发表于: 2012-05-23
find ./ -type f -name 'access_bbs.log'|xargs grep '222' > ./222.txt

如果想查一个帖子的访问记录

find /usr/local/nginx.1.0.5/logs -type f -name 'access.log'|xargs grep '3578792' > ./3578792.txt

find /usr/local/nginx.1.0.5/logs/2012/* -type f -name '*.log'|xargs grep '3578792' > ./3578792.txt
[url=http://www.phpwind.com]phpwind[/url]
快速回复
限100 字节
如果您在写长篇帖子又不马上发表,建议存为草稿
 
提到某人:
选择好友
上一个 下一个