Freelancers · Practical guide

Client files: keeping useful access logs without copying sensitive data

Protéger mes données · Methodology (French) · Sources reviewed: · 5 min read

An event log kept separate from the client file.
The log entry identifies the file by its reference, without copying its content.

Useful access logs let you find out who did what, when and on which file, without copying the file itself. Define the events you need, protect the logs and check that they can be read. A log file that exists but is never checked provides limited visibility.

Start from an incident question

Pick a situation you might need to understand: a file opened by mistake, an unusual export or a disputed deletion. Ask what information would be needed to reconstruct that event. This helps avoid technical collection with no purpose.

For a freelancer, the first question can be very simple: can I tell my access apart from the contractor’s? If everyone uses the same account, the log may show an account without identifying the person. The guide to named accounts covers this dependency.

Choose the useful events and fields

In its guidance sheet of 14 March 2024, the CNIL, the French data protection authority, recommends logging users’ business activities, technical interventions, including those by administrators, and anomalies and security events. For application logs, it covers creation, viewing, sharing, modification and deletion operations, with the author’s identifier, the date, the time, the nature of the operation and the reference of the data concerned, so as to avoid duplicating them. It advises against excessive duplication of data in logs, and against recording passwords or their hashes. See the logging recommendations (in French).

An event can therefore refer to a file by its internal reference, without containing its full text. Ask your provider which fields are actually recorded, not just whether “logging is turned on”.

Restrict access to the logs

Logs may themselves contain personal data and sensitive information about your business. Limit access to those who need it and protect the logs against unauthorised modification.

Fictitious example: a contractor can administer a folder and freely erase the only records of their own actions. This set-up limits the value of the check. The CNIL specifically recommends making logs inaccessible to the people whose activity is logged, preventing misuse by authorised accounts and preventing logs from being overwritten; going further, it mentions centralised collection that prevents them from being altered. Ask how the logs are protected and whether an independent copy or an equivalent mechanism is provided, depending on the risks.

Set a retention period and a use

Define a retention period consistent with security, the applicable obligations and documented needs. The CNIL recommends keeping logged events over a rolling period of between six months and one year, except, for example, where there is a legal obligation, a dispute to manage, internal control or an identified need for post-incident analysis; it rules out keeping logs indefinitely.

Do not use the logs for a new, improvised purpose: the CNIL limits logging to ensuring proper use of the IT system and cites using logs to count hours worked as a misuse of purpose that is punishable by law. Inform the users concerned, for example when they log in, and submit the system to employee representatives where the applicable rules require it; describe who reviews anomalies. The guide to retention helps you set out the retention period and what happens when it expires.

Test with an operation that uses no real data

In an authorised environment, view or modify a fictitious file. Then look for the event and check the account, time, action and reference. Also check that a usable log exists for the whole period tested: the CNIL recommends regularly checking that usable logs are present.

This test is only conclusive for the event and scope examined. It does not prove that every action is logged. If a view does not appear while an export does, document this difference rather than declaring logging complete.

Organise review and alerts

The CNIL recommends actively analysing logs, in real time or at short intervals, to detect incidents, and requiring processors by contract to log in line with these recommendations and to report any anomaly or security incident without delay. Specify what deserves an alert, who receives it and how it is handled. An alert that fires too often with no clear action is likely to be ignored. Start with the events that genuinely threaten your files, then adjust the rules with your provider.

If there is an incident, keep the relevant logs in their context and follow the guide to handling a breach. Avoid publishing them or sharing them widely to ask for help: they may reveal other information.

Ask what events mean exactly

Give the provider an entirely fictitious example and ask them to comment on the corresponding log entry. Does an event indicate an attempt, an authorised operation or a completed operation? Does the reference make it possible to find the file concerned? The label alone cannot answer this: you need the documentation or a check of how the tool behaves.

To compare two tools, note the time zone, the date format and the identifiers available. Keep the original observations along with an explanation of how they were matched. If two events cannot be linked reliably, note this limit instead of reconstructing a timeline presented as certain.

Prepare a support request without sending the whole log

First describe the event you are looking for, the period and the test reference. Then decide which extracts are needed and the appropriate channel for sending them. If an extract contains an address, a client reference or other sensitive information, consider what can be masked without preventing the analysis.

Keep a copy of the extract sent and of the explanations given to the recipient, with appropriate access and retention. Do not alter your only original log to produce this extract. This way of working makes it possible to tell apart the evidence kept, the copy shared and the interpretations produced during the support process.

Sources and limitations

This guide draws on the public sources below. It explains documented features and a suggested method, without testing your account or device. Settings may vary by version and plan. Legal information concerns France and the EU where specified and is not individual legal advice. Sources may be in French.

Verification method (French) · Report an error (French)