RDP logs: the Remote Desktop event IDs on both ends of a connection

RDP logs are the Windows event logs that record Remote Desktop connections: the Security log and four operational logs on the computer that was connected to, and the RDP client log on the computer the connection came from. Together they show who connected, from which address, when the session started, disconnected, reconnected and ended, and where the user went next.

WindowsSecurity and TerminalServices logsEvent IDs 21 to 25, 1149, 4624, 4778, 1024Checked 2 December 2026

Where Windows records RDP connections

A single Remote Desktop session is written to five logs on two computers. None of them tells the whole story, and they roll over at different rates, so an investigation reads all of them:

Log (channel)ComputerMain event IDsWhat it adds
SecurityDestination4624 (type 10, 7 or 3), 4625, 4778, 4779, 4647, 4634Account, Logon ID, logon type, source address; needs the audit policy
Microsoft-Windows-TerminalServices-RemoteConnectionManager/OperationalDestination1149, 261Who authenticated and from which address
Microsoft-Windows-TerminalServices-LocalSessionManager/OperationalDestination21, 22, 23, 24, 25, 39, 40Session logon, shell start, logoff, disconnect and reconnect, with session ID
Microsoft-Windows-RemoteDesktopServices-RdpCoreTS/OperationalDestination131, 98, 140TCP connections, including ones that never authenticated
Microsoft-Windows-TerminalServices-RDPClient/OperationalSource1024, 1102, 1029, 1026Which server the user connected to, and when it ended
SecuritySource4648Explicit credentials used toward the target

The operational logs need no audit policy and are on by default, which makes them the most dependable RDP record on many hosts. They are separate files in C:\Windows\System32\winevt\Logs, named after the channel with %4 in place of the slash, for example Microsoft-Windows-TerminalServices-LocalSessionManager%4Operational.evtx.

RDP event IDs on the computer that was connected to

Event IDLogMessageKey fieldsMeaning in an investigation
131RdpCoreTSThe server accepted a new TCP connection from client IP:portClient address and portA connection reached the RDP listener, whether or not it authenticated
140RdpCoreTSA connection from the client computer failed because the user name or password is not correctClient addressFailed RDP authentication; useful for brute force when 4625 auditing is off
1149RemoteConnectionManagerRemote Desktop Services: User authentication succeededUser, Domain, Source Network AddressNetwork authentication succeeded (see the note on NLA below)
4624SecurityAn account was successfully logged onLogon type 10 (new session), 7 (reconnect on some versions), 3 (NLA pre-authentication)The logon session, with Logon ID
21LocalSessionManagerRemote Desktop Services: Session logon succeededUser, Session ID, Source Network AddressA new session was created for the user
22LocalSessionManagerRemote Desktop Services: Shell start notification receivedUser, Session ID, Source Network AddressThe desktop started: the user is in
24LocalSessionManagerRemote Desktop Services: Session has been disconnectedUser, Session ID, Source Network AddressWindow closed or network dropped; the session keeps running
25LocalSessionManagerRemote Desktop Services: Session reconnection succeededUser, Session ID, Source Network AddressAn existing session was picked up, possibly from a different address
39, 40LocalSessionManagerSession X has been disconnected by session Y; disconnected, reason code ZSession IDs, reasonWho or what caused a disconnect, including one session taking over another
23LocalSessionManagerRemote Desktop Services: Session logoff succeededUser, Session IDThe user signed out
4778 / 4779SecurityA session was reconnected to / disconnected from a Window StationSession name, client name, client addressReconnects and disconnects, with the client's computer name
4647, 4634SecurityUser initiated logoff; An account was logged offLogon IDThe end of the session

About 1149. Despite its message, 1149 is best read as "a network connection got far enough to identify a user". With Network Level Authentication (the default on current Windows), it follows successful authentication. Without NLA, the user name is sent before the password is checked, so 1149 can appear for attempts that then fail at the logon screen. Confirm with 4624 or event 21.

Reading an RDP session from start to finish

A new connection to a Windows 10 or 11 workstation or a Windows Server, with NLA, usually appears in this order on the destination:

131      RdpCoreTS             TCP connection accepted from 10.0.0.15:52144
4624     Security              logon type 3 (NLA authentication) for CORP\jsmith
1149     RemoteConnectionMgr   User authentication succeeded: jsmith from 10.0.0.15
4624     Security              logon type 10 for CORP\jsmith, same source address
4672     Security              special privileges (if the account is an administrator)
21       LocalSessionManager   Session logon succeeded, session ID 2
22       LocalSessionManager   Shell start notification received
  ... activity in the session (processes, files, PowerShell) ...
24       LocalSessionManager   Session has been disconnected      (window closed)
4779     Security              Session disconnected               (if auditing is on)
25       LocalSessionManager   Session reconnection succeeded     (later, maybe another address)
4778     Security              Session reconnected
23       LocalSessionManager   Session logoff succeeded
4647     Security              User initiated logoff
4634     Security              An account was logged off

