{"id":28501950,"url":"https://github.com/fluent/fluent-bit-plugin","last_synced_at":"2025-07-05T01:30:44.729Z","repository":{"id":37981122,"uuid":"192995370","full_name":"fluent/fluent-bit-plugin","owner":"fluent","description":"Fluent Bit Dynamic Plugin Development ","archived":false,"fork":false,"pushed_at":"2022-12-09T23:17:20.000Z","size":8,"stargazers_count":14,"open_issues_count":7,"forks_count":13,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-06-27T23:12:30.292Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C","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/fluent.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":"2019-06-20T22:38:08.000Z","updated_at":"2025-01-04T00:25:50.000Z","dependencies_parsed_at":"2023-01-25T17:30:25.097Z","dependency_job_id":null,"html_url":"https://github.com/fluent/fluent-bit-plugin","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/fluent/fluent-bit-plugin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fluent%2Ffluent-bit-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fluent%2Ffluent-bit-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fluent%2Ffluent-bit-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fluent%2Ffluent-bit-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fluent","download_url":"https://codeload.github.com/fluent/fluent-bit-plugin/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fluent%2Ffluent-bit-plugin/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263642849,"owners_count":23493649,"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":"2025-06-08T16:08:31.944Z","updated_at":"2025-07-05T01:30:44.724Z","avatar_url":"https://github.com/fluent.png","language":"C","readme":"# Fluent Bit Plugin\n\nThe following repository provides the structure and build-system helpers to develop C dynamic plugins for [Fluent Bit](https://fluentbit.io) like _inputs_, _filters_ and _outputs_.\n\n\u003e  Fluent Bit API development/usage is out of the scope of this article.\n\n## Requirements\n\n- [Fluent Bit](https://fluentbit.io) Source code, version \u003e= 1.2\n- C compiler: GCC or Clang\n- CMake3\n\n## Getting Started\n\nIn the following steps we will build the example plugin provided called __out_stdout2__. As a first step get into the _build/_ directory:\n\n```bash\n$ cd build/\n```\n\nNow we will provide CMake (our build system) two important variables:\n\n- FLB\\_SOURCE: absolute path to source code of Fluent Bit.\n- PLUGIN\\_NAME: _directory_ name of the project that we aim to build. Note that any plugin name must have it proper prefix as the example mentioned above.\n\nAssuming that Fluent Bit source code is located at /tmp/fluent-bit and we will build _out\\_stdout2_, we will run CMake with the following options:\n\n```bash\n$ cmake -DFLB_SOURCE=/tmp/fluent-bit -DPLUGIN_NAME=out_stdout2 ../\n```\n\nthen type 'make' to build the plugin:\n\n```\n$ make\nScanning dependencies of target flb-out_stdout2\n[ 50%] Building C object out_stdout2/CMakeFiles/flb-out_stdout2.dir/stdout2.c.o\n[100%] Linking C shared library ../flb-out_stdout2.so\n[100%] Built target flb-out_stdout2\n```\n\nIf you query the content of the current directory you will find the new shared library created:\n\n```\n$ ls -l *.so\n-rwxr-xr-x 1 edsiper edsiper 17288 jun 20 16:33 flb-out_stdout2.so\n```\n\nthat __.so__ file is our dynamic plugin that now can be loaded from Fluent Bit through the [plugins configuration](https://github.com/fluent/fluent-bit/blob/master/conf/plugins.conf) file.\n\n## License\n\nThis program is under the terms of the [Apache License v2.0](http://www.apache.org/licenses/LICENSE-2.0).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffluent%2Ffluent-bit-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffluent%2Ffluent-bit-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffluent%2Ffluent-bit-plugin/lists"}