<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>Hi all,</p>
    <p>You can surely use mods if need be, but for Apache2, I've found
      it's easiest just to use the CustomLog directive:</p>
    <p>CustomLog /path/to/desired/log/location "0.0.0.0 %l %u %t \"%r\"
      %>s %b"</p>
    <p>This just makes every user show up as 0.0.0.0. Which makes it
      plug and play with something like AWstats, or any other
      log-analysis software.<br>
    </p>
    <p>Simple and fast. Works for us.<br>
    </p>
    <p>Adam</p>
    <div class="moz-signature">-- <br>
      <p>Adam Quenneville<br>
        Founder, <a href="https://FreeMirror.org/">The Free Mirror
          Project</a><br>
        <i><small>"Enabling the free exchange of information and ideas."</small></i></p>
    </div>
    <br>
    <div class="moz-cite-prefix">On 2018-10-23 6:13 PM, Alexander
      Dietrich wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:97ebde73769e5a20d5dd9cb95061de19@dietrich.cx">On
      2018-10-23 23:21, Traumschule wrote:
      <br>
      <blockquote type="cite">
        <br>
        For apache you can use the libapache2-mod-removeip. For nginx
        <br>
        AFAIK there's no such module. Found this example to modify
        log_format
        <br>
        <a class="moz-txt-link-freetext" href="https://www.hagen-bauer.de/2015/12/nginx-logfiles-anon.html">https://www.hagen-bauer.de/2015/12/nginx-logfiles-anon.html</a> in
        german.
        <br>
        If you know about better instructions in english, let us know!
        <br>
      </blockquote>
      <br>
      nginx logging is documented here:
      <br>
      <a class="moz-txt-link-freetext" href="https://nginx.org/en/docs/http/ngx_http_log_module.html">https://nginx.org/en/docs/http/ngx_http_log_module.html</a>
      <br>
      <br>
      The default log format is given as:
      <br>
      <br>
      log_format combined '$remote_addr - $remote_user [$time_local] '
      <br>
                          '"$request" $status $body_bytes_sent '
      <br>
                          '"$http_referer" "$http_user_agent"';
      <br>
      <br>
      So if you wanted to suppress IP and user information, while
      staying compatible with the Common Log Format, and drop the HTTP
      Referer and User-Agent fields, you could add these lines to your
      nginx.conf:
      <br>
      <br>
      log_format privacy '- - - [$time_local] "$request" $status
      $body_bytes_sent';
      <br>
      access_log /var/log/nginx/access.log privacy;
      <br>
      <br>
      You may need to change the second line if your nginx log files are
      not in /var/log/nginx.
      <br>
      <br>
      Kind regards,
      <br>
      Alexander
      <br>
      _______________________________________________
      <br>
      tor-mirrors mailing list
      <br>
      <a class="moz-txt-link-abbreviated" href="mailto:tor-mirrors@lists.torproject.org">tor-mirrors@lists.torproject.org</a>
      <br>
      <a class="moz-txt-link-freetext" href="https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-mirrors">https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-mirrors</a>
      <br>
    </blockquote>
  </body>
</html>