Default IP log retention time

How long does Discourse keep IP logs by default?
Thanks

It is listed in our privacy policy which is linked at the bottom of every discourse.org webpage.

2 Likes

I saw those as I was editing my privacy policy; I wasn’t sure whether they were the defaults or specific to meta.discourse.org.

Good to know. Thanks

Old topic, but a good searchable query.

I just found that on my stock self-hosted Discourse instance, rotation is “daily” and retention is 7 days (“rotate 7”):

> 
> less /etc/logrotate.d/nginx

/var/log/nginx/*.log {
  daily
  missingok
  rotate 7
  compress
  delaycompress
  create 0644 www-data www-data
  sharedscripts
  postrotate
    sv 1 nginx
  endscript
}

Nice reference here: logrotate command in Linux with examples (linuxconfig.org)

1 Like