Maybe you can load that log file using COPY or FILE_FDW as described inhttps://blog.hagander.net/remote-log-reading-in-postgresql-91-192/
RegardsPAscal
--Sent from: http://www.postgresql-archive.org/PostgreSQL-admin-f2076596.html