{"id":13681812,"url":"https://github.com/adamliesko/fakelog","last_synced_at":"2025-09-02T08:44:22.613Z","repository":{"id":72732158,"uuid":"107857237","full_name":"adamliesko/fakelog","owner":"adamliesko","description":"Go cmd-line / package for fake and random log data generation","archived":false,"fork":false,"pushed_at":"2017-10-27T20:08:24.000Z","size":720,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-30T06:39:45.739Z","etag":null,"topics":["fake-data","fixtures","logging"],"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/adamliesko.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}},"created_at":"2017-10-22T10:44:09.000Z","updated_at":"2024-10-11T20:46:52.000Z","dependencies_parsed_at":"2024-01-14T17:04:54.272Z","dependency_job_id":"ecfe32b8-752d-456f-aa2d-ddfd1048ea75","html_url":"https://github.com/adamliesko/fakelog","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/adamliesko/fakelog","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adamliesko%2Ffakelog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adamliesko%2Ffakelog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adamliesko%2Ffakelog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adamliesko%2Ffakelog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/adamliesko","download_url":"https://codeload.github.com/adamliesko/fakelog/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adamliesko%2Ffakelog/sbom","scorecard":{"id":165348,"data":{"date":"2025-08-11","repo":{"name":"github.com/adamliesko/fakelog","commit":"adf939507075331d88aca7b64b404f81607decf3"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"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":"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":"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":"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":"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":"Code-Review","score":0,"reason":"Found 0/5 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":"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":"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":"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":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"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"}}]},"last_synced_at":"2025-08-16T14:39:26.978Z","repository_id":72732158,"created_at":"2025-08-16T14:39:26.978Z","updated_at":"2025-08-16T14:39:26.978Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273257786,"owners_count":25073531,"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-09-02T02:00:09.530Z","response_time":77,"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":["fake-data","fixtures","logging"],"created_at":"2024-08-02T13:01:36.186Z","updated_at":"2025-09-02T08:44:22.561Z","avatar_url":"https://github.com/adamliesko.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"\n# fakelog - Fake log generation\n[![Build Status](https://secure.travis-ci.org/adamliesko/fakelog.svg)](http://travis-ci.org/adamliesko/fakelog)\n[![Go Report Card](https://goreportcard.com/badge/github.com/adamliesko/fakelog)](https://goreportcard.com/report/github.com/adamliesko/fakelog)\n[![GoDoc](https://godoc.org/github.com/adamliesko/fakelog?status.svg)](https://godoc.org/github.com/adamliesko/fakelog) \n[![Coverage Status](https://img.shields.io/coveralls/adamliesko/fakelog.svg)](https://coveralls.io/r/adamliesko/fakelog?branch=master)\n\n\n`fakelog` is a package and cmd-line tool for fake and random log\n generation. It supports writing the logs to Stdout, files or buffers,\n accepting io.WriteCloser interface. Also, support for user defined\n functions generating log lines is implemented.\n\n## Installation\n\n```\ngo get github.com/adamliesko/fakelog\n```\n\n## Usage\n\nGenerate approximately 1 rps for 5 seconds to STDOUT.\n\n```\n$ ./fakelog  --rate=2 -duration=5\n  5.122.23.165 sarah_cooper - [15/10/2017:19:50:31 +0200] \"PUT /articles HTTP/1.1\" 401 357\n  154.242.0.43 abrv - [15/10/2017:19:50:31 +0200] \"GET /article/5504 HTTP/1.1\" 200 4052\n  99.139.225.19 leet_coder - [15/10/2017:19:50:32 +0200] \"GET /article/7982 HTTP/1.1\" 301 919\n  235.105.29.223 grace_hooper - [15/10/2017:19:50:32 +0200] \"GET /login HTTP/1.1\" 503 16572\n  29.245.71.97 grace_hooper - [15/10/2017:19:50:33 +0200] \"GET /users HTTP/1.1\" 500 12429\n  89.246.77.246 sarah_cooper - [15/10/2017:19:50:33 +0200] \"GET /articles HTTP/1.1\" 403 9786\n  111.86.180.40 leet_coder - [15/10/2017:19:50:34 +0200] \"PATCH /popular HTTP/1.1\" 301 23116\n  30.192.115.4 leet_coder - [15/10/2017:19:50:34 +0200] \"DELETE /article/323 HTTP/1.1\" 401 6303\n  229.146.184.20 leet_coder - [15/10/2017:19:50:35 +0200] \"GET /popular HTTP/1.1\" 200 25138\n  12.48.221.25 john_doe - [15/10/2017:19:50:35 +0200] \"PUT /articles HTTP/1.1\" 200 7602\n```\n\nGenerate infinite number of log lines into a file, with the default rate of requests using apache combined format.\n```\n$ ./fakelog -format=combined -path=apache.log\n```\n\n Providing custom function generating log lines.\n```\nimport (\n    \"time\"\n    \"github.com/adamliesko/fakelog/generator\"\n )\n\nlogFn := func() string { return time.Now().String() + \" hey\" }\nfl := fakelog.Logger(logFn, os.Stdout, 200)\nfl.GenerateLogs()\n\nOutput:\n2017-10-17 21:05:56.026488 +0200 CEST hey\n2017-10-17 21:05:56.032415 +0200 CEST hey\n2017-10-17 21:05:56.039889 +0200 CEST hey\n...\n```\n\n## Help\n```\n$ fakelog -h\nUsage of ./fakelog:\n  -duration int\n    \tduration [s] to produce logs, 0 is inf\n  -format string\n    \tlog format (default \"common\")\n  -path string\n    \tpath to the log file (default os.Stdout)\n  -rate int\n    \tapproximate rate of requests per second, max of [rate, 10^6] (default 50)\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadamliesko%2Ffakelog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadamliesko%2Ffakelog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadamliesko%2Ffakelog/lists"}