{"id":18886835,"url":"https://github.com/albertfdp/fluent-plugin-expand","last_synced_at":"2026-02-23T19:30:17.850Z","repository":{"id":15752204,"uuid":"18490919","full_name":"albertfdp/fluent-plugin-expand","owner":"albertfdp","description":null,"archived":false,"fork":false,"pushed_at":"2014-04-10T15:05:57.000Z","size":140,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-31T05:17:09.724Z","etag":null,"topics":[],"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/albertfdp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-04-06T14:08:57.000Z","updated_at":"2014-04-10T15:05:54.000Z","dependencies_parsed_at":"2022-09-19T05:02:07.172Z","dependency_job_id":null,"html_url":"https://github.com/albertfdp/fluent-plugin-expand","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/albertfdp%2Ffluent-plugin-expand","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/albertfdp%2Ffluent-plugin-expand/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/albertfdp%2Ffluent-plugin-expand/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/albertfdp%2Ffluent-plugin-expand/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/albertfdp","download_url":"https://codeload.github.com/albertfdp/fluent-plugin-expand/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239859566,"owners_count":19708861,"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":[],"created_at":"2024-11-08T07:31:06.482Z","updated_at":"2026-02-23T19:30:17.806Z","avatar_url":"https://github.com/albertfdp.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# fluent-plugin-expand\n\nfluentd plugin that expands a given input array to multiple emits.\n\n## Usage\n\nImagine you have a config as below:\n\n\t\u003cmatch test.**\u003e\n\t\ttype expand\n\n\t\tkey foo\n\t\tadd_tag_prefix\t\texpanded.\n\t\tremove_tag_prefix\ttest.\n\t\u003c/match\u003e\n\nAnd you feed such a value into fluentd:\n\n\t\"test\" =\u003e {\n\t\t\"meta\"=\u003e \"data\",\n\t\t\"foo\" =\u003e [{\"bar\" =\u003e [\"hello\", \"world\"]}, {\"qux\" =\u003e [\"hoe\", \"poe\"]}]\n\t}\n\nThen you will get them re-emmited tag/records below:\n\n\t\"expanded\" =\u003e {\n\t\t\"meta\" =\u003e \"data\",\n\t\t\"bar\" =\u003e [\"hello\", \"world\"]\n\t}\n\n\t\"expanded\" =\u003e {\n\t\t\"meta\" =\u003e \"data\",\n\t\t\"qux\" =\u003e [\"hoe\", \"poe\"]\n\t}\n\n## Configuration\n\n### key\n\nThe `key` is used to point a key whose value contains JSON-formatted array.\n\n### reemit_doc\n\nThis param is set by default to `false` and it will reemit the original log, with the original tag without the key. For instance, for an input:\n\n\t\"test\" =\u003e {\n\t\t\"meta\"=\u003e \"data\",\n\t\t\"foo\" =\u003e [{\"bar\" =\u003e [\"hello\", \"world\"]}, {\"qux\" =\u003e [\"hoe\", \"poe\"]}]\n\t}\n\nIt will emit:\n\n\t\"expanded\" =\u003e {\n\t\t\"meta\" =\u003e \"data\",\n\t\t\"bar\" =\u003e [\"hello\", \"world\"]\n\t}\n\n\t\"expanded\" =\u003e {\n\t\t\"meta\" =\u003e \"data\",\n\t\t\"qux\" =\u003e [\"hoe\", \"poe\"]\n\t}\n\n\t\"test\" =\u003e {\n\t\t\"meta\"=\u003e \"data\"\n\t}\n\n### remove_tag_prefix, remove_tag_suffix, add_tag_prefix, add_tag_suffix\n\nThese params are included from `Fluent::HandleTagNameMixin`. See that code for details.\n\nYou must add at least one of these params.\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n    gem 'fluent-plugin-flatten'\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install fluent-plugin-flatten\n\n## Contributing\n\n1. Fork it\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Added some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create new Pull Request\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falbertfdp%2Ffluent-plugin-expand","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falbertfdp%2Ffluent-plugin-expand","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falbertfdp%2Ffluent-plugin-expand/lists"}