{"id":37215912,"url":"https://github.com/gabrielbussolo/fluent-bit-mysql-output-plugin","last_synced_at":"2026-01-15T00:58:17.047Z","repository":{"id":227571753,"uuid":"617600140","full_name":"gabrielbussolo/fluent-bit-mysql-output-plugin","owner":"gabrielbussolo","description":"A simple Fluent Bit plugin for outputs on MySQL","archived":false,"fork":false,"pushed_at":"2023-04-01T21:52:24.000Z","size":24,"stargazers_count":4,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-11-27T02:36:53.571Z","etag":null,"topics":["fluent-bit","golang","mysql","plugin"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gabrielbussolo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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-03-22T18:11:28.000Z","updated_at":"2024-09-13T06:08:35.000Z","dependencies_parsed_at":"2024-03-28T22:02:24.195Z","dependency_job_id":null,"html_url":"https://github.com/gabrielbussolo/fluent-bit-mysql-output-plugin","commit_stats":null,"previous_names":["gabrielbussolo/fluent-bit-mysql-output-plugin"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/gabrielbussolo/fluent-bit-mysql-output-plugin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gabrielbussolo%2Ffluent-bit-mysql-output-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gabrielbussolo%2Ffluent-bit-mysql-output-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gabrielbussolo%2Ffluent-bit-mysql-output-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gabrielbussolo%2Ffluent-bit-mysql-output-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gabrielbussolo","download_url":"https://codeload.github.com/gabrielbussolo/fluent-bit-mysql-output-plugin/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gabrielbussolo%2Ffluent-bit-mysql-output-plugin/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28440987,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-15T00:55:22.719Z","status":"ssl_error","status_checked_at":"2026-01-15T00:55:20.945Z","response_time":107,"last_error":"SSL_read: 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":["fluent-bit","golang","mysql","plugin"],"created_at":"2026-01-15T00:58:15.861Z","updated_at":"2026-01-15T00:58:17.027Z","avatar_url":"https://github.com/gabrielbussolo.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Fluent Bit MySQL Output Plugin\n\nThis is plugin for Fluent Bit, an open-source data collector that can be used to collect, process, and forward logs and metrics data. This plugin allows you to write data to a MySQL database. It's influenced by the [PostgreSQL output plugin for Fluent Bit](https://docs.fluentbit.io/manual/pipeline/outputs/postgresql) and the [MySQL Fluentd plugin](https://github.com/fluent/fluent-plugin-sql).\n\n## Usage\n\nDownload the last release and add to your plugin directory, example:\n\n```bash\ncurl -o /fluent-bit/etc/mysql-output-plugin.so https://github.com/gabrielbussolo/fluent-bit-mysql-output-plugin/releases/download/v0.1.0-alpha/mysql-output-plugin.so\n```\n\nCreate a file to register the custom plugin (if you don't have one already):\n\n`plugins.conf`:\n```\n[PLUGINS]\n    Path /fluent-bit/etc/mysql-output-plugin.so\n```\n\nAdd the configs to your `fluent-bit.conf`:\n\n| Key      | Description                                 | Default        |\n|----------|---------------------------------------------|----------------|\n| Address  | The address of the MySQL server             | localhost:3306 |\n| User     | The user to connect to the MySQL server     | root           |\n| Password | The password to connect to the MySQL server | -              |\n| Database | The database to connect to                  | -              |\n| Table    | The table to connect to                     | -              |\n\nexample:\n```\n# import the plugin\n[SERVICE]\n    Flush           1\n    Log_Level       info\n    plugins_file    /fluent-bit/etc/plugins.conf\n\n# configure the plugin    \n[OUTPUT]\n    Name mysql\n    Address localhost:3306\n    User root\n    Password my-secret-pw\n    Database fluent_bit\n    Table test\n```\n\nIs expected that the table already exists in the database with the following fields `data`, `datetime` and `tag`. The `data` field is a `json` type, the `datetime` field is a `datetime` and `tag` a `varchar`.\n\nExample:\n```sql\ncreate table fluent_bit.test\n(\n    id       int auto_increment\n        primary key,\n    data     json         null,\n    datetime datetime     null,\n    tag      varchar(100) null\n);\n```\n\n## Next steps:\n- [ ] Add support to create a default table if it doesn't exist\n- [ ] Support async writes\n- [ ] Add options for the connection pool\n- [ ] Implement CI/CD","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgabrielbussolo%2Ffluent-bit-mysql-output-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgabrielbussolo%2Ffluent-bit-mysql-output-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgabrielbussolo%2Ffluent-bit-mysql-output-plugin/lists"}