{"id":20638694,"url":"https://github.com/bd808/ggml","last_synced_at":"2026-03-03T02:31:33.756Z","repository":{"id":31835912,"uuid":"35402861","full_name":"bd808/ggml","owner":"bd808","description":":mag: Go Get My Logs - Logstash search client written in Go (golang)","archived":false,"fork":false,"pushed_at":"2015-10-05T17:58:51.000Z","size":176,"stargazers_count":8,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-20T10:27:40.707Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bd808.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":"2015-05-11T04:53:08.000Z","updated_at":"2020-08-20T00:26:37.000Z","dependencies_parsed_at":"2022-09-10T13:01:52.781Z","dependency_job_id":null,"html_url":"https://github.com/bd808/ggml","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bd808/ggml","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bd808%2Fggml","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bd808%2Fggml/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bd808%2Fggml/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bd808%2Fggml/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bd808","download_url":"https://codeload.github.com/bd808/ggml/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bd808%2Fggml/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30030829,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-03T00:31:48.536Z","status":"online","status_checked_at":"2026-03-03T02:00:07.650Z","response_time":61,"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-16T15:19:08.543Z","updated_at":"2026-03-03T02:31:33.740Z","avatar_url":"https://github.com/bd808.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"Go Get My Logs\n==============\n\nSearch and display Logstash formatted logs from an Elasticsearch server.\n\nUsage\n-----\n```\nusage: ggml [\u003cflags\u003e] [\u003cquery\u003e]\n\nSearch for logs in a Logstash Elasticsearch index.\n\nFlags:\n  --help              Show help.\n  -u, --url=http://127.0.0.1:9200\n                      Server URL\n  -m, --must=MUST     Must match\n  -x, --must-not=MUST-NOT\n                      Must not match\n  --start=START       Oldest timestamp to match\n  --end=END           Newest timestamp to match\n  -d, --duration=15m  Width of timestamp window\n  -t, --tail          Tail event stream\n  -n, --num=100       Number of results to fetch\n  --index-format=\"logstash-%Y.%m.%d\"\n                      Index name format\n  -o, --output-format=\"{@timestamp} {host} {type} {level}: {message}\"\n                      Output format\n  --verbose           Enable verbose mode\n  --debug             Enable debug mode\n  --version           Show application version.\n\nArgs:\n  [\u003cquery\u003e]  Elasticsearch query string\n```\n\nSome settings can be provided via environment variables:\n* `GGML_URL`: Server URL\n* `GGML_OUTPUT`: Output format\n\nExamples:\n```\n# Custom output format for a specific event type\n$ export GGML_OUTPUT=\"{@timestamp} {level} {channel} {host} {wiki} - {message}\"\n\n# Query string\n$ ggml type:mediawiki AND NOT channel:api-feature-usage AND host:mw1070\n\n# With must/mustNot filters (filters are cached by Elastcisearch)\n$ ggml -m type:mediawiki -x channel:api-feature-usage -m host:mw1070\n```\n\nBuild\n-----\nYou need go version 1.3 or higher to build ggml. Ubuntu precise installs go 1.2 and both build options below\nwill fail. So, install from src or a prebuilt binary from https://golang.org/doc/install\n```\nexport GOPATH=~/golang # Or any other directory you'd like to use\nmkdir -p $GOPATH\n\ngo get github.com/bd808/ggml\n\n$GOPATH/bin/ggml --help\n```\n\nBuild Debian package\n```\napt-get install dpkg-dev golang-go\ngit clone https://github.com/bd808/ggml.git\ncd ggml\ndpkg-buildpackage -b -us -uc\n```\n\nLicense\n-------\n\nGo Get My Logs is licensed under the MIT license. See the `LICENSE` file for\nmore details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbd808%2Fggml","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbd808%2Fggml","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbd808%2Fggml/lists"}