An example system may include a processor and a non-transitory machine-readable storage medium storing instructions executable by the processor to determine a type of data to be added to a log file; determine a selected anonymization protocol for the type of the data; and anonymize the data according to the anonymization protocol as the data is added to the log file.