{"id":19084414,"url":"https://github.com/cloudandthings/trino-event-logger","last_synced_at":"2026-02-07T18:32:41.105Z","repository":{"id":256415558,"uuid":"852814233","full_name":"cloudandthings/trino-event-logger","owner":"cloudandthings","description":"A simple Trino plugin to log audit logs to a database","archived":false,"fork":false,"pushed_at":"2024-10-02T12:56:11.000Z","size":22,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-14T01:13:12.730Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Java","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/cloudandthings.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":"2024-09-05T13:26:50.000Z","updated_at":"2025-02-05T17:41:53.000Z","dependencies_parsed_at":"2024-09-10T16:15:49.971Z","dependency_job_id":"29805145-dd86-4378-93ea-fee5ce3b5102","html_url":"https://github.com/cloudandthings/trino-event-logger","commit_stats":null,"previous_names":["cloudandthings/trino-event-logger"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/cloudandthings/trino-event-logger","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudandthings%2Ftrino-event-logger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudandthings%2Ftrino-event-logger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudandthings%2Ftrino-event-logger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudandthings%2Ftrino-event-logger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cloudandthings","download_url":"https://codeload.github.com/cloudandthings/trino-event-logger/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudandthings%2Ftrino-event-logger/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29203782,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-07T17:44:10.191Z","status":"ssl_error","status_checked_at":"2026-02-07T17:44:07.936Z","response_time":63,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":[],"created_at":"2024-11-09T02:51:16.106Z","updated_at":"2026-02-07T18:32:41.090Z","avatar_url":"https://github.com/cloudandthings.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Trino Event Logger\n\n## From Source\n\nCheckout and build the plugin:\n\n```\nmvn license:format\nmvn com.github.ekryd.sortpom:sortpom-maven-plugin:4.0.0:sort \nmvn clean package dependency:copy-dependencies -DskipTests -DincludeScope=runtime\n```\n\nThis will create a folder in the `target` directory. Copy this folder to\nthe Trino plugin folder:\n\n```\ncp -r target/dependency/*.jar /path/to/trino/folder/plugin \ncp -r target/trino-event-logger*.jar /path/to/trino/folder/plugin\n```\n\nAdding the plugin to a docker image:\n```Dockerfile\n# First stage: Download and unzip the plugin\nFROM alpine:latest as downloader\n\n# Install necessary tools\nRUN apk add --no-cache curl unzip\n\n# Create a directory for the plugin\nRUN mkdir -p /tmp/trino-event-logger-unpacked\n\n# Download and unzip the content from GitHub into the plugin directory\nRUN curl -L -o /tmp/trino-event-logger.zip https://github.com/cloudandthings/trino-event-logger/releases/download/452.1/package.zip \\\n    \u0026\u0026 unzip /tmp/trino-event-logger.zip -d /tmp/trino-event-logger-unpacked\n\n# Second stage: Use the Trino base image\nFROM trinodb/trino:452\n\n# Create the plugin directory\nRUN mkdir -p /usr/lib/trino/plugin/trino-event-logger\n\n# Copy the unzipped plugin from the first stage\nCOPY --from=downloader /tmp/trino-event-logger-unpacked/* /usr/lib/trino/plugin/trino-event-logger/\n\n# Start Trino\nCMD [\"/usr/lib/trino/bin/run-trino\"]\n```\n\nCreate a database/schema in MySQL:\n\n```\ncreate database trino_db_event_listener;\n```\n\nCreate an `event-listener.properties` file with contents like:\n\n```\nevent-listener.name=telogger\ntelogger.url=jdbc:postgresql://host.docker.internal:5455/trino_db_event_listener\ntelogger.user=\u003cuser\u003e\ntelogger.password=\u003cpassword\u003e\n```\n\nFinally, restart trino. Once Trino is up and running, verify the plugin is\nloaded and the `queries` table was created in MySQL.\n\nIf the plugin is working correctly, you will see the following in the Trino\n`server.log` file:\n\n```\n2022-04-29T16:03:11.763-0400\tINFO\tmain\tio.trino.eventlistener.EventListenerManager\t-- Loading event listener etc/event-listener.properties --\n2022-04-29T16:03:11.919-0400\tINFO\tmain\tio.trino.dblistener.FlywayMigration\tPerforming migrations...\n2022-04-29T16:03:12.235-0400\tINFO\tmain\torg.flywaydb.core.internal.license.VersionPrinter\tFlyway Community Edition 7.15.0 by Redgate\n2022-04-29T16:03:12.236-0400\tINFO\tmain\torg.flywaydb.core.internal.database.base.BaseDatabaseType\tDatabase: jdbc:mysql://localhost:3306/bell_logger (MySQL 8.0)\n2022-04-29T16:03:12.406-0400\tINFO\tmain\torg.flywaydb.core.internal.command.DbValidate\tSuccessfully validated 1 migration (execution time 00:00.024s)\n2022-04-29T16:03:12.440-0400\tINFO\tmain\torg.flywaydb.core.internal.schemahistory.JdbcTableSchemaHistory\tCreating Schema History table `bell_logger`.`flyway_schema_history` ...\n2022-04-29T16:03:12.561-0400\tINFO\tmain\torg.flywaydb.core.internal.command.DbMigrate\tCurrent version of schema `bell_logger`: \u003c\u003c Empty Schema \u003e\u003e\n2022-04-29T16:03:12.571-0400\tINFO\tmain\torg.flywaydb.core.internal.command.DbMigrate\tMigrating schema `bell_logger` to version \"1 - create schema\"\n2022-04-29T16:03:12.652-0400\tINFO\tmain\torg.flywaydb.core.internal.command.DbMigrate\tSuccessfully applied 1 migration to schema `bell_logger`, now at version v1 (execution time 00:00.101s)\n2022-04-29T16:03:12.663-0400\tINFO\tmain\tio.trino.dblistener.FlywayMigration\tPerformed 1 migrations\n```\n\n## Testing\n```bash\ndocker compose up --build\ndocker compose down -v\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloudandthings%2Ftrino-event-logger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcloudandthings%2Ftrino-event-logger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloudandthings%2Ftrino-event-logger/lists"}