Class AnonymizeStatistics

java.lang.Object
org.dspace.statistics.AnonymizeStatistics

public class AnonymizeStatistics extends Object
Script to anonymize solr statistics according to GDPR specifications. This script will anonymize records older than a certain threshold, configurable with the 'anonymize_statistics.time_threshold' config, with a default value of 90 days. The records will be anonymized by replacing the last part of the ip address with a mask, this mask is configurable: For IPv4 addresses, the config is 'anonymize_statistics.ip_v4_mask', with a default value of '255' For IPv6 addresses, the config is 'anonymize_statistics.ip_v6_mask', with a default value of 'FFFF:FFFF' The DNS value of the records will also be replaced by a mask, configurable with 'anonymize_statistics.dns_mask', and with a default value of 'anonymized'.
  • Method Details

    • main

      public static void main(String... args) throws org.apache.commons.cli.ParseException
      Throws:
      org.apache.commons.cli.ParseException