{"id":18436067,"url":"https://github.com/codenotary/immufluent","last_synced_at":"2025-04-14T10:57:34.480Z","repository":{"id":221379746,"uuid":"754216017","full_name":"codenotary/immufluent","owner":"codenotary","description":"Send fluentbit collected logs to immudb","archived":false,"fork":false,"pushed_at":"2024-02-19T09:57:05.000Z","size":44,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-05T20:33:14.828Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/codenotary.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}},"created_at":"2024-02-07T16:16:48.000Z","updated_at":"2024-02-07T16:20:33.000Z","dependencies_parsed_at":"2024-02-07T17:48:24.254Z","dependency_job_id":null,"html_url":"https://github.com/codenotary/immufluent","commit_stats":null,"previous_names":["codenotary/immufluent"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codenotary%2Fimmufluent","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codenotary%2Fimmufluent/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codenotary%2Fimmufluent/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codenotary%2Fimmufluent/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codenotary","download_url":"https://codeload.github.com/codenotary/immufluent/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248868808,"owners_count":21174757,"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-06T06:10:13.687Z","updated_at":"2025-04-14T10:57:34.458Z","avatar_url":"https://github.com/codenotary.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Immufluent\n\nSends logs generated by fluentbit to immudb.\n\nSupports rotating database, so you can easily prune old logs.\n\n## Usage\n```\nUsage of ./immufluent:\n      --address string           Binding address (default \"0.0.0.0\")\n      --autorotate int           Interval for internal rotation (seconds) (default 86400)\n      --buffer-delay int         max buffer delay (milliseconds) (default 100)\n      --buffer-size int          max buffer size (default 100)\n      --immudb-hostname string   immudb server address (default \"127.0.0.1\")\n      --immudb-password string   immudb admin password (default \"immudb\")\n      --immudb-pattern string    database pattern name (with strftime variables) (default \"log_%Y_%m\")\n      --immudb-port int          immudb server port (default 3322)\n      --immudb-username string   immudb admin username (default \"immudb\")\n      --port int                 Listening port (default 8090)\n```\n\nConfigure immufluent using command line arguments or Environment variables. Every command line option has a matching env variable prefixed with `IF_`, uppercased and with `-` converted to `_`.\n\nSo you can set immudb address using `IF_IMMUDB_HOSTNAME`.\n\n## Log collection\nConfigure fluentbit with the `http` output, sending logs to immufluent IP address and poirt, setting the path to the `/log` endpoint. Format must be `json`:\n```ini\n[OUTPUT]\n    Name http\n    Match kube.*\n    Host \u003cip_address_of_immufluent\u003e\n    Port 8090\n    Uri /log\n    Format json\n```\n\n## Rotation\n\n`--immudb-pattern` is used to generate the database name, using strftime expansion (see https://pkg.go.dev/github.com/lestrrat-go/strftime). TO actually switch the logs to the new database,\nyou have to *rotate* the database. When a rotation is invoked, the name is generated again and, if different than the current one, old one will be closed and new one will be used.\nThat is attempted automatically every `--autorotate` seconds, or can be done maually calling endpoint `/rotate`.\nNote that setting `autorotate` to `0` will disable autorotation.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodenotary%2Fimmufluent","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodenotary%2Fimmufluent","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodenotary%2Fimmufluent/lists"}