坐月子可以吃什么| 肺不好挂什么科| 讽刺是什么意思| 花斑癣用什么药膏| 肺结节什么东西不能吃| 益生元是什么东西| 多饮多尿可能是什么病| 得了肠胃炎吃什么最好| 氪金什么意思| 91年五行属什么| 鸡胗是什么部位| 风向标是什么意思| 夜间胃痛是什么原因| 医生为什么看瞳孔知道没救了| 奶昔是什么东西| 减肥喝什么咖啡| 什么时候做nt| 腮腺炎是什么引起的| 出入是什么意思| 什么叫息肉| 血管瘤是什么引起的| 什么是比喻| 化疗后吃什么药| 农历7月是什么星座| 美女是什么意思| 痛风喝什么水| 阴道镜活检是什么意思| 鬃狮蜥吃什么| 腰扭伤吃什么药| 九孔藕和七孔藕有什么区别| 1988年什么命| 血糖能吃什么水果| 支气管扩张什么症状| 蛊是什么| kg什么意思| 眼袋是什么原因造成的| 晔字为什么不能取名| 什么是纤维| 老人生日送什么礼物好| 梦到父母离婚是什么意思| 什么是筋膜| 一动就出汗吃什么药| 右附件区囊肿是什么意思| pn是什么| 宝宝入盆有什么感觉| 高考300分能上什么大学| 胃热吃什么| 核准日期是什么意思| mansory是什么车| 腰酸是什么病的前兆| 香菜吃多了有什么坏处| 议论纷纷是什么意思| 女人眼睛干涩吃什么药| 什么头什么面| 门槛费是什么意思| 宫颈鳞状上皮增生是什么意思| 木鱼花是什么| 做好自己是什么意思| 岁月静好浅笑安然什么意思| 黑暗料理是什么意思| 谷氨酰胺是什么| 大姨妈来了能吃什么水果| 脚后跟疼挂什么科| 右耳朵疼是什么原因| 路由器坏了有什么症状| 仓鼠和老鼠有什么区别| 杨柳木是什么生肖| 蚊子不喜欢什么血型| 47年属什么生肖| 9.3什么星座| 好久不见是什么意思| 什么的小手| 签注什么意思| 为什么长口腔溃疡| 练瑜伽有什么好处| 右大腿上部疼痛是什么原因| 02年属什么的| 男生学什么技术吃香| 心下痞是什么意思| 鹅什么时候开始下蛋| 胎位loa是什么意思| 喝茶叶水有什么好处和坏处| 阴历九月是什么星座| 245是什么意思| 荨麻疹能吃什么| 星期三左眼皮跳是什么预兆| 鱼是什么意思| 球虫病有什么症状| 阳亢是什么意思| 晨起口干口苦是什么原因| 血压高吃什么药| 蔡字五行属什么| 狐狸吊坠有什么寓意| 张衡发明了什么东西| 卫生纸属于什么垃圾| 剁椒是什么辣椒| 女人梦见老鼠什么征兆| 太上老君的坐骑是什么| 早上四五点是什么时辰| 为什么越累越胖| 举贤不避亲什么意思| 日本的国宝是什么| 神采什么什么| palace是什么牌子| 牙齿痛挂什么科| 颈椎用什么字母表示| acr是什么意思| 为什么腰疼| 吃什么补充黄体酮| 看病人送什么水果| 开车撞死猫有什么预兆| 女性尿特别黄是什么原因| 睾酮是什么| 洗内裤用什么洗比较好| 为什么没人穿卡帕| 肛门被捅后有什么影响| 与虎谋皮什么意思| 断子绝孙是什么意思| 血小板升高是什么原因| 泻立停又叫什么名字| 出格是什么意思| 反水什么意思| 副乳是什么| 头皮屑多是什么原因怎么去除| 腰背疼痛挂什么科| 位移是什么| 查传染病四项挂什么科| 什么面好吃| 谷氨酸高是什么原因| 日本人为什么长寿| 伽马刀是什么意思| 青春期指什么年龄段| 全职是什么意思| 葡萄柚是什么水果| 功夫是什么意思| 夏天适合种什么水果| ket是什么| 93年的属什么| 食积是什么意思| 什么是风寒感冒| 小孩吃什么有营养| 什么的山野| 排卵期是指什么时候| 39年属什么生肖| dic医学上是什么意思| 95年属什么多大| 肠化生是什么意思| 喝什么茶叶减肥效果最好| 口加才是什么字| 梦见老公出轨了是什么征兆| 盐卤是什么| 梅毒滴度是什么意思| 猫在风水上代表什么| 缺钠有什么症状和危害| 什么的竹叶| 乳房长斑点是什么原因| 2008年是什么年| 左侧卵巢囊性结构什么意思| 两头尖是什么中药| 牙结石用什么牙膏最好| 脖子长痘痘是因为什么原因| 三堂会审是什么意思| 大便不成型吃什么药| 早餐吃什么有营养| 互诉衷肠是什么意思| 知进退明得失什么意思| 三维b片主治什么病| ube手术是什么意思| hobbs是什么牌子| 萎缩是什么意思| 更年期是什么意思| 72岁属什么| 殊胜的意思是什么| 风热感冒吃什么消炎药| 3月4号是什么星座| 米为什么会生虫| 低血糖会出现什么症状| 食道挂什么科| 眼睛肿是什么原因引起的| 北京市长是什么级别| 胎停了有什么症状| 国家专项是什么意思| 脑ct都能查出什么病| 吃什么长内膜| 做腹腔镜手术后需要注意什么| 无后为大的前一句是什么| 喉炎吃什么药最有效| 蜜蜂是什么牌子| 守株待兔是什么生肖| 手上长小水泡是什么原因| 夹心饼干是什么意思| 吃什么消炎药可以喝酒| 玻尿酸有什么作用| 奥美拉唑是什么药| 打牛是什么意思| 嗜碱性粒细胞偏低说明什么| 感冒去医院挂什么科| 腰酸胀是什么原因男性| 区人大代表是什么级别| 舌质是什么| 甲状腺结节看什么科室最好| 脸上为什么会长痣| 冷冻液是什么| 杀马特是什么意思| 小腿肌肉酸痛什么原因| 为什么北方人比南方人高| 火拼是什么意思| nba季后赛什么时候开始| 嗜血综合症是什么病| 月可以加什么偏旁| 不停的打嗝是什么原因| 什么药补肾| 龙龟适合什么属相人| 喝什么茶清肺效果最好| 右脚浮肿预示着什么| 抽烟对身体有什么危害| 体质指数是什么意思| naoh是什么| 尿的酸碱度能说明什么| 肠痉挛吃什么药| 干什么一天能挣1000元| 静修是什么意思| 手术后为什么要平躺6小时| 甲醛是什么东西| 空气是由什么组成的| 有伤口吃什么消炎药| 流连忘返是什么生肖| 高血压2级是什么意思| 瘁是什么意思| 火影忍者大结局是什么| 正的五行属性是什么| 李世民是什么民族| 宝宝低烧是什么原因引起的| 莳字五行属什么| 什么炒菜好吃| 散光和近视有什么区别| 神话故事有什么| 触霉头是什么意思| 内什么外什么| 突然心慌是什么原因| 上面一个处下面一个日是什么字| 子宫多发肌瘤是什么意思| 阳虚是什么| 什么是甲状腺| 军级相当于什么级别| 肾结石什么不可以吃| 阴道骚痒是什么原因| 牛郎是什么职业| 蟑螂为什么叫小强| 农历今年是什么年| 霉菌性阴道炎用什么药效果好| ms是什么单位| 什么坚果适合减肥吃| 吃什么补钙快| 为什么头发突然秃了一块| 皮卡丘什么意思| 承欢膝下什么意思| 脚气病缺什么维生素| 怀孕吃什么宝宝皮肤白| 甘油三酯高吃什么好| 柠檬酸是什么| 冉是什么意思| 静脉曲张是什么病| homie是什么意思| 百度
Table of Contents
2. Enable Failed Request Tracing at the Site Level
3. Add Failed Request Tracing Rules
4. Understanding the Logs
5. Optional: Set Global Configuration (Advanced)
Notes:
Home Topics IIS How to enable Failed Request Tracing in IIS?

