{"id":19527592,"url":"https://github.com/bugfender/bugfender-integration-elasticsearch","last_synced_at":"2025-10-07T06:12:11.963Z","repository":{"id":73697460,"uuid":"342209424","full_name":"bugfender/bugfender-integration-elasticsearch","owner":"bugfender","description":"sample project to copy all Bugfender logs to Elasticsearch","archived":false,"fork":false,"pushed_at":"2022-02-17T14:29:13.000Z","size":38,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-02-26T02:29:02.850Z","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":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bugfender.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,"publiccode":null,"codemeta":null}},"created_at":"2021-02-25T10:36:56.000Z","updated_at":"2023-04-07T08:18:55.000Z","dependencies_parsed_at":"2023-06-11T23:15:10.032Z","dependency_job_id":null,"html_url":"https://github.com/bugfender/bugfender-integration-elasticsearch","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/bugfender/bugfender-integration-elasticsearch","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bugfender%2Fbugfender-integration-elasticsearch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bugfender%2Fbugfender-integration-elasticsearch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bugfender%2Fbugfender-integration-elasticsearch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bugfender%2Fbugfender-integration-elasticsearch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bugfender","download_url":"https://codeload.github.com/bugfender/bugfender-integration-elasticsearch/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bugfender%2Fbugfender-integration-elasticsearch/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278728872,"owners_count":26035535,"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","status":"online","status_checked_at":"2025-10-07T02:00:06.786Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-11-11T01:15:40.010Z","updated_at":"2025-10-07T06:12:11.937Z","avatar_url":"https://github.com/bugfender.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Bugfender Integration with Elasticsearch\n\nThis sample project shows how to copy in real time all Bugfender logs to an Elasticsearch cluster.\n\n## Usage\n\n```\nUsage of ./bugfender-integration-elasticsearch:\n  -api-url=\"https://dashboard.bugfender.com\": Bugfender API URL (only necessary for on-premises)\n  -app-id=0: Bugfender app ID (mandatory)\n  -client-id=\"\": OAuth client ID to connect to Bugfender (mandatory)\n  -client-secret=\"\": OAuth client secret to connect to Bugfender (mandatory)\n  -config=\"\": path to config file\n  -console-output=false: Print logs to console instead of Elasticsearch (for debugging)\n  -es-index=\"\": Elasticsearch index to write to (default: logs)\n  -es-nodes=\"\": List of Elasticsearch nodes (multiple nodes can be specified, separated by spaces)\n  -es-password=\"\": Password to connect to Elasticsearch\n  -es-username=\"\": Username to connect to Elasticsearch\n  -insecure-skip-tls-verify=false: Skip TLS certificate verification (insecure)\n  -retries=10: Number of times to retry on errors before exiting. 0 = never give up.\n  -state-file=\"\": File to restore and save state, to resume sync (recommended)\n  -verbose=false: Verbose messages\n  ```\n\nA typical example on how to run this tool would be:\n\n```shell\n    ./bugfender-integration-elasticsearch -app-id=1234 -client-id=your_client_id -client-secret=your_client_secret -state-file state.json -es-index logs -es-nodes http://127.0.0.1:9200\n```\n\nAn example Elasticsearch instance can be run with the provided `docker-compose.yml` file.\n\nIf you would like to test this tool without an Elasticsearch, you can dump the logs to console:\n\n```shell\n    ./bugfender-integration-elasticsearch -app-id=1234 -client-id=your_client_id -client-secret=your_client_secret -state-file state.json -console-output\n```\n\n## Building from source\n\n```shell\ngo get github.com/bugfender/bugfender-integration-elasticsearch\n```\n\n## Writing integrations with other databases\n\nIntegrations with different databases can be written if desired, by implementing the `integration.LogWriter` interface.\n\nAn example of such integration is the `pkg/dummy` package, which dumps the received logs to the console.\n\n## Contributing\n\nContributions to this project are welcome, please feel free to open a pull request.\n\nFor bugs, you can open an issue in Github or submit a pull request.\n\nFor security vulnerabilities, [contact our security staff](https://support.bugfender.com/en/articles/580923-security-contact).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbugfender%2Fbugfender-integration-elasticsearch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbugfender%2Fbugfender-integration-elasticsearch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbugfender%2Fbugfender-integration-elasticsearch/lists"}