VPN Log Files Windows
Expanding on @pbhj's answer, I successfully found logs following these instructions, summarized here:
- Navigate through the Start menu to get to the event Viewer: Start > Control Panels > Administrative Tools > Event Viewer.
In the Actions pane, select Create Custom View or Filter Current Customer View.
Select the event severities (e.g., Critical, Warning, Error, Information, etc.) listed under the Event level option.
- Click the Event sources pull-down menu and select the event sources that you would like to see, for example: VPN Client - vpnagent, vpnui; DHCP - DHCP-Client; Native VPN - RasMan, RasClient, Remote Access.
- Save the filter to Custom View.
- Select the log event in the event browser page (top).
- Event Properties in the middle pane has the log details for an event. Double-click an event to bring up a new Event Properties window in addition to the Event Properties pane.
I used specifically "RasClient", and found this Error level log in the Custom view:
CoId={53F1C7C6-B011-4453-B2D5-C0F82ED8E590}: The user {domain}{username} dialed a connection named {target VPN connection} which has failed. The error code returned on failure is 789.
(Note I was looking for logs because my VPN errored, not because I wanted to see my VPN history as in OP's question)
There are relevant log files in \WINDOWS\system32\LogFiles
that may help. There is also system information available from the Event Viewer (Run > eventvwr.exe
OR Control Panel > Admin Tools > Event Viewer
) and look for System logs.
However, both these locations could be empty depending on local settings.
One can configure Windows firewall to log VPN connections but that is not a default. Check Control Panel > Windows Firewall > [Advanced tab]
, the default location is C:\WINDOWS\pfirewall.log
for the log file.
Specific applications used may have preserved log data. If you know the IP address connected too you could do a general search for files containing that IP address (but that wouldn't find compressed logs or non-ASCII log data).