{"id":26718965,"url":"https://github.com/krivachy/logzio-search-export","last_synced_at":"2026-03-09T18:11:15.216Z","repository":{"id":42876094,"uuid":"257051855","full_name":"krivachy/logzio-search-export","owner":"krivachy","description":"CLI to export/dump a search result from Logz.io","archived":false,"fork":false,"pushed_at":"2022-03-26T13:28:47.000Z","size":138,"stargazers_count":6,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-09T10:18:04.388Z","etag":null,"topics":["cli","javascript","logzio","logzio-search","nodejs"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/krivachy.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":"2020-04-19T16:47:34.000Z","updated_at":"2025-03-31T16:57:36.000Z","dependencies_parsed_at":"2022-08-21T18:20:25.576Z","dependency_job_id":null,"html_url":"https://github.com/krivachy/logzio-search-export","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/krivachy/logzio-search-export","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krivachy%2Flogzio-search-export","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krivachy%2Flogzio-search-export/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krivachy%2Flogzio-search-export/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krivachy%2Flogzio-search-export/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/krivachy","download_url":"https://codeload.github.com/krivachy/logzio-search-export/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krivachy%2Flogzio-search-export/sbom","scorecard":{"id":570522,"data":{"date":"2025-08-11","repo":{"name":"github.com/krivachy/logzio-search-export","commit":"1468a5dc0f8caaf6534f99a78e372d42cd42c337"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.7,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/10 approved changesets -- score normalized to 0","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":"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":"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":"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":"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":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"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":"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":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"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":"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: MIT License: 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":"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":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"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":"Vulnerabilities","score":0,"reason":"14 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-93q8-gq69-wqmw","Warn: Project is vulnerable to: GHSA-4w2v-q235-vp99","Warn: Project is vulnerable to: GHSA-cph5-m8f7-6c5x","Warn: Project is vulnerable to: GHSA-wf5p-g6vw-rhxx","Warn: Project is vulnerable to: GHSA-jr5f-v2jv-69x6","Warn: Project is vulnerable to: GHSA-74fj-2j2h-c42q","Warn: Project is vulnerable to: GHSA-pw2r-vq6v-hr8c","Warn: Project is vulnerable to: GHSA-jchw-25xp-jwwc","Warn: Project is vulnerable to: GHSA-cxjh-pqwp-8mfp","Warn: Project is vulnerable to: GHSA-p6mc-m468-83gw","Warn: Project is vulnerable to: GHSA-29mw-wpgm-hmr9","Warn: Project is vulnerable to: GHSA-35jh-r3h4-6jhm","Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw"],"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-20T16:13:25.837Z","repository_id":42876094,"created_at":"2025-08-20T16:13:25.837Z","updated_at":"2025-08-20T16:13:25.837Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30306184,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-09T17:35:44.120Z","status":"ssl_error","status_checked_at":"2026-03-09T17:35:43.707Z","response_time":61,"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":["cli","javascript","logzio","logzio-search","nodejs"],"created_at":"2025-03-27T17:50:56.079Z","updated_at":"2026-03-09T18:11:15.180Z","avatar_url":"https://github.com/krivachy.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# logzio-search-export\n\n\u003e CLI to export/dump a search result from Logz.io up to millions of log entries\n\n![Console output](img/logzio-search-export-recording.gif)\n\nThis CLI uses Logz.io's scroll API to export a search in batches of 1000. It can write to a file or pipe to stdout for\nfurther processing.\n\n## Install\n\nMake sure you have node + npm installed (e.g. `brew install node`)\n\n```\nnpm install -g logzio-search-export\n```\n\nTo run without installing globally:\n\n```\nnpx logzio-search-export \u003csee usage\u003e\n```\n\n## Usage\n\n```\n$ export LOGZIO_API_TOKEN=\u003ctoken\u003e\n$ export LOGZIO_API_REGION=\u003cregion\u003e\n$ logzio-search-export --help\nUsage: logzio-search-export [options]\n\nOptions:\n  -t, --api-token \u003capi-token\u003e  Logz.io API token [envvar: LOGZIO_API_TOKEN]\n  -r, --region \u003cregion\u003e        Logz.io region for account, defaults to eu [envvar: LOGZIO_API_REGION]\n\n  -s, --search \u003csearch\u003e        A simple search term. For more complex queries pipe in via stdin.\n  -e, --extract \u003cextract\u003e      Log entry fields to extract in output (can be provided multiple times) (default: all fields are returned) (default: [])\n  --start \u003cstart-time\u003e         A Logz,io compatible query start time (default: \"now-5m\")\n  --end \u003cend-time\u003e             A Logz.io compatible end time (default: \"now\")\n\n  -f, --format \u003cformat\u003e        Output format [json, csv] (default: \"json\")\n  -o, --output \u003coutput\u003e        Output file to write results to (default: stdout)\n\n  -v, --verbose                Print verbose output\n  -h, --help                   display help for command\n```\n\n## Examples\n\n#### Simple example\n\n- extracting the @timestamp and message fields\n- query string for java errors\n- a date range for yesterday\n- an output file to write to\n\n```shell script\nlogzio-search-export -e @timestamp -e message -s 'level: ERROR AND \"java\"' --start now-1d/d --end now/d -o log_lines.json\n```\n\n#### Stdout example\n\nNote: Piping to stdout to a file is slower than using the `-o` flag\n\n```shell script\n# To a file\nlogzio-search-export -e message -s 'level: ERROR AND \"java\"' \u003e log_lines.json\n# Or to another program\nlogzio-search-export -e message -s 'level: ERROR AND \"java\"' | jq .\n```\n\n#### Complex query example\n\n- extracting the @timestamp and message fields\n- output to log lines\n- query.json is a file that contains an [elastic search query JSON][1]\n\n```shell script\necho \"{ ... }\" \u003e query.json\nlogzio-search-export -e @timestamp -e message -o log_lines.json \u003c query.json\n```\n\n#### CSV example\n\n```shell script\nlogzio-search-export --format csv -o log_lines.csv \u003c query.json\n```\n\n#### Minimalistic example\n\nWill retain all fields on the log entry (quite a lot of data)\n\n```shell script\nlogzio-search-export -o log_lines.json \u003c query.json\n```\n\n\n#### Different regions\n\nYour account is limited to one [Logz.io region][2] so make sure you're selecting one of:\n\n- `eu` (default): app-eu.logz.io\n- `us`: app.logz.io\n- `au`: app-au.logz.io\n- `ca`: app-ca.logz.io\n- `nl`: app-nl.logz.io\n- `wa`: app-wa.logz.io\n\nYou can export the `LOGZIO_API_REGION` environment variable to not have to provide the `--region` flag on each run.\n\n## License\n\n[MIT](./LICENSE)\n\n[1]: https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl.html\n[2]: https://docs.logz.io/user-guide/accounts/account-region.html\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkrivachy%2Flogzio-search-export","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkrivachy%2Flogzio-search-export","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkrivachy%2Flogzio-search-export/lists"}