{"id":13305735,"url":"https://github.com/spacepatcher/google-workspace-gmail-collector","last_synced_at":"2026-01-31T18:12:51.803Z","repository":{"id":89782665,"uuid":"585266205","full_name":"spacepatcher/google-workspace-gmail-collector","owner":"spacepatcher","description":"👁 App for collecting Gmail logs from your Google Workspace account and sending them to Kafka","archived":false,"fork":false,"pushed_at":"2023-01-04T19:15:15.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2023-02-27T20:22:51.830Z","etag":null,"topics":["bigquery","gmail","google-workspace","security","soc"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/spacepatcher.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-01-04T18:30:20.000Z","updated_at":"2023-02-27T18:56:35.000Z","dependencies_parsed_at":null,"dependency_job_id":"5e398b70-2a8c-4eb6-ac9e-fd74f52e3a10","html_url":"https://github.com/spacepatcher/google-workspace-gmail-collector","commit_stats":null,"previous_names":[],"tags_count":0,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spacepatcher%2Fgoogle-workspace-gmail-collector","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spacepatcher%2Fgoogle-workspace-gmail-collector/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spacepatcher%2Fgoogle-workspace-gmail-collector/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spacepatcher%2Fgoogle-workspace-gmail-collector/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/spacepatcher","download_url":"https://codeload.github.com/spacepatcher/google-workspace-gmail-collector/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242859808,"owners_count":20196995,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bigquery","gmail","google-workspace","security","soc"],"created_at":"2024-07-29T17:54:00.345Z","updated_at":"2026-01-31T18:12:51.797Z","avatar_url":"https://github.com/spacepatcher.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Google Workspace Gmail Collector\n\nA simple application for collecting Gmail logs from your Google Workspace account and producing the events to Kafka topic. The app is designed to work continuously inside a container.\n\nTo be able to collect logs, you first need to set up [Gmail logging in BigQuery](https://support.google.com/a/answer/7233312). Gmail logs store records for each stage of a message in the Gmail delivery process.\n\nThe app makes SQL-like queries to the BigQuery dataset with Gmail logs at 60-second intervals and retrieves newly created entries.\n\n### Usage\n\nDeclare environment variables and run:\n\n```\ndocker build --tag gws-gmail . \\\n  \u0026\u0026 docker run --rm \\\n       -e KAFKA_SERVERS=$KAFKA_SERVERS \\\n       -e KAFKA_TOPIC=$KAFKA_TOPIC \\\n       --name gws-gmail \\\n       gws-gmail\n```\n\nVariables:\n- `KAFKA_SERVERS` is an initial list of brokers as a CSV list of brokers in format `host1:9092,host2:9092,host3:9092`\n- `KAFKA_TOPIC` is a name of Kafka topic\n\nFiles:\n- `app/keyfile.json` contains Google Cloud [service account key](https://cloud.google.com/iam/docs/creating-managing-service-account-keys)\n- `app/kafka-ca.pem` contains Kafka CA certificate for verifying the broker's key\n- `app/producer-gws-gmail.pem` contains Kafka client's public and private keys\n\n### Authorization\n\nGCP service account with roles `BigQuery Data Viewer` and `BigQuery User` is required to access the BigQuery dataset.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspacepatcher%2Fgoogle-workspace-gmail-collector","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fspacepatcher%2Fgoogle-workspace-gmail-collector","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspacepatcher%2Fgoogle-workspace-gmail-collector/lists"}