What is 5651 logging?
5651 logging takes its name from Law No. 5651 of 2007, “On Regulating Publications on the Internet and Combating Crimes Committed by Means of Such Publications.” In everyday use, it refers to keeping records that show which device connected with which IP address, and during which time interval, at a place where internet access is provided. Article 7 of the Law places obligations on collective use providers in this respect; the details are governed by the Regulation on Internet Collective Use Providers.
The records must be of a kind that can be presented to the competent authorities in the event of an incident or suspected offense, and it must be possible to show that they have not been altered since. That is why this is not merely a network setting; it is a process made up of record collection, retention and integrity verification.
The expression “internal IP distribution log,” common in older guides, is a term from the earlier 2007 regulation. That regulation was repealed by article 14 of the 2017 regulation. The current regulation uses the term “access records.”
Who is it mandatory for?
Under article 2 of the Law, a collective use provider is a person who provides people with the means to use the internet at a specific place and for a specific period. The scope of the obligation has two tiers:
- All collective use providers
Whether or not they operate commercially, they are obliged to take the measures set out in the Regulation on blocking access to content that constitutes an offense and on keeping access records of use (Law art. 7, paragraph 2).
- Commercial collective use providers
In addition, they must obtain a permit from the local civil authority (paragraph 1) and apply the additional measures in the Regulation for protecting the family and children, preventing crime and identifying offenders (paragraph 3).
In practice, the following businesses may fall within the definition: hotels offering wireless networks to their guests, shopping malls, cafes and restaurants; hospitals with patient and visitor networks; schools; factories and holding company offices that offer visitor, dealer or customer networks; public buildings. This is an example list, not a definitive ruling: a corporate network used only by employees may be assessed differently. Decide whether your organization falls within the scope by looking at who uses your network and for what purpose.
Which records are kept?
Article 3 of the Regulation defines “access records” as the following information:
IP information
The IP addresses assigned to the user and used to reach the internet.
Start and end time of use
The date and time the connection started and ended.
MAC address
The hardware address of the device connecting to the network.
Destination IP and port information
The destination IP address and port the device connected to.
Providers offering internet in public areas are also expected to set up a system that can identify users; as an example of this, the Regulation mentions SMS verification (art. 4, paragraph 1-c). This makes it possible to match the IP and MAC record to the person who connected.
In practice, this information does not come from a single device. NAT records are generated on the firewall, the IP-MAC mapping on the DHCP server, and user verification at the hotspot or captive portal layer. A sound 5651 infrastructure combines these sources using timestamps and turns them into a single chain of records.
How long are the records kept?
Two years. The Regulation requires access records to be retained in electronic form for two years, both for all collective use providers (art. 4, paragraph 1-b) and for commercial ones (art. 5, paragraph 1-d). Commercial providers record the value that verifies the accuracy, integrity and confidentiality of the records every day and retain that for two years as well (art. 5, paragraph 1-e).
The period starts on the day the record is generated, and the record must remain readable and accessible throughout. In practice, the most common problems are these: old records being overwritten in rotation once the disk fills up, the archive not being migrated when a device is replaced, and access to the records being lost when a license expires. Test your retention plan against each of these three risks separately.
NextLog5651 retains records in data centers in Türkiye for two years and backs them up automatically.
Why timestamps and signing matter
The Regulation does not set a timestamp or an electronic signature as a separate requirement. What it requires of commercial providers is that the value verifying the accuracy and integrity of the records be recorded and retained every day (art. 5, paragraph 1-e). For this verification to be reliable, three steps are followed in practice:
- 1 · DAILY FILE
That day's access records are collected into a single file.
- 2 · SHA-256 DIGEST
A digest value is generated from the file; if even a single character in the file changes, the digest changes.
- 3 · TIMESTAMP
The digest is sealed with a trusted time source, documenting that the record existed at that moment.
The TÜBİTAK Kamu SM timestamp is a common implementation of this third step. Although it is not mandatory, it makes things easier whenever you want to show that a record has not been altered since; it is the most practical way to defend the reliability of a record during an inspection.
What happens if you do not comply?
Law art. 7/4 authorizes the local civil authority, depending on the seriousness of the violation, to apply one of the following sanctions against commercial collective use providers that breach these obligations:
- Warning
- Administrative fine
In the text of the Law, from 1,000 to 15,000 Turkish lira.
- Suspension of activity
Commercial activity for up to three days.
Non-commercial collective use providers are also obliged to keep access records (art. 7, paragraph 2); however, the fine and suspension sanctions are not written for them.
Articles 11 and 12 of the Regulation elaborate on enforcement: sanctions are applied in graduated steps, and in setting a penalty, aggravating factors such as the continuation of the violation, repeat offenses and economic gain, and mitigating factors such as a record of past compliance are taken into account. Premises operating commercially without a permit may be closed ex officio by official report and sealing (art. 7, paragraph 1).
The amounts given here are the figures in the text of the Law; verify current practice on mevzuat.gov.tr and with the civil authority you are subject to. Beyond the sanction, missing or altered records leave the organization unable to present evidence in an incident investigation; that is often the real cost.
10-point 5651 compliance checklist
Test your organization against this list. Items tagged “Legislation” correspond to obligations in the legislation, while items tagged “Good practice” correspond to measures that are not mandatory but reduce risk. If you cannot answer “yes” to an item, that item is a work item.
I have determined whether my organization is an internet collective use provider: do I offer internet access to guests, customers or visitors at a specific location?
LEGISLATIONLaw art. 2, art. 7If I operate commercially, I hold a permit issued by the local civil authority and my details are up to date.
LEGISLATIONLaw art. 7/1, Regulation art. 5/1-aI collect access records (IP information, start and end time, MAC address, destination IP and port) automatically in electronic form; I do not depend on manual copying or on a device's local memory.
LEGISLATIONRegulation art. 3, art. 4/1-bI retain the records for two years and they remain readable and accessible throughout that period. A full disk, a device replacement or an expired license does not delete the records.
LEGISLATIONRegulation art. 4/1-b, art. 5/1-dI record the value that verifies the accuracy and integrity of the records every day and retain it for two years.
LEGISLATIONRegulation art. 5/1-eFor internet I provide in public areas, I have a verification method that identifies users (for example SMS) and I can match a session to its record.
LEGISLATIONRegulation art. 4/1-cThe filtering system is active and kept up to date; if I operate commercially, I use a fixed IP and report IP changes within 15 days.
LEGISLATIONRegulation art. 4/1-a, art. 5/1-c and çI seal the daily digest value with a trusted timestamp, so I can show that the record has not been altered since.
GOOD PRACTICENot required by the Regulation; recommendedAccess to the records is restricted and traceable; when a competent authority makes a request, I can extract the records for the relevant date range quickly.
GOOD PRACTICEKVKK (Türkiye's personal data protection law) and internal policyBackup and restore are tested regularly; whenever the network or firewall changes, I re-verify that record collection continues. Where a responsible manager and annual information training are required, I fulfill those as well.
GOOD PRACTICERegulation art. 8
Local device or cloud?
Records can be kept in your own environment or on a service provider's cloud infrastructure. Either can deliver the result the Regulation asks for; the difference lies in who carries the burden.
| CRITERION | LOCAL DEVICE / SERVER | CLOUD-BASED |
|---|---|---|
| Setup and maintenance | The server or device, storage and software updates are your responsibility. | Infrastructure and updates are handled by the service provider; configuring your device to send logs is enough. |
| Retention and backup | Disk capacity, backups and the two-year archive are part of your own planning. | Retention and backup are part of the service; it needs no action from you as capacity grows. |
| Integrity and timestamping | You must set up the daily digest and timestamping separately. | Digest generation and timestamping can be applied automatically. |
| Multi-site structure | Each location may need a separate device and separate monitoring. | All locations are monitored from a single panel. |
| Control over data | The records are entirely within your own environment. | The records sit on the provider's infrastructure; their location and access rights should be settled in the contract. |
| Failure and continuity | You bear the risk of record loss if a device or disk fails. | Redundant infrastructure lowers the risk of loss; if your internet connection is cut, the record flow may be affected. |
For an organization with a single location, low record volume and a strong IT team, a local solution can be reasonable. For organizations with multiple branches, growing record volumes, or that do not want to manage the two-year archive and daily integrity verification on their own, a cloud-based solution markedly reduces the maintenance burden and the risk of loss.
One caution: using a cloud service does not transfer the obligation; responsibility stays with the business. Settle the retention period, integrity verification, data location and access rights with the provider in the contract.
DataKobi's recommended solution: NextLog5651
The infrastructure the DataKobi Cyber Security Team recommends for the obligations in this guide is cloud-based 5651 logging software NextLog5651. The logging and hotspot modules can be used separately or together and are managed from a single panel.
- Automatically collects records from FortiGate, Sophos and MikroTik devices.
- Signs the records with a SHA-256 digest and a TÜBİTAK Kamu SM timestamp; produces tamper-evident records.
- Retains records for two years in data centers in Türkiye and backs them up automatically.
- Cloud-based; requires no local server installation or maintenance.
The same platform also includes a corporate hotspot solution for your guest network, with a login screen you can customize to your brand and verification integrated with WhatsApp, SMS and databases (e.g. Oracle, hotel PMS / room number). It is suitable for all businesses, including malls, hotels, factories, holding companies, hospitals and public institutions.
Frequently Asked Questions About 5651 Logging
Is Law No. 5651 logging mandatory?
How long are 5651 logging records retained?
What information is recorded?
What penalties apply to those who do not do 5651 logging?
Is a timestamp mandatory?
Is user verification required on guest Wi-Fi?
Does using a cloud-based logging service remove the obligation?
Sources
- Law No. 5651 on Regulating Publications on the Internet and Combating Crimes Committed by Means of Such Publications— Turkish, mevzuat.gov.tr (art. 2, art. 7).
- Regulation on Internet Collective Use Providers— Official Gazette, 11 April 2017, no. 30035 (art. 3, art. 4, art. 5, art. 7, art. 8, art. 11, art. 12, art. 14).
Legislation may change over time. Check the current texts on mevzuat.gov.tr. This guide was prepared on October 12, 2026 based on the sources above.