Access logs and legal export (Law 5651 in Türkiye)
Access logs under Law 5651 in Türkiye: reaching the records in the panel, verifying daily seals, legal export and official requests.
Türkiye: Law 5651
This page describes access logs for venues in Türkiye, where Law No. 5651 requires them. In other countries the retention period, identity fields and export format come from the compliance profile of your country; the panel names the screen Access logs there.
Hotspotly stores the Law 5651 access records of guest sessions (internal IP, MAC, session start and end, verified identity) in an immutable store. Each day's log file is sealed and its integrity can be verified from the panel. Destination IPs and visited sites are not recorded.
What is collected automatically
When you run portal provisioning on your router, Hotspotly writes the settings that logging needs to the router itself. You do not have to enable anything by hand:
| Record | Setting on the router |
|---|---|
| Guest sessions | RADIUS accounting on in the hotspot profile, interim update every 5 minutes |
| DHCP leases (IP ↔ MAC) | use-radius=accounting on the DHCP server of the hotspot interface |
| Router logs | A remote syslog action named hotspotly; DHCP and hotspot topics go through the tunnel |
| Correct time | NTP client and time zone |
Records travel over the VPN tunnel, so you do not need to open any internet-facing port on your router. See Portal provisioning for the details.
Reach your records in the panel
Open Log from the left menu. The Access logs screen has five tabs:
- Events: session start and stop records, with identities masked.
- Sessions: open and closed sessions.
- Seals: each day's sealed log file. Verify recomputes the file, the seal chain and the Merkle proof and compares them.
- Exports: a ZIP with the seal and proof files for the range you choose. Large ranges are prepared in the background; download them from the list when ready.
- Legal requests: letters from prosecutors, police or courts. You can record a request, attach an export to it and stop destruction of the affected days with a legal hold.
Search uses exact or prefix matching only; for example 10.5.50.* is a prefix search. Dates and times are in Istanbul time, and the end of a range is exclusive.
::: info Access audit Every view, search, verification and export of access log records is logged with who, when and which filters. Identities are shown masked. :::
Who sees what?
- Customer: only its own records.
- Reseller: read-only access to its customers' records. Resellers cannot open official requests or place legal holds.
- Admin: all customers' records.
Every access is logged.
Timestamps
Daily seals are timestamped by the TÜBİTAK Kamu SM timestamp service. Until the subscription is active, seals wait without a timestamp and are stamped retroactively once it is enabled; no records are lost.
Check the settings on the router
After portal provisioning you can confirm the settings in the router Terminal with the commands below. They only read; they change nothing.
What to expect:
- The
hotspotlyaction showstarget=remote, and its remote address is the server's tunnel IP. - The
/radiusentry hashotspotanddhcpin itsservicefield. - The hotspot profile shows
use-radius=yes,radius-accounting=yesandradius-interim-update=5m. - The date and time are correct. If the clock is wrong, the log timestamps are wrong too.
Tip
If any of these settings are missing, do not fix the router by hand. Run portal provisioning again from the device detail page; Hotspotly fills in the missing settings itself.
When an official request arrives
When a letter from a prosecutor, police or court arrives, follow four steps:
- Record the request on the Legal requests tab and put the affected days on legal hold.
- Produce the legal export linked to the request.
- Verify the evidence with the
dogrula.shscript inside the ZIP. - Hand over the ZIP with its SHA-256 and close the request as fulfilled.
Detailed procedure, ZIP contents and requests that only give a public IP: Official request procedure.
Retention
Records are kept for 2 years plus a short buffer, then destroyed in daily partitions with a destruction record. Days under a legal hold are not destroyed.
Data protection notes
- Law 5651 logs contain personal data (IP, MAC, identity details). Share exported files only with authorised people and store them encrypted.
- Show the privacy notice to your guests on the login page. See Legal texts and guest consent for details.
- Ask your legal adviser about retention periods and how to answer official requests. This page is not legal advice.
Questions?
If you have received an official request, or urgently need the records for a specific date range, write to us through the contact page.