APP越界索权呼唤规范治理 监管有方事前事后并重

Aug 02, 2025 am 04:18 AM

百度 在全国好空气十强榜单上,除了丽水、舟山两位常客,还出现了新秀温州。

Install Failed Request Tracing via Windows Features under Internet Information Services > Health and Diagnostics; 2. Enable it for a specific site in IIS Manager by clicking Enable in Failed Request Tracing; 3. Add rules by specifying request paths and status codes like 404,500 with Verbose level for detail; 4. Review generated XML logs in %SystemDrive%\inetpub\logs\FailedReqLogFiles\ using a browser or IIS Failed Request Viewer; 5. Optionally configure global settings in applicationHost.config for log directory and size, ensuring proper permissions and selective rule usage to manage log volume in production, which together provide comprehensive troubleshooting insight for failed web requests.

How to enable Failed Request Tracing in IIS?

Enabling Failed Request Tracing in IIS (Internet Information Services) helps you diagnose issues with specific web requests—especially those that result in HTTP error codes like 404, 500, etc. It provides detailed logs showing each step of the request processing, which is useful for troubleshooting.

How to enable Failed Request Tracing in IIS?

Here’s how to enable and configure Failed Request Tracing in IIS:


1. Install Failed Request Tracing (if not already installed)

By default, Failed Request Tracing might not be installed. You need to add it via Windows Features.

How to enable Failed Request Tracing in IIS?

Steps:

  • Open Server Manager (on Windows Server) or go to Control Panel > Programs > Turn Windows features on or off (on Windows 10/11).
  • Navigate to:
    Internet Information Services > World Wide Web Services > Health and Diagnostics > Failed Request Tracing
  • Make sure the checkbox is selected.
  • Click OK to install.

2. Enable Failed Request Tracing at the Site Level

Once installed, you must enable tracing for the specific site.

How to enable Failed Request Tracing in IIS?

Steps:

  • Open IIS Manager.
  • In the Connections pane, select the website you want to monitor.
  • Double-click Failed Request Tracing in the main panel.
  • Click Enable in the Actions pane on the right.

This creates a tracing folder under the site's directory (or logs folder) where log files will be stored unless configured otherwise.


3. Add Failed Request Tracing Rules

Tracing doesn’t log every request by default. You define rules based on status codes or request paths.

Steps:

  • With your site selected, click Failed Request Tracing Rules.
  • In the Actions pane, click Add…
  • Configure the rule:
    • Request path: Use * to apply to all requests, or specify a file/path (e.g., *.aspx, /api/*).
    • Status codes: Enter the HTTP status codes you want to trace (e.g., 404, 500, or 404,500,502).
    • Verbosity Level: Choose Verbose for maximum detail (includes all events), or lower levels to reduce log size.

Click OK to save the rule.


4. Understanding the Logs

When a request matches your rule:

  • IIS generates an XML log file in the configured directory (usually %SystemDrive%\inetpub\logs\FailedReqLogFiles\).
  • Each file contains a timeline of events: authentication, URL rewriting, handler mapping, etc.
  • You can open these XML files in a browser or use tools like Log Parser or IIS Failed Request Viewer (part of IIS Diagnostic Toolkit) for better readability.

5. Optional: Set Global Configuration (Advanced)

You can adjust global settings using applicationHost.config:

  • Location: %windir%\system32\inetsrv\config\applicationHost.config
  • Look for the <tracing> section.
  • You can change log directory, maximum log file size, and other settings.

Example:

<tracing enabled="true" directory="D:\IISLogs\FailedRequests" />

Notes:

  • Failed Request Tracing can generate a lot of data. Use rules selectively in production.
  • Make sure the IIS application pool identity has write permissions to the log directory.
  • For troubleshooting 500 errors, combine failed request logs with Windows Event Viewer and regular IIS logs.

That’s it. Once enabled and configured, you’ll get detailed insight into problematic requests. Just trigger the error (e.g., access a missing page), then check the logs.

The above is the detailed content of How to enable Failed Request Tracing in IIS?. For more information, please follow other related articles on the PHP Chinese website!

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undress AI Tool

Undress AI Tool

Undress images for free

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Hot Topics

PHP Tutorial
1488
72
Configuring Request Limits and Connection Timeouts in IIS Configuring Request Limits and Connection Timeouts in IIS Jul 08, 2025 am 12:36 AM

To limit the size of client requests, the maxAllowedContentLength parameter can be modified in web.config, such as setting it to 104857600 (100MB), and synchronizing the maxRequestLength of ASP.NET at the same time; to reasonably set the connection timeout time, it can be modified through the IIS manager or appcmd.exe command, with the default of 120 seconds, and the API scenario is recommended to set it to 30-90 seconds; if the request queue is full, you can increase MaxClientConn and QueueLength, optimize application performance, and enable load balancing to relieve stress.

Configuring HTTP Response Headers for Caching and Security in IIS Configuring HTTP Response Headers for Caching and Security in IIS Jul 07, 2025 am 12:23 AM

Configuring HTTP response headers in IIS to optimize cache and improve security can be achieved by setting cache-related headers and adding security response headers. 1. Set cache-related headers: By configuring the clientCache element in the web.config file, set the Cache-Control and Expires headers for static resources, for example, use cacheControlMaxAge to specify the cache time, and fine-grained control can also be performed for specific file types (such as .jpg), but avoid HTML page caching for too long. 2. Add security-related headers: Configure X-Content-Type-Optio through customHeaders in web.config

Configuring Directory Browsing Permissions and Behavior in IIS Configuring Directory Browsing Permissions and Behavior in IIS Jul 10, 2025 pm 02:08 PM

ToenableandcustomizedirectorybrowsinginIIS,firstinstallandenabletheDirectoryBrowsingfeatureviaServerManagerandIISManager;next,customizetheappearanceusingheaderandfooterHTMLsnippets;thenconfiguredefaultdocumentstopreventunintendeddirectorylistings;fin

Understanding the Difference Between IIS Virtual Directories and Applications Understanding the Difference Between IIS Virtual Directories and Applications Jul 06, 2025 am 12:58 AM

VirtualdirectoriesandapplicationsinIISdifferinindependenceandconfiguration.1.Virtualdirectoriesactasaliasestoexternalcontent,sharingtheparentsite’sapplicationpoolandconfiguration,idealfororganizingstaticfileswithoutduplication.2.Applicationsrunindepe

Configuring Shared Configuration for Multiple IIS Servers in a Web Farm Configuring Shared Configuration for Multiple IIS Servers in a Web Farm Jul 11, 2025 am 01:50 AM

SharedconfigurationinIISallowsmultipleserverstouseacentralizedapplicationHost.configfile,ensuringconsistencyacrossawebfarm.1.Itenablesallserverstopointtoasharedconfigurationlocation.2.SetupinvolvesusingaUNCpath,enablingthefeatureinIISManager,andimpor

Configuring Authentication Methods (Windows, Forms, Basic) in IIS Configuring Authentication Methods (Windows, Forms, Basic) in IIS Jul 09, 2025 am 12:51 AM

Windows authentication is suitable for internal applications and is automatically authenticated through domain accounts; the steps are to open IIS Manager, select a site, enable Windows authentication, and ensure HTTPS is used. Forms authentication is suitable for custom login pages. You need to configure the login URL and timeout time in web.config, and develop a login page to verify users, encrypt your password and use HTTPS. Basic authentication is lightweight but not secure. It is only used when HTTPS is enabled. It needs to be enabled in IIS and cooperate with local or domain accounts. Password leakage is often caused by ignoring HTTPS.

Securing IIS Against Common Web Vulnerabilities Securing IIS Against Common Web Vulnerabilities Jul 05, 2025 am 12:17 AM

Strengthening IIS security requires five steps: 1. Disable unnecessary functions and services, such as WebDAV, FTP, etc.; 2. Close the default website and test pages, delete or prohibit access to useless script directories; 3. Configure request filtering rules to prevent illegal extensions, directory traversal and super long URLs, and use URLs to rewrite and hide the real path; 4. Enable HTTPS and force jumps, and set security response headers such as HSTS, X-Content-Type-Options; 5. Regularly update system patches, enable logging and use tools to analyze abnormal access behavior. Through these measures, we can effectively prevent common attack methods such as SQL injection, XSS, directory traversal, and improve the overall security of the server.

Managing MIME Types for Specific File Extensions in IIS Managing MIME Types for Specific File Extensions in IIS Jul 08, 2025 am 02:07 AM

MIME type is a mechanism by which the server identifies file content types, and missing or incorrect configuration can cause resource loading to fail. There are two main ways to manage MIME types with specific extensions in IIS: 1. Add or modify them through the IIS manager graphical interface; 2. Configure in the web.config file. Common MIME types that need to be added manually include .webmanifest, .woff2, .svg, .mp4 and .pdf. Notes include inheritance issues, IIS version differences and browser cache impact. Proper configuration is essential to ensure that modern web resources are loading properly.

See all articles
v3是什么意思 寻常疣是什么原因造成的 母亲节要送什么礼物 导览是什么意思 尿道炎是什么症状
羊肉和什么菜包饺子好吃 哺乳期牙龈肿痛可以吃什么药 梦见死去的亲人是什么意思 无痛肠镜和普通肠镜有什么区别 11月20号什么星座
音序是什么意思 腿麻木是什么原因引起的 小月子同房有什么危害 o.o什么意思 乙肝表面抗原高是什么意思
带教是什么意思 羽立念什么 咖喱是什么材料做的 是什么单位 心脏长在什么位置
经常中暑是什么原因hcv8jop0ns1r.cn 幽灵蛛为什么不能打死hcv9jop0ns9r.cn 双子座和什么星座最不配hcv9jop8ns3r.cn 甲亢病是什么原因引起的hcv7jop5ns3r.cn 籽骨是什么意思520myf.com
甲钴胺片主要治什么病hcv8jop1ns3r.cn 做阴超有黄体说明什么hcv9jop0ns8r.cn 三头六臂是什么生肖hcv8jop3ns4r.cn 蛇为什么有毒hcv9jop0ns3r.cn 夏天喝什么水最好hcv9jop4ns5r.cn
子宫憩室是什么hcv9jop6ns3r.cn 如法炮制是什么意思hcv8jop4ns3r.cn 高密度脂蛋白胆固醇偏低是什么意思hcv9jop3ns0r.cn 小鱼际发红预示着什么hcv7jop9ns5r.cn 秋五行属什么hcv8jop3ns0r.cn
牙龈化脓是什么原因hcv9jop1ns5r.cn 澳大利亚属于什么气候hcv8jop8ns6r.cn 置换是什么意思adwl56.com 衍生物是什么意思cj623037.com 前列腺特异性抗原高是什么原因hcv7jop6ns8r.cn
百度