用于创建包含所需信息的separte日志文件的Perl脚本。 [英] Perl script to create a separte log file that includes required info.

查看:144
本文介绍了用于创建包含所需信息的separte日志文件的Perl脚本。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想创建一个单独的日志,其中包含详细日志中的I(logIN),用户标识和日期/时间戳。这种类型的数据压缩得很好,所以我可以存储多年。我需要脚本来创建可以保存在每台服务器上的单独日志文件。因为我不太了解perl脚本。我们将非常感谢您的帮助。


Thanx


Val

I want to create a separate log that includes an I (logIN) , userid, and date/timestamp from a detailed log. This type of data compresses very well so I can store years of it. I need script to create an separate log files that can saved on each server. Since I dont know much about perl scripting. Your help will be appreciated.

Thanx

Val

推荐答案

和你有什么想做的?为什么不尝试这样做,如果你没有,如果你被卡住就在这里发布你的代码。


问候,


杰夫
And what have you tried to do this? Why not try to do it if you haven''t and post your code here if you get stuck.

Regards,

Jeff



您尝试过这样做了什么?为什么不尝试这样做,如果你没有,如果你被卡住就在这里发布你的代码。


问候,


杰夫
And what have you tried to do this? Why not try to do it if you haven''t and post your code here if you get stuck.

Regards,

Jeff



我尝试使用chomp和split函数..但是我无法做到。

以下是我的代码...


I tried by using chomp and split function..but I am not able to do.
following is my code...

展开 | 选择 | Wrap | 行号


展开 | 选择 | Wrap | 行号


这篇关于用于创建包含所需信息的separte日志文件的Perl脚本。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