查找包含IP地址和URL端点的Web服务器日志文件 [英] Find web server log files which contains IP Address and URL Endpoints

查看:68
本文介绍了查找包含IP地址和URL端点的Web服务器日志文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,我目前正在尝试在Azure应用服务中查找日志文件,该文件提供有关请求来自哪个IP地址以及哪些URL端点被点击的信息。我已经通过FTP在/ Logfiles / http / rawlogs
的文件夹结构下找到了一个日志文件,它确实提供了我们正在寻找的东西,但只能追溯到03/26/2019但我们需要回去至18/01/2018。有什么地方我可以找到过去日志的这个文件。我可以走多远,在哪里可以找到这些以前的
文件。



谢谢


解决方案

由于您在文件系统中找到了Web服务器(IIS)日志,因此您似乎选择了文件系统为您的存储。您可以通过两个参数控制日志文件的数量。最高100 MB的配额或租赁政策。如果命中任一参数
,则删除日志文件。看起来你可能达到了限制。您可以通过进入应用程序的诊断日志刀片确认您的选择。


如果您需要历史记录,我强烈建议切换到存储作为记录方法,这将存储登录Azure Blob存储帐户。这样您就不应受到尺寸的限制,并且您可以根据业务需求控制租赁政策符合



Hello, I'm currently trying to find log files in our Azure App Service that provides information regarding which IP addresses the request came from and which URL endpoints where hit. I have found a log file under the folder structure of /Logfiles/http/rawlogs via FTP which does provide exactly what we are looking for but only goes back as far as 03/26/2019 but we need to go back as far as 11/01/2018 . Is there anywhere that i can find this file with past logs. How far back can i go and where do i find these previous files.

Thank you

解决方案

Since you found the web server (IIS) logs in your file system, it would appear that you selected filesystem for your storage. The amount of your log files can be controlled by two parameters. A quota up to 100 MB or a rention policy. If either of the parameters are hit, the log file is deleted. It appears you are likely hitting either limit. You can confirm your selection by going into the diagnostic logs blade of your app.

If you need historical logging, I would highly suggest switching to storage as the method of logging and this will store the logs in a Azure Blob Storage account. This way you shouldn't be limited by size and you control the rention policy to fall in line with your business requirements.


这篇关于查找包含IP地址和URL端点的Web服务器日志文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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