Technical Anshu
Tutorials Blog
📜 IIS FTP Logs

Read IIS FTP Logs Find Failed Logins and Brute Force Attacks

An FTP server open to any network is being tested by strangers. The log file is where they confess — here is how to read it before their script succeeds.

✍️ Technical Anshu🪟 IIS FTP Server⏱️ 8 minute read
🎥 The full deployment is in the video — the FTP feature install, users, folder permissions, firewall and passive mode, shown live step by step

IIS FTP keeps a plain-text diary of every connection, login and transfer — most admins never open it. That diary answers the questions that matter: who logged in, who failed, and is someone hammering the server with password guesses right now? This page shows where the log lives, how to read its lines without a manual, and the pattern that means brute force. Five minutes here is the cheapest security work in this whole series.

FTP Log Lines — One Success, One Attack Beginning
2026-01-14 09:12:03 192.168.1.25 - ftp-delhi [12]USER ftp-delhi 331 2026-01-14 09:12:03 192.168.1.25 - ftp-delhi [12]PASS - 230 0 2026-01-14 09:13:41 185.220.10.44 - - [13]USER administrator 331 2026-01-14 09:13:41 185.220.10.44 - - [13]PASS - 530 1326 2026-01-14 09:13:42 185.220.10.44 - - [14]USER admin 331 2026-01-14 09:13:42 185.220.10.44 - - [14]PASS - 530 1326
Simplified lines in the real log's spirit: 230 is a successful login; repeated 530 lines from one foreign IP, seconds apart, are a password-guessing script at work.
1

Where the Log Lives and How to Switch It On

In IIS Manager, open the FTP site → FTP Logging and confirm logging is enabled. The default folder is C:\inetpub\logs\LogFiles, with one subfolder per site such as FTPSVC1, and one file per day. Log files are plain text — Notepad opens them fine. If the folder is empty, logging was off; enable it today, because a log that starts tomorrow cannot tell you about yesterday. Also confirm the logged fields include client IP, username, method and status — the defaults do.

2

Reading a Line Without a Manual

  1. Each action is one line: date, time, client IP, then the command (USER, PASS, RETR for download, STOR for upload) and finally the result code.
  2. 230 after PASS = the login succeeded. This is the line that matters most in an investigation.
  3. 530 after PASS = the login failed. A sub-status of 1326 means bad username or password; the 530 page in this series covers the other causes.
  4. 550 = logged in, but the action was refused — permissions, not credentials.
  5. A successful STOR from an account that should only read is a finding, not a curiosity — your authorization rules need review.
3

The Brute Force Signature

A guessing attack is boring to look at, which is why it hides: hundreds of 530 lines, from one IP, seconds apart, cycling through usernames — administrator, admin, your company name, your real users. Scan today's file quickly from a command prompt in the log folder:

  1. findstr /C:" 530 " u_ex*.log lists failed logins across recent files.
  2. In PowerShell, group failures by IP to see the attacker instantly: Select-String -Path "C:\inetpub\logs\LogFiles\FTPSVC1\*.log" -Pattern " 530 " then review the addresses that repeat.
  3. Count the 230s too. Failed attempts are noise; one 230 from an IP that also owns five hundred 530s means the guessing worked — that is an incident, not a statistic.
4

What to Do the Minute You Find It

  1. Block the IP in Windows Firewall with an inbound block rule while you think — it takes a minute and stops the bleeding.
  2. Check for a successful login from that IP (above). If one exists, treat the account as compromised: change its password and review what it touched.
  3. Kill the root causes: no account named admin or administrator for FTP, strong unique passwords, anonymous access off.
  4. Shrink the target: scope the FTP firewall rules to your LAN or branch addresses if the world does not need a route to port 21 — the firewall page shows how.
  5. For an internet-facing server, graduate to FTPS or SFTP and consider it urgent, not scheduled. Attackers automate; your defence cannot be a weekly manual log read forever.
5

Keep the Diary Habit Small and Real

Logs nobody reads are compliance theatre. The working habit is modest: a two-minute scan once a week — count today's 530s, glance at the foreign IPs among the 230s, done. Note the date you checked. The first week you do this you will learn your server's normal rhythm, and after that the abnormal jumps off the page.

🔴 One rule before anything else: classic FTP sends the username, the password and every file in plain readable text. Inside a trusted office LAN it still has honest uses. On the open internet it does not — there the answer is FTPS or SFTP, and these pages will keep saying so.

🎥 Watch the Complete FTP Server Deployment

The video sets up the whole FTP server on Windows live — including the fast automated route — so you can follow it on your own server, click by click.

▶️ Watch Full Video
❓ Common Questions (FAQ)

FTP failed logins do not appear in Windows Event Viewer — is that normal

Yes. IIS FTP records its own log files under C:\inetpub\logs\LogFiles; failed FTP logons are not written to the Windows Security event log the way some other services do. The text log is the record — which is why enabling it matters.

Can I see who downloaded a specific file last week

Yes — search the log files for the filename; downloads appear as RETR commands with the username and client IP on the same line. This only works as far back as your log files are kept, so do not let old logs be deleted thoughtlessly.

Hundreds of 530s but no successful login — am I safe

For today, the door held. But the attempts prove your server is on the attackers' lists permanently. Strong passwords, no obvious usernames, firewall scoping and FTPS or SFTP are the durable answers — the noise will not stop on its own.

This guide is based on the Technical Anshu video — Windows FTP Server Deployment Guide for IT Admins • Stuck on a step — ask in the video comments and you will get an answer there 🙏