Class SanitizeWeblogs

  • All Implemented Interfaces:
    java.lang.Runnable, java.util.concurrent.Callable<java.lang.Object>, java.util.Observer

    public class SanitizeWeblogs
    extends CollecTorMain
    This module processes web-logs for CollecTor according to the weblog sanitation specification published on metrics.torproject.org.
    • Constructor Detail

      • SanitizeWeblogs

        public SanitizeWeblogs​(Configuration conf)
        Possibly privacy impacting data is replaced by dummy data producing a log-file (or files) that confirm(s) to Apache's Combined Log Format.
    • Method Detail

      • module

        public java.lang.String module()
        Description copied from class: CollecTorMain
        Returns the module name for logging purposes.
        Specified by:
        module in class CollecTorMain
      • syncMarker

        protected java.lang.String syncMarker()
        Description copied from class: CollecTorMain
        Returns property prefix/infix/postfix for Sync related properties.
        Specified by:
        syncMarker in class CollecTorMain
      • bytesFor

        public static byte[] bytesFor​(java.lang.String line,
                                      long times)