We need to extract the logs of GKE-hosted reverse proxies in a raw format that can be parsed by SEO log analysis tools. Unfortunately these tools flat out refuse to ingest CSV and JSON files, they only accept raw text as it would be in .log files generated by Nginx on a physical server.
Downloading them from the GCP GUI doesn't work, as it only allows JSON and CSV exports. The exports GCP allows do not really work either - we have been able to save plaintext logs in google storage using a cloud function script, but only in an inconvenient way (1 file per hour, seemingly no way to change this), and only for future logs, as log export only apply to incoming logs.
What we need is to extract plaintext logs from the last month, and there seems to be no documented and/or supported way to do this.