Questions tagged [iis-logs]
75 questions
1
vote
1 answer
IIS Logs do not show the message logged
I am trying to log the entire exception to the IIS log in the following way:
public void OnTransientFaultOccurred(object sender, RetryingEventArgs e)
{
_httpResponse.AppendToLog(string.Format("RetryCount:{0}", e.CurrentRetryCount));
…

Sid
- 77
- 1
- 9
1
vote
1 answer
Can't open IIS w3c log vb.net
I have been writing an app in vb.net to copy the last few lines of an IIS W3C log file every few minusts to A file that will be used for some remote reporting.
Everything works when I test on my local PC but when I try it on the live IIS server it…

Shane
- 321
- 3
- 10
1
vote
1 answer
Why use To_Localtime when analyzing IIS logs
I've searched for several examples to analyze IIS logs using the Log Parser, taking time into account... For example, this query that shows the number of hits per hour:
SELECT
QUANTIZE(TO_LOCALTIME(TO_TIMESTAMP(date, time)), 3600) AS Hour,…

mahiro
- 65
- 2
- 6
1
vote
2 answers
Safe to Run LogParser Against Live Production IIS Log?
Is it safe to run LogParser against our live production IIS log file?
Currently, I have been copying it over to another location and then running LogParser 2.2 against the log file.
Instead, I would really like to run it against the live data so…

Elijah Manor
- 17,923
- 17
- 72
- 79
1
vote
1 answer
Azure Service Bus Relay - Monitoring Request Traffic
We use the Azure Service Bus Relay to expose internal WCF services externally, but when trying to correspond our external service usage with IIS logs - we come up short since there are no entries for Service Bus relay requests in the web server log.…

SliverNinja - MSFT
- 31,051
- 11
- 110
- 173
1
vote
0 answers
Reading IIS Error logs
I need to get all the IIS errors to display on a web page.i have tried to use LogParser but could not get it working with c# code.are there any other way to read only the errors from Logs and display them on a web page?

chamara
- 12,649
- 32
- 134
- 210
1
vote
2 answers
How to get piece by piece data from WCF service
I have created a .Net app which allows to query IIS logs of some web servers.
The app calls WCF service to get data. WCF service location has the IIS logs in place.
The WCF service internally calls Logparser on the IIS log files and returns the…

Souvik Basu
- 3,069
- 4
- 28
- 42
0
votes
1 answer
will IIS keep track of the parameters sent to a post action method
I have the following Post action method which accept username & password, connect to Active Directory and get the user info in JSON format after validating the credentials:
[HttpPost]
public ActionResult UserInfo(string username, string…

John John
- 1
- 72
- 238
- 501
0
votes
0 answers
How can I pump near real-time IIS log data into a SQL database?
Prior to Windows Server 2022 we used "Advanced Logging" to rollover a file every minute to read and save to a table. Unfortunately Microsoft has removed this tool on 2022 so we have no way to get real-time data about requests coming in across our…

Agile Noob
- 2,305
- 4
- 24
- 35
0
votes
1 answer
Azure App Service with windows container http logs are missing the cs-username
I have an asp.net 5 web application on .NET Framework 4.8 running as an azure app service with a windows server 2019 container image. I setup a diagnostic setting to send the 'AppServiceHTTPLogs' to an event hub and when inspecting the logs, I…

Huzaifa Tapal
- 111
- 1
- 4
0
votes
0 answers
Why does IIS care if "convert" is misspelled in a query string?
I am trying to understand the behavior of a classic ASP page, to gain insight into injection vectors by looking at the IIS log and the behavior on a browser.
From the browser, I noticed that sometimes a page is never requested, depending on the…

user1693404
- 173
- 1
- 12
0
votes
1 answer
capture/trace custom request header - iis
I would like to capture URL requested and its sequence. And also like to know resources (.JS,.CSS and images) requested for each page.
one option is to use IIS logs. but here i am not able to bind resources with page requested.
since my web pages…

Krishna
- 486
- 8
- 20
0
votes
1 answer
Custom field in IIS log has "-" for value for certain Paths
I have configured the following rewrite rule in an ASP.NET application's "web.config" hosted on IIS:
…

Amir Keibi
- 1,991
- 28
- 45
0
votes
1 answer
Azure IIS HTTP logs monitoring - NO RESULTS FOUND
I'm struggling with getting some very basic IIS HTTP log data available for querying at Azure Monitor > Logs.
Here are my settings so far:
App Service
App Service logs: Web server logging - File System
Diagnostic settings: Send to Log Analytics
log:…

Armin L.
- 21
- 3
0
votes
1 answer
Is there any KQL queries to extract page views, download counts from the W3C IISlogs on Azure-Log analytics?
We're trying to extract page views, file download count, users list from w3c IIS logs. we want to define what's page view, i.e. any user stayed on same page more than 10 sec to be a one page view. anything less is not a page view. w3c logs doesn't…

Raj
- 15
- 6