Three joins hold the timeline together: the source address (in 131, 1149, 4624, 21, 24 and 25), the Session ID (in the LocalSessionManager events) and the Logon ID (in the Security events, which also leads to everything the session ran). A reconnect from a different address than the original logon is worth checking: someone may have picked up a session they did not start.

RDP evidence on the computer the connection came from

Lateral movement means the source of one RDP connection is often a host the attacker already controls. Its records say where they went next:

  • RDPClient log. Event 1024 ("RDP ClientActiveX is trying to connect to the server") names the server as typed; 1102 records the address the client connected to; 1026 records the disconnect, with a reason code. 1029 holds a hash of the user name, which can be matched against candidate accounts.
  • 4648. When saved or typed credentials for another account are used, the source logs a 4648 naming the target server and account.
  • Terminal Server Client registry. The user's NTUSER.DAT keeps the most recent servers (Default\MRU0 to MRU9) and, under Servers, every server connected to with a UsernameHint.
  • Saved credentials. cmdkey /generic:TERMSRV/<host> stores a password for an RDP target in Credential Manager; the command line is evidence in process creation logs.
  • Bitmap cache. %LOCALAPPDATA%\Microsoft\Terminal Server Client\Cache holds image tiles of the remote screen, which can be reassembled to show what the user saw. Arcsentry records the cache files' metadata.
  • Execution evidence. mstsc.exe in Prefetch and its jump list (recent connections), and a hidden Default.rdp in the user's Documents folder.

Failed RDP logons and brute force

With NLA, a wrong password is rejected before a session exists. On the destination this appears as 4625 with logon type 3, not 10, and as RdpCoreTS 140; there is no 1149 and no 21. Analysts who filter 4625 on type 10 miss nearly all RDP password guessing for this reason. Count failures per source address across 4625 (type 3, with the workstation name of the client) and 140, then look for the first success from the same address in 4624 and 1149.

RDP exposed to the internet attracts constant guessing from many addresses. The question that matters is not how many attempts there were but whether any address that guessed also succeeded, and what the session did next.

Gateways, VPNs and the real source address

The source address in the destination's logs is the last hop, not necessarily the user. Three common setups change what it means:

  • Remote Desktop Gateway. Connections from outside arrive through the gateway, so the session host records the gateway's address. The gateway's own log, Microsoft-Windows-TerminalServices-Gateway/Operational, records the real client: event 302 when a user connects to an internal resource and 303 when they disconnect, with the client address, the target and the bytes transferred.
  • VPN. The address is one from the VPN pool. Match it to the VPN appliance's logs for the time of the connection to find the account and the public address behind it.
  • Jump hosts. Administrators often connect to a jump server and then onwards. Each hop is a separate RDP session with its own records on each host, and the chain is rebuilt by matching the RDPClient log on one host to the LocalSessionManager log on the next.

A public address appearing directly in 131, 140 or 1149 on an internal host means RDP is reachable from the internet, which is worth reporting whether or not any logon succeeded.

Session take-over and hijacking in the logs

Not every RDP session starts with a new logon. Three situations look different from a normal connection:

SituationHow it shows
Connecting as a user whose console session is logged onThe console session disconnects and is reconnected over RDP: 4779 then 4778 in Security, and 24 then 25 in LocalSessionManager, all within a second or two
Hijacking another user's disconnected session with tsconA reconnect (25 and 4778) for the victim account with no matching authentication (no 1149, no new 4624 for that account), event 39 naming the session that forced the switch, and tscon.exe in process creation, usually running as SYSTEM
Shadowing a sessionAn administrator viewing or controlling another user's session with mstsc /shadow; the RemoteConnectionManager log records the shadow request, and the policy setting decides whether the user is asked

The take-over of a logged-on console session is the one that most often appears in real cases, because attackers who guess a user's password connect while the user is still logged on at their desk. Everything the user had open becomes visible to the attacker.

How far back RDP logs reach

Each operational log is a separate file with its own maximum size, and it overwrites its oldest records when full. On a workstation that rarely receives RDP connections, the LocalSessionManager and RemoteConnectionManager logs often reach back months, long after the Security log has rolled over. On a busy Remote Desktop server, they may cover only days. Before stating that a user never connected, read the oldest record in each RDP log you hold, and check for a log clearing event in the System log.

In a real investigation: Halden Freight office intrusion

In our lab case the attacker reached two workstations over RDP, and both ends of the second hop were recorded:

Time (UTC)HostRecordWhat it showed
22:05:03HF-WS014624 type 3a.berg authenticated from 10.211.55.2 after 35 failed logons
22:05:05HF-WS014624 type 10Remote Desktop logon for a.berg from 10.211.55.2
22:05:06HF-WS01LocalSessionManager 25a.berg's console session reconnected from 10.211.55.2: the attacker took over the logged-on desktop
22:10:54HF-WS01Process creationcmdkey stored a TERMSRV/HF-WS02 credential for HF-WS02\m.lund
22:10:58HF-WS01Process creation; RDPClient 1024mstsc /v:HF-WS02 /f; client connecting to HF-WS02
22:10:59HF-WS014648Explicit credentials for HF-WS02\m.lund toward HF-WS02
22:10:59HF-WS024624 type 3, then type 7 at 22:11:01m.lund arriving from 10.211.55.6 (HF-WS01)
22:13:45HF-WS01RDPClientConnection to 10.211.55.7 ended

The source side gave the target and the account before the destination logs were opened, and the destination side confirmed it with its own records. On HF-WS02 the logon was recorded as type 3 then type 7 rather than type 10, a reminder not to filter RDP on logon type 10 alone.

Finding RDP sessions in Arcsentry

Each RDP log becomes its own event type in Arcsentry (for example evtx_microsoft_windows_terminalservices_localsessionmanager_operational and evtx_microsoft_windows_terminalservices_rdpclient_operational), with the user and source address in common fields, and logon, disconnect and reconnect events are rebuilt into sessions automatically. This query, from the AQL reference, lists Remote Desktop sessions by user and source address with the LocalSessionManager log selected:

filter event_code in ("21", "25") && source_ip != "LOCAL"
group {user_name, source_ip} (aggregate {n = count this})
sort {-n}

In the Halden case it returns the take-over of a.berg's session from 10.211.55.2. The AI investigator reads the same logs on both hosts and links the hops into one lateral movement chain, citing each event.

RDP artifacts Arcsentry parses

Beyond the event logs, these parsers recover RDP history on the source computer, including connection managers that administrators (and attackers) use to keep lists of servers:

ArtifactWhat Arcsentry extracts
Windows Event LogsParses Windows Event Log (.evtx) files.
TerminalServerClientRemote Desktop (RDP) connection history with server names and username hints.
RDP CacheCollects Remote Desktop bitmap cache file filesystem metadata.
RDCManRemote Desktop Connection Manager RDG files with server lists.
mRemoteNGmRemoteNG connection manager configs and logs.
Remote Desktop ManagerDevolutions Remote Desktop Manager saved connection names and types, connection log and configuration.

Frequently asked

Where are RDP logs stored?

In C:\Windows\System32\winevt\Logs. On the computer that was connected to: Security.evtx and the TerminalServices-RemoteConnectionManager, TerminalServices-LocalSessionManager and RemoteDesktopServices-RdpCoreTS operational logs. On the computer the connection came from: the TerminalServices-RDPClient operational log.

What is event ID 1149?

Remote Desktop Services: User authentication succeeded, in the TerminalServices-RemoteConnectionManager operational log. It records the user, domain and source address of an RDP connection. With Network Level Authentication it follows successful authentication; without it, it can appear for attempts that later fail.

What is event ID 21?

Remote Desktop Services: Session logon succeeded, in the TerminalServices-LocalSessionManager operational log. It records the user, session ID and source address when a new RDP session is created.

What is the difference between event ID 24 and 25?

24 records an RDP session being disconnected without signing out; 25 records an existing session being reconnected. Both are in the LocalSessionManager operational log with the user, session ID and source address.

How do I see who logged on with RDP?

Read event 21 and 25 in the LocalSessionManager log and 1149 in the RemoteConnectionManager log for user and source address, and 4624 with logon type 10 (or 7) in the Security log for the Logon ID. On the client side, the RDPClient log and the Terminal Server Client registry key show where a user connected to.

What RDP evidence is on the computer the connection came from?

The TerminalServices-RDPClient operational log (1024 and 1102 for the server and address, 1026 for the disconnect), 4648 when other credentials were used, the Terminal Server Client registry key in the user's NTUSER.DAT, the RDP bitmap cache, and mstsc.exe in Prefetch.

How do I find failed RDP logins?

With Network Level Authentication, failed RDP passwords appear as 4625 with logon type 3, not 10, and as RdpCoreTS event 140. Count failures per source address and look for a later success from the same address.

Sources

  • Microsoft Learn: Remote Desktop Services; 4624(S) An account was successfully logged on; 4778(S) and 4779(S)
  • MITRE ATT&CK: T1021.001 Remote Desktop Protocol; T1563.002 RDP Hijacking
  • Venema Labs lab case: Halden Freight office intrusion, HF-WS01 and HF-WS02 Security, LocalSessionManager and RDPClient logs

Checked 2 December 2026 by Venema Labs. Parser coverage is generated from the Arcsentry build the artifact library describes.

Rebuild every RDP session across your hosts in minutes

Tell us what you want to investigate. A person replies within one business day with the download and a trial licence.

Request a trial