Windows

Failed to Load penimc.dll and Related Problems

Posted on

Following on from a series of recent Windows Updates, a couple of our servers had a problem running Server Manager (“Server Manager has stopped working”) and SQL Management Studio (“Failed to Load penimc.dll”). The details of the Server Manager error were in the event log: Application: ServerManager.exe Framework Version: v4.0.30319 Description: The process was terminated […]

Programming

Log Phising Attack

Posted on

n an error log or HTTP log phising attack, a deliberately bad request is generated with a fake referer string. The hope is that the referer string will be displayed in your cool web-based log aggregation and monitoring service as a hyperlink – tempting operations teams to click on the link as it might explain […]

Programming

Using Log Parser Studio to Find Common 500 Errors

Posted on

The following Log Parser Studio query will find common erroring URLs. You could adapt this to find common addresses for other status codes too. SELECT TOP 20 cs-uri-stem, COUNT(*) AS Total, MAX(time-taken) AS MaxTime, AVG(time-taken) AS AvgTime FROM ‘[LOGFILEPATH]’ WHERE date > SUB(TO_LOCALTIME(SYSTEM_TIMESTAMP()), TIMESTAMP(‘0000-01-02 00:00’, ‘yyyy-MM-dd HH:mm’)) AND sc-status = ‘500’ GROUP BY cs-uri-stem ORDER […]

Windows

Free Up Windows Update Disk Space

Posted on

If you are regularly updating your servers, you may notice that after re-starting the disk space is not actually given back (i.e. the temporary files downloaded for the update remain). This is because the files are typically still needed during the first re-start as the installation completes as part of this process. The simple fix […]

Programming

Use Log Parser Studio To Get List Of Top IP Ranges

Posted on

If you are getting suspicious traffic, it often comes from a range of IP addresses. The below queries get the count using the first three octets of an IP address, so for “192.168.0.1” it will return “192.168.0” and a count of all traffic for the 192.168.0.1/24 range (192.168.0.1 – 192.168.0.255). To get the first three […]

Programming

Log Parser Studio Custom IIS Log Queries

Posted on

If you want to add my set of Log Parser Studio custom queries to your LPS library, follow these instructions… Note: if you want to merge these with your existing queries, just copy the inner nodes into your LPS library file – if you just want to use my custom set without searching through the […]

Windows

Add X-Forwarded-For IP Address to IIS Logs

Posted on

If you are using a load balancer, the chances are your IIS Logs are full of entries with the IP address of your load balancer, rather than the IP address of your end user. Most load balancers will allow you to send the IP address in an alternate header, for example the X-Forwarded-For header. This […]