{"id":40058767,"url":"https://github.com/wizecore/graylog2-output-jdbc","last_synced_at":"2026-01-19T07:08:22.283Z","repository":{"id":56463061,"uuid":"47894604","full_name":"wizecore/graylog2-output-jdbc","owner":"wizecore","description":"Plugin to add graylog capability to send log messages to relational database (MySQL, PostgreSQL, etcz)","archived":false,"fork":false,"pushed_at":"2023-07-06T20:48:18.000Z","size":10357,"stargazers_count":11,"open_issues_count":1,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-03-26T20:03:28.571Z","etag":null,"topics":["graylog","jdbc","mysql","rdmbs"],"latest_commit_sha":null,"homepage":"https://www.graylog.org/","language":"Java","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/wizecore.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}},"created_at":"2015-12-12T21:06:06.000Z","updated_at":"2023-07-28T04:00:25.000Z","dependencies_parsed_at":"2022-08-15T19:10:51.689Z","dependency_job_id":null,"html_url":"https://github.com/wizecore/graylog2-output-jdbc","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/wizecore/graylog2-output-jdbc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wizecore%2Fgraylog2-output-jdbc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wizecore%2Fgraylog2-output-jdbc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wizecore%2Fgraylog2-output-jdbc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wizecore%2Fgraylog2-output-jdbc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wizecore","download_url":"https://codeload.github.com/wizecore/graylog2-output-jdbc/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wizecore%2Fgraylog2-output-jdbc/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28562728,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-19T03:31:16.861Z","status":"ssl_error","status_checked_at":"2026-01-19T03:31:15.069Z","response_time":67,"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":["graylog","jdbc","mysql","rdmbs"],"created_at":"2026-01-19T07:06:55.605Z","updated_at":"2026-01-19T07:08:22.269Z","avatar_url":"https://github.com/wizecore.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Graylog output plugin JDBC\n\nSends log from a steam to a traditional RDMBS database via JDBC.\n\n## How to build\n\n- Use `mvn clean package` to create JAR\n- See **Providing JDBC driver** on how to adjust JAR for your RDBMS\n- Put prepared JAR inside **Graylog** plugins folder\n- Put a JDBC driver inside **Graylog** plugins folder\n- Restart Graylog\n- Create new output globally or inside stream\n- Connect output to your stream\n- Make sure your RDBMS commit speed is sufficient to handle output message rate\n\n## Providing JDBC driver\n\nGraylog does not ship with JDBC drivers.\nYou must add your driver JAR manually to plugins folder and **update** graylog-output-jdbc-2.5.1.jar accordingly.\n\nAdd following line to graylog2-output-jdbc-2.5.1.jar/META-INF/MANIFEST.MF\n\n```\nClass-Path: driver.jar\n```\n\nExample:\n\n```\nClass-Path: mysql-connector-java-8.0.17.jar\n```\n\n### How to update using command line?\n\nCreate `my-manifest.mf` and use jar tool from JDK:\n\n```\njar -uvmf my-manifest.mf target/graylog-output-jdbc-2.5.1.jar\n```\n\n## Output options\n\n#### Driver class to use (optional)\n\nDriver class to initialize. Needed so URL can be handled properly. Recent JDK 8+ have autodiscovery of JDBC drivers so it might be not needed.\n\nDefault value: NONE\n\nExample: `com.mysql.jdbc.Driver`\n\n#### JDBC URL\n\nFully qualified JDBC url to connect to.\n\nDefault value: NONE\n\nExample: `jdbc:mysql://localhost:3307/graylog`\n\n#### Username (optional)\n\nUsername to connect to RDBMS as. If not specified, no password will be passed to driver.\n\nDefault value: NONE\n\n#### Password (optional)\n\nPassword for user.\n\nDefault value: NONE\n\n#### Additional fields (optional)\n\nComma separated list of additional attributes for Message insert query. I.e. if you have custom attribute defined in your log i.e. `hostname`, specify it here and adjust a query accordingly, i.e. `insert into log (message_date, message_id, source, message, hostname) values (?, ?, ?, ?, ?)`\n\nThis way you don`t need to use log_attribute table, greatly increasing commit speed.\n\nDefault value: NONE\n\n#### Message insert query\n\nQuery to execute to add log entry. Must contain required 4 columns and optional (see Additional fields). Must produce generated key (ID).\n\nDefault value: `insert into log (message_date, message_id, source, message) values (?, ?, ?, ?)`\n\n#### Attribute insert query (optional)\n\nIf specified all attributes will be added using this query.\n\nDefault value: `insert into log_attribute (log_id, name, value) values (?, ?, ?)`\n\n### Table definition\n\nBy default output uses table 'log' for main message entry and 'log_attribute' for attributes.\nSample table creation script (MySQL):\n\n```sql\ncreate table if not exists log (\n  id int not null auto_increment,\n  message_date datetime,\n  message_id varchar(64),\n  source varchar(32),\n  message varchar(4096) null,\n  PRIMARY KEY (id)\n);\n\ncreate table if not exists log_attribute (\n  id int not null auto_increment,\n  log_id numeric(10,0),\n  name varchar(255),\n  value varchar(4096) null,\n  primary key (id),\n  foreign key (log_id) references log(id)\n);\n```\n\nMake sure that for table log, column ID are generated automatically. For example add 'identity' (MS SQL/Sybase ASE) or AUTO_INCREMENT (MySQL) into column definition.\n\n## Links\n\n- https://www.graylog.org/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwizecore%2Fgraylog2-output-jdbc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwizecore%2Fgraylog2-output-jdbc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwizecore%2Fgraylog2-output-jdbc/lists"}