· 7 min read · Mert Tati
Tracking Suspicious WordPress Logins: How to View Security Logs
How to track suspicious WordPress logins and view security logs: spotting failed login spikes, XML-RPC attempts and reading your logs the right way.
Short answer: to track suspicious logins in WordPress, you need a log that records failed login attempts with the IP, username, time and the door they came through (login page, XML-RPC, REST). WordPress doesn't keep this by default; you either read the server's access logs or use a security plugin to log events inside WordPress. The real work isn't keeping a log; it's reading the right patterns and getting alerted to lockouts in time.

Does WordPress keep a login log on its own?
No. WordPress doesn't record failed logins; it only stores successful sessions tied to each user. You can't see from the dashboard that a bot tried hundreds of passwords overnight. That's why you need two sources: the raw access logs kept by the server, and a security log inside WordPress that makes sense of the events.
Server access logs vs. plugin logs
- Server access logs (Apache, Nginx, LiteSpeed): record every HTTP request with IP, time, URL, response code and User-Agent. They're complete but raw: they don't tell you whether a POST request was a successful login or a wrong password. You access them from your hosting panel or the log folder on the server.
- Plugin (application) logs: because they run inside WordPress, they know what an event means: which username was tried, whether the login failed, whether the IP was locked out, which door the request came through. On the other hand, they only see requests that reach PHP.
- CDN logs: if the site sits behind a CDN like Cloudflare, requests that never reach the server only show up there.
A word of caution: if the site is behind a CDN or proxy, the IP in the server log may be the address of the intermediate server, not the visitor. Make sure the real IP is read correctly in both your server logs and your security plugin; otherwise every attempt will look like it comes from a single address.
How to spot a suspicious login: signs to look for
- Failed login spikes: many failed attempts in a short time from the same IP or the same network.
- Nonexistent usernames: attempts with names that don't exist on your site, such as admin, administrator, test or your domain name, are the signature of an automated attack.
- Your real username being tried: if the attacker knows the correct name, it's leaking from somewhere; check for username leaks.
- Unexpected hours: attempts or logins in the middle of the night when your team never works.
- New or unusual IPs: administrators logging in from a network never seen before.
- xmlrpc.php and REST attempts: if attempts keep coming even though you've hidden your login page, they're most likely coming through another door.
- IPs that return after a lockout: the same address starting again as soon as its lockout expires.
- 2FA or application password failures: a failed second step following a correct password suggests the password may have leaked.
How to view security logs, step by step

- In your hosting panel (cPanel, CyberPanel, Plesk), open the access log and filter POST requests to wp-login.php, xmlrpc.php and wp-json.
- List the IPs sending the most requests and the User-Agents they use; if a single address or a few addresses from the same network stand out, make a note.
- On the WordPress side, open your security plugin's history screen and filter failed attempts, lockouts and blocked requests separately.
- Look at the usernames being tried: if one of your real usernames is on the list, change that account's password and turn on 2FA.
- Look at the source: if attempts come through XML-RPC, close that door; if they come through the login page, hide your login URL and tighten the attempt limit.
- Turn on lockout alerts so next time you hear about it without having to dig through the logs.
Locking out failed logins isn't the topic of this article but of our guide to blocking brute-force attacks; here we focus on reading the logs. Your last line of defense against an attacker who has the correct password is WordPress two-factor authentication.
What logs don't show
A login log shows movement at the door; it doesn't show what someone did once inside. To track actions such as which plugin an administrator installed, which setting they changed or which user they deleted, you need a separate activity log tool. Monitoring file changes is the job of a server-side file integrity solution. If you're not sure what changed on your site after a suspicious login, check the scan types in our article on security scanning and vulnerability detection.
Tracking suspicious logins with Hushfort
The Limit Login & Alerts module in the Hushfort WordPress security plugin records login-side events inside WordPress and makes them readable:
- Timeline: shows failed attempts over the last 14 days, day by day, and flags days with lockouts separately, alongside summary cards for the last 24 hours and the last 7 days.
- History tab: lists every event with time, IP, username tried, source and type columns. The source column shows whether the attempt came from the login page, XML-RPC or the REST API.
- Filters: switch between All, Failed, Blocked and Blocked probes with one click.
- Blocked probes: the Surface Hardening module also writes requests to closed surfaces such as XML-RPC and author enumeration to History, at most one entry per IP every 15 minutes so the table doesn't balloon during an attack.
- 2FA and application password failures also count toward the lockout counter, so someone who arrives with the correct password but fails the second step is visible and gets limited too.
- Lockout alert email: goes to multiple comma-separated addresses and uses the site's SMTP setup if one is configured.
- You can unblock an IP from the active blocks list with one click, or manually block a suspicious IP from History (login is closed to it for the long lockout duration, 24 hours by default). Addresses on the allowlist are never blocked.
- Behind Cloudflare or a proxy, the real IP is read from the header only if the request really comes from that network, so the log can't be polluted with spoofed headers.
Records other than logins are kept in their own tabs: the Spam Shield quarantine, Registration Protection's suspicious and pending accounts, and Load Protection's recent blocks with reason, IP and User-Agent. Hushfort has no administrator activity log and no IP country information; for those needs you'll have to use a separate tool.
Weekly log review checklist
- Is there an unusual spike in the timeline?
- Is one of your real accounts among the usernames being tried?
- Which source are attempts coming from, and is there a door left that should be closed?
- Is the same IP or network getting locked out again and again?
- Are there any 2FA or application password failures logged?
- Do lockout alerts reach the right addresses? Confirm with a test lockout.
- Are your office IP and integration services on the allowlist?
If you manage several WordPress sites, doing this check on each one separately takes time. Our Izmir-based team can monitor your server logs and the WordPress side together as part of our software and hosting service.
Frequently asked questions
Is it normal to see failed login attempts every day? Yes. Every live WordPress site gets bot attempts. What matters is a sudden spike in the numbers, real usernames being tried and locked-out IPs coming back.
I hid my login URL, but there are still attempts in the log. Why? The attempts are most likely coming through XML-RPC or REST. Check the source column and disable XML-RPC login if needed.
How long should I keep security logs? A few weeks of records is usually enough to investigate an incident after the fact; keeping them much longer bloats the database. Because logs contain personal data such as IP addresses, also consider the retention period under KVKK (Turkey's personal data protection law); consult your legal advisor for current regulations.
What should I do if I see a successful but suspicious login? Change that account's password, turn on 2FA, end all sessions and check the site for users, plugins or files you don't recognize. If there are signs of compromise, follow the post-hack recovery steps.
Summary: WordPress doesn't record failed logins itself, so use server logs and a security log inside WordPress together. Watch for failed attempt spikes, nonexistent and real usernames, the time of day and the door each attempt came through; get alerts on lockouts and keep your allowlist up to date.