On Fri, Sep 28, 2018 at 7:03 AM, Raghavendra Rao J S V <raghavendrajsv@xxxxxxxxx> wrote: > Log file will be generated in csv format at pg_log directory in our > PostgreSQL. Every day we are getting one log file. We would like to maintain > only max 30 days. Which setting need to modify by us in “postgresql.conf” in > order to recycle the log files after 30 days. I have similar problems in a lot of things and normally use "find <directory> -name <whatever> -mtime +<age> -delete" in the daemons cron ( gnu find, on linux, I assume other os have a similar command ). For postgres-only solutions you've been given some advice previously, and like those I only know ways to do it daily/weekly/monthly/yearly. Francisco Olarte.