如何编写自己的服务器日志脚本?
我需要在 Windows IIS 6.0 中记录对子域的点击,而不在 IIS 管理器中将它们指定为单独的网站。有人告诉我这是不可能的。我如何编写自己的脚本来执行此操作?
恐怕由于设置原因,谷歌分析不是一个选项,我只需要访问(我猜测)文件请求事件及其属性。
Wyatt Barnette - 我已经想到了这一点!但是我如何设置这些属性来收集它们?我正在编写自己的日志解析软件,因为我需要特定的东西,我只需要服务器生成日志供我解析!
I need to log the hits on a sub-domain in Windows IIS 6.0 without designating them as separate websites in the IIS Manager. I have been told this is not possible. How can I write my own script to do this?
I'm afraid google analytics is not an option due to the setup, I just need access (i'm guessing) to the file request event and its properties.
Wyatt Barnette - I've thought of this! But how do I set those properties for it to collect them all? I'm writing my own log parsing software, as I need specific things, I just need the server to generate the logs for me to parse!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
发布评论
评论(3)
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
您是否考虑过在您的所有网站上使用 Google Analytics(分析)?我知道这不是真正的日志记录......但有时用简单的解决方案解决简单的问题更容易!日志解析似乎正在慢慢消失......
Have you considered using Google Analytics across all your sites? I know that this is not true logging...but sometimes addressing simple problems with simple solutions is easier! Log parsing seems to be slowly fading away...