{"id":18103129,"url":"https://github.com/influxdata/influxdb-plugin-fluent","last_synced_at":"2025-04-13T19:03:23.986Z","repository":{"id":40364204,"uuid":"227580299","full_name":"influxdata/influxdb-plugin-fluent","owner":"influxdata","description":"A buffered output plugin for Fluentd and InfluxDB 2","archived":false,"fork":false,"pushed_at":"2024-03-05T15:02:52.000Z","size":623,"stargazers_count":21,"open_issues_count":2,"forks_count":1,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-03-10T20:04:49.720Z","etag":null,"topics":["fluentd","influxdata","influxdb","ruby","timeseries"],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/influxdata.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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}},"created_at":"2019-12-12T10:29:44.000Z","updated_at":"2024-08-16T02:58:37.000Z","dependencies_parsed_at":"2024-03-05T16:29:20.542Z","dependency_job_id":"833f8f4f-ebdc-4662-b765-2fe0900d9e54","html_url":"https://github.com/influxdata/influxdb-plugin-fluent","commit_stats":{"total_commits":83,"total_committers":4,"mean_commits":20.75,"dds":0.07228915662650603,"last_synced_commit":"995219d5da9b8c3c9272e0e231c6d85f4293da82"},"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/influxdata%2Finfluxdb-plugin-fluent","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/influxdata%2Finfluxdb-plugin-fluent/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/influxdata%2Finfluxdb-plugin-fluent/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/influxdata%2Finfluxdb-plugin-fluent/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/influxdata","download_url":"https://codeload.github.com/influxdata/influxdb-plugin-fluent/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245819654,"owners_count":20677693,"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":["fluentd","influxdata","influxdb","ruby","timeseries"],"created_at":"2024-10-31T22:10:24.532Z","updated_at":"2025-03-29T11:30:50.485Z","avatar_url":"https://github.com/influxdata.png","language":"Ruby","readme":"# influxdb-plugin-fluent\n\n[![CircleCI](https://circleci.com/gh/influxdata/influxdb-plugin-fluent.svg?style=svg)](https://circleci.com/gh/influxdata/influxdb-plugin-fluent)\n[![codecov](https://codecov.io/gh/influxdata/influxdb-plugin-fluent/branch/master/graph/badge.svg)](https://codecov.io/gh/influxdata/influxdb-plugin-fluent)\n[![Gem Version](https://badge.fury.io/rb/fluent-plugin-influxdb-v2.svg)](https://badge.fury.io/rb/fluent-plugin-influxdb-v2)\n[![License](https://img.shields.io/github/license/influxdata/influxdb-plugin-fluent.svg)](https://github.com/influxdata/influxdb-plugin-fluent/blob/master/LICENSE)\n[![GitHub issues](https://img.shields.io/github/issues-raw/influxdata/influxdb-plugin-fluent.svg)](https://github.com/influxdata/influxdb-plugin-fluent/issues)\n[![GitHub pull requests](https://img.shields.io/github/issues-pr-raw/influxdata/influxdb-plugin-fluent.svg)](https://github.com/influxdata/influxdb-plugin-fluent/pulls)\n[![Slack Status](https://img.shields.io/badge/slack-join_chat-white.svg?logo=slack\u0026style=social)](https://www.influxdata.com/slack)\n\nThis repository contains the reference Fluentd plugin for the InfluxDB 2.0.\n\n#### Note: This plugin is for use with InfluxDB 2.x. For InfluxDB 1.x instances, please use the [fluent-plugin-influxdb](https://github.com/fangli/fluent-plugin-influxdb) plugin.\n\n## Installation\n\n### Gems\n\nThe plugin is bundled as a gem and is hosted on [Rubygems](https://rubygems.org/gems/fluent-plugin-influxdb-v2).  You can install the gem as follows:\n\n```\nfluent-gem install fluent-plugin-influxdb-v2 -v 1.10.0\n```\n\n## Plugins\n\n### influxdb2\n\nStore Fluentd event to InfluxDB 2 database.\n\n#### Configuration\n\n| Option | Description | Type | Default |\n|---|---|---|---|\n| url | InfluxDB URL to connect to (ex. https://localhost:8086). | String | https://localhost:8086 |\n| token | Access Token used for authenticating/authorizing the InfluxDB request sent by client. | String | |\n| use_ssl | Turn on/off SSL for HTTP communication. | bool | true |\n| verify_mode | Sets the flags for the certification verification at beginning of SSL/TLS session. | `\"#{OpenSSL::SSL::VERIFY_NONE}\"` or `\"#{OpenSSL::SSL::VERIFY_PEER}\"` | none |\n| bucket | Specifies the destination bucket for writes. | String | |\n| org | Specifies the destination organization for writes. | String | |\n| measurement | The name of the measurement. If not specified, Fluentd's tag is used. | String | nil |\n| tag_keys | The list of record keys that are stored in InfluxDB as 'tag'. | Array | [] |\n| tag_fluentd | Specifies if the Fluentd's event tag is included into InfluxDB tags (ex. 'fluentd=system.logs'). | bool | false |\n| field_keys | The list of record keys that are stored in InfluxDB as 'field'. If it's not specified than as fields are used all record keys. | Array | [] |\n| field_cast_to_float | Turn on/off auto casting Integer value to Float. Helper to avoid mismatch error: 'series type mismatch: already Integer but got Float'. | bool | false |\n| time_precision | The time precision of timestamp. You should specify either second (s), millisecond (ms), microsecond (us), or nanosecond (ns). | String | ns |\n| time_key | A name of the record key that used as a 'timestamp' instead of event timestamp. If a record key doesn't exists or hasn't value then is used event timestamp. | String | nil |\n| line_protocol_key | A name of the record key that contains [LineProtocol](https://docs.influxdata.com/influxdb/v2.0/reference/syntax/line-protocol/). The value of this key is used for ingesting data into InfluxDB. If a record key doesn't exists or hasn't value then is used event timestamp. | String | nil |\n\n##### Minimal configuration\n\n```\n\u003cmatch influxdb2.**\u003e\n    @type influxdb2\n\n    # InfluxDB URL to connect to (ex. https://localhost:8086).\n    url             https://localhost:8086\n    # Access Token used for authenticating/authorizing the InfluxDB request sent by client.\n    token           my-token\n\n    # Specifies the destination bucket for writes.\n    bucket          my-bucket\n    # Specifies the destination organization for writes.\n    org             my-org\n\u003c/match\u003e\n```\n\n##### Full configuration\n\n```\n\u003cmatch influxdb2.**\u003e\n    @type influxdb2\n\n    # InfluxDB URL to connect to (ex. https://localhost:8086).\n    url                     https://localhost:8086\n    # Access Token used for authenticating/authorizing the InfluxDB request sent by client.\n    token                   my-token\n    # Turn on/off SSL for HTTP communication.\n    use_ssl                 true\n    # Sets the flags for the certification verification at beginning of SSL/TLS session.\n    # For more info see - https://docs.ruby-lang.org/en/3.0.0/Net/HTTP.html#verify_mode.\n    verify_mode             \"#{OpenSSL::SSL::VERIFY_NONE}\"\n\n    # Specifies the destination bucket for writes.\n    bucket                  my-bucket\n    # Specifies the destination organization for writes.\n    org                     my-org\n\n    # The name of the measurement. If not specified, Fluentd's tag is used. \n    measurement             h2o\n    # The list of record keys that are stored in InfluxDB as 'tag'.\n    tag_keys                [\"location\", \"type\"]\n    # Specifies if the Fluentd's event tag is included into InfluxDB tags (ex. 'fluentd=system.logs).'\n    tag_fluentd             true\n  \n    # The list of record keys that are stored in InfluxDB as 'field'. \n    # If it's not specified than as fields are used all record keys.\n    field_keys              [\"value\"]\n    # Turn on/off auto casting Integer value to Float. \n    # Helper to avoid mismatch error: 'series type mismatch: already Integer but got Float'.\n    field_cast_to_float     true\n\n    # The time precision of timestamp. You should specify either second (s), millisecond (ms), \n    # microsecond (us), or nanosecond (ns).\n    time_precision          s\n    # A name of the record key that used as a 'timestamp' instead of event timestamp.\n    # If a record key doesn't exists or hasn't value then is used event timestamp.\t\n    time_key                time\n\u003c/match\u003e\n```\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/influxdata/influxdb-plugin-fluent.\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finfluxdata%2Finfluxdb-plugin-fluent","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finfluxdata%2Finfluxdb-plugin-fluent","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finfluxdata%2Finfluxdb-plugin-fluent/lists"}