{"id":42479139,"url":"https://github.com/ewilde/go-kibana","last_synced_at":"2026-01-28T10:38:18.264Z","repository":{"id":47658802,"uuid":"112009734","full_name":"ewilde/go-kibana","owner":"ewilde","description":"go client library for kibana","archived":false,"fork":false,"pushed_at":"2023-11-25T03:46:29.000Z","size":3497,"stargazers_count":21,"open_issues_count":2,"forks_count":12,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-08-14T08:25:28.062Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ewilde.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":"2017-11-25T14:27:34.000Z","updated_at":"2024-12-27T18:58:23.000Z","dependencies_parsed_at":"2024-06-18T22:39:51.328Z","dependency_job_id":"d97a3c1f-b5c7-46bf-a942-49fc75602701","html_url":"https://github.com/ewilde/go-kibana","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ewilde/go-kibana","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ewilde%2Fgo-kibana","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ewilde%2Fgo-kibana/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ewilde%2Fgo-kibana/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ewilde%2Fgo-kibana/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ewilde","download_url":"https://codeload.github.com/ewilde/go-kibana/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ewilde%2Fgo-kibana/sbom","scorecard":{"id":387337,"data":{"date":"2025-08-11","repo":{"name":"github.com/ewilde/go-kibana","commit":"7a2d527c3f8c4161537b48cf8945ca7598674911"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Code-Review","score":9,"reason":"Found 18/19 approved changesets -- score normalized to 9","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Mozilla Public License 2.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: containerImage not pinned by hash: docker/elasticsearch/Dockerfile:4","Warn: npmCommand not pinned by hash: docker/elasticsearch/Dockerfile:10-11","Warn: goCommand not pinned by hash: scripts/errcheck.sh:8","Info:   0 out of   1 containerImage dependencies pinned","Info:   0 out of   1 npmCommand dependencies pinned","Info:   0 out of   1 goCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 30 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":0,"reason":"24 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GO-2023-1941 / GHSA-4r8x-2p26-976p","Warn: Project is vulnerable to: GHSA-77vh-xpmg-72qh","Warn: Project is vulnerable to: GO-2022-0835 / GHSA-gp4j-w3vj-7299","Warn: Project is vulnerable to: GO-2021-0085 / GHSA-fgv8-vj5c-2ppq","Warn: Project is vulnerable to: GO-2021-0087 / GHSA-fh74-hm69-rqjw","Warn: Project is vulnerable to: GO-2022-0396 / GHSA-g54h-m393-cpwq","Warn: Project is vulnerable to: GO-2022-0914 / GHSA-c3xm-pvg7-gh7r","Warn: Project is vulnerable to: GHSA-v95c-p5hm-xq8f","Warn: Project is vulnerable to: GO-2022-0452 / GHSA-f3fp-gc8g-vw66","Warn: Project is vulnerable to: GO-2023-1683 / GHSA-g2j6-57v7-gm8c","Warn: Project is vulnerable to: GO-2023-1682 / GHSA-m8cg-xc2p-r3fc","Warn: Project is vulnerable to: GO-2024-3110 / GHSA-jfvp-7x6p-h2pv","Warn: Project is vulnerable to: GO-2022-0493 / GHSA-p782-xgp4-8hr8","Warn: Project is vulnerable to: GO-2022-0209 / GHSA-r5c5-pr8j-pfp7","Warn: Project is vulnerable to: GO-2023-1992 / GHSA-x3jr-pf6g-c48f","Warn: Project is vulnerable to: GO-2022-0229 / GHSA-cjjc-xp8v-855w","Warn: Project is vulnerable to: GO-2020-0012 / GHSA-ffhg-7mh4-33c4","Warn: Project is vulnerable to: GO-2021-0227 / GHSA-3vm4-22fp-5rfm","Warn: Project is vulnerable to: GO-2022-0968 / GHSA-gwc9-m7rh-j2ww","Warn: Project is vulnerable to: GO-2021-0356 / GHSA-8c26-wmh5-6g9v","Warn: Project is vulnerable to: GO-2024-2961","Warn: Project is vulnerable to: GO-2023-2402 / GHSA-45x7-px36-x8w8","Warn: Project is vulnerable to: GO-2024-3321 / GHSA-v778-237x-gjrc","Warn: Project is vulnerable to: GO-2025-3487 / GHSA-hcg3-q754-cr77"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-18T16:57:57.071Z","repository_id":47658802,"created_at":"2025-08-18T16:57:57.072Z","updated_at":"2025-08-18T16:57:57.072Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28844014,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-28T07:39:25.367Z","status":"ssl_error","status_checked_at":"2026-01-28T07:39:24.487Z","response_time":57,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":"2026-01-28T10:38:17.720Z","updated_at":"2026-01-28T10:38:18.252Z","avatar_url":"https://github.com/ewilde.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/ewilde/go-kibana.svg?branch=master)](https://travis-ci.org/ewilde/go-kibana) [![GoDoc](https://godoc.org/github.com/ewilde/go-kibana?status.svg)](https://godoc.org/github.com/ewilde/go-kibana)\n\n# go-kibana\ngo-kibana is a [go](https://golang.org/) client library for [kibana](https://github.com/elastic/kibana)\n\n## Installation\n\n```\ngo get github.com/ewilde/go-kibana\n```\n\n## Usage\n```go\npackage examples\n\nimport (\n\t\"github.com/ewilde/go-kibana\"\n\t\"github.com/stretchr/testify/assert\"\n)\n\nfunc createSearch() (*kibana.SearchResponse, error) {\n\tclient := kibana.NewClient(kibana.NewDefaultConfig())\n\n\trequestSearch, _ := kibana.NewSearchSourceBuilder().\n\t\tWithIndexId(client.Config.DefaultIndexId).\n\t\tWithFilter(\u0026kibana.SearchFilter{\n\t\t\tQuery: \u0026kibana.SearchFilterQuery{\n\t\t\t\tMatch: map[string]*kibana.SearchFilterQueryAttributes{\n\t\t\t\t\t\"geo.src\": {\n\t\t\t\t\t\tQuery: \"CN\",\n\t\t\t\t\t\tType:  \"phrase\",\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t}).\n\t\tBuild()\n\n\trequest, _ := kibana.NewSearchRequestBuilder().\n\t\tWithTitle(\"Geography filter on china with errors\").\n\t\tWithDisplayColumns([]string{\"_source\"}).\n\t\tWithSortColumns([]string{\"@timestamp\"}, kibana.Descending).\n\t\tWithSearchSource(requestSearch).\n\t\tBuild()\n\n\treturn client.Search().Create(request)\n}\n\nfunc createVisualization(search *kibana.Search) (*kibana.Visualization, error) {\n\tclient := kibana.NewClient(kibana.NewDefaultConfig())\n\tclient.Config.KibanaVersion = kibana.DefaultKibanaVersion6\n\n\trequest, _ := kibana.NewVisualizationRequestBuilder().\n\t\tWithTitle(\"Geography filter on china with errors\").\n\t\tWithDescription(\"Gauge visualization based on a saved search\").\n\t\tWithVisualizationState(`{\"title\":\"Chinese search\",\"type\":\"gauge\",\"params\":{\"type\":\"gauge\",\"addTooltip\":true,\"addLegend\":true,\"gauge\":{\"verticalSplit\":false,\"extendRange\":true,\"percentageMode\":false,\"gaugeType\":\"Arc\",\"gaugeStyle\":\"Full\",\"backStyle\":\"Full\",\"orientation\":\"vertical\",\"colorSchema\":\"Green to Red\",\"gaugeColorMode\":\"Labels\",\"colorsRange\":[{\"from\":0,\"to\":50},{\"from\":50,\"to\":75},{\"from\":75,\"to\":100}],\"invertColors\":false,\"labels\":{\"show\":true,\"color\":\"black\"},\"scale\":{\"show\":true,\"labels\":false,\"color\":\"#333\"},\"type\":\"meter\",\"style\":{\"bgWidth\":0.9,\"width\":0.9,\"mask\":false,\"bgMask\":false,\"maskBars\":50,\"bgFill\":\"#eee\",\"bgColor\":false,\"subText\":\"\",\"fontSize\":60,\"labelColor\":true}}},\"aggs\":[{\"id\":\"1\",\"enabled\":true,\"type\":\"count\",\"schema\":\"metric\",\"params\":{}}]}`).\n\t\tWithSavedSearchId(search.Id).\n\t\tBuild()\n\n\treturn client.Visualization().Create(request)\n}\n```\n\n### Displaying the filter with a saved search\nBy default a saved search won't display the `filter` on the search UI.\nUse the `meta` structure to enable this, as shown below:\n\n![image](https://user-images.githubusercontent.com/329397/36351467-714aeac2-14a2-11e8-9f83-225844da579e.png)\n\n```go\nclient := DefaultTestKibanaClient()\n\n\trequestSearch, err := NewSearchSourceBuilder().\n\t\tWithIndexId(client.Config.DefaultIndexId).\n\t\tWithFilter(\u0026SearchFilter{\n\t\t\tQuery: \u0026SearchFilterQuery{\n\t\t\t\tMatch: map[string]*SearchFilterQueryAttributes{\n\t\t\t\t\t\"geo.src\": {\n\t\t\t\t\t\tQuery: \"CN\",\n\t\t\t\t\t\tType:  \"phrase\",\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\tMeta: \u0026SearchFilterMetaData{\n\t\t\t\tIndex: client.Config.DefaultIndexId,\n\t\t\t\tNegate: false,\n\t\t\t\tDisabled: false,\n\t\t\t\tAlias: \"China\",\n\t\t\t\tType: \"phrase\",\n\t\t\t\tKey: \"geo.src\",\n\t\t\t\tValue: \"CN\",\n\t\t\t\tParams: \u0026SearchFilterQueryAttributes {\n\t\t\t\t\tQuery: \"CN\",\n\t\t\t\t\tType: \"phrase\",\n\t\t\t\t},\n\t\t\t},\n\t\t}).\n\t\tBuild()\n\n\trequest, err := NewSearchRequestBuilder().\n\t\tWithTitle(\"Geography filter on china\").\n\t\tWithDisplayColumns([]string{\"_source\"}).\n\t\tWithSortColumns([]string{\"@timestamp\"}, Descending).\n\t\tWithSearchSource(requestSearch).\n\t\tBuild()\n\n\tsearchApi := client.Search()\n\tresponse, err := searchApi.Create(request)\n```\n\n### All Resources and Actions\nComplete examples can be found in the [examples folder](examples) or\nin the unit tests\n\n\n## Developing\n### Running test\n**Logzio - running tests**\n\nexample:\n```\nenv ELK_VERSION=5.5.3 KIBANA_TYPE=KibanaTypeLogzio \\\n    KIBANA_URI=\"https://app-eu.logz.io\" \\\n    ELASTIC_SEARCH_PATH=\"/kibana/elasticsearch/logzioCustomerKibanaIndex\" \\\n    LOGZ_CLIENT_ID=zzedfwe3424fsdf KIBANA_USERNAME=foo@acme.com \\\n    LOGZ_IO_ACCOUNT_ID_1=123233 \\\n    LOGZ_IO_ACCOUNT_ID_2=232333\n    KIBANA_PASSWORD=mypwd make fmt test\n```\n\n**Kibana vanilla - running tests**\n\nexample:\n```bash\nenv ELK_VERSION=6.2.1 KIBANA_TYPE=KibanaTypeVanilla make\n```\n\n| Environment variables           | Description                             |\n|:----------------|:----------------------------------------|\n| ELK_VERSION| Version of ELK to run while test against logzio |\n| KIBANA_TYPE| Always  KibanaTypeLogzio|\n| KIBANA_URI| Your logz.io base uri i.e. https://app-eu.logz.io/kibana-7-6 |\n| ELASTIC_SEARCH_PATH| Always /kibana/elasticsearch/logzioCustomerKibanaIndex for logz.io|\n| LOGZ_CLIENT_ID| Obtained for the POST data call to https://logzio.auth0.com/oauth/ro. Use chrome developer tools when you login to logz.io to obtain this. |\n| LOGZ_URL| *Optional* The base URL to Logz.io, i.e https://app-eu.logz.io. Defaults to KIBANA_URI or https://app-eu.logz.io (in that order)|\n|LOGZ_MFA_SECRET| _Optional_ One time password secret, if account requires MFA. |\n| KIBANA_USERNAME| Your logz.io username|\n| KIBANA_PASSWORD| Your logz.io password|\n| LOGZ_IO_ACCOUNT_ID_1| *Optional* Your primary logz.io account id, you can obtain this from the result or GET https://app-eu.logz.io/session. If not given will not run some tests to do with switching between multiple logz.io accounts|\n| LOGZ_IO_ACCOUNT_ID_2| *Optional* A secondary primary logz.io account id, you can obtain this from the result or GET https://app-eu.logz.io/session after you switch accounts in the logz.io UI. If not given will not run some tests to do with switching between multiple logz.io accounts|\n| KIBANA_DEBUG| *Optional* If set to any value i.e. 1 will print http request and response debug information|\n\n### Adding dependencies\nThis project uses [govendor](https://github.com/kardianos/govendor) to manage dependencies\n\n#### Add /Update a package\n`govendor fetch github.com/owner/repo`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fewilde%2Fgo-kibana","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fewilde%2Fgo-kibana","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fewilde%2Fgo-kibana/lists"}