{"id":13480807,"url":"https://github.com/mingrammer/flog","last_synced_at":"2025-10-08T16:08:35.395Z","repository":{"id":40618891,"uuid":"106717467","full_name":"mingrammer/flog","owner":"mingrammer","description":":tophat: A fake log generator for common log formats","archived":false,"fork":false,"pushed_at":"2024-06-26T11:08:01.000Z","size":1102,"stargazers_count":1210,"open_issues_count":28,"forks_count":142,"subscribers_count":9,"default_branch":"main","last_synced_at":"2025-05-29T13:11:49.993Z","etag":null,"topics":["apache","faker","generator","log","syslog"],"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/mingrammer.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-10-12T16:23:02.000Z","updated_at":"2025-05-29T10:36:48.000Z","dependencies_parsed_at":"2024-01-03T04:14:01.682Z","dependency_job_id":"ac8629d3-8a98-4627-a89c-1cb70cf1eaf7","html_url":"https://github.com/mingrammer/flog","commit_stats":{"total_commits":129,"total_committers":9,"mean_commits":"14.333333333333334","dds":0.06976744186046513,"last_synced_commit":"30610f1b419f3fb370d933373f5ecf629cc00947"},"previous_names":[],"tags_count":22,"template":false,"template_full_name":null,"purl":"pkg:github/mingrammer/flog","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mingrammer%2Fflog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mingrammer%2Fflog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mingrammer%2Fflog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mingrammer%2Fflog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mingrammer","download_url":"https://codeload.github.com/mingrammer/flog/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mingrammer%2Fflog/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278972827,"owners_count":26078112,"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-08T02:00:06.501Z","response_time":56,"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":["apache","faker","generator","log","syslog"],"created_at":"2024-07-31T17:00:45.279Z","updated_at":"2025-10-08T16:08:35.389Z","avatar_url":"https://github.com/mingrammer.png","language":"Go","readme":"# Flog\n\n[![go report card](https://goreportcard.com/badge/github.com/mingrammer/flog)](https://goreportcard.com/report/github.com/mingrammer/flog) [![docker download](https://img.shields.io/docker/pulls/mingrammer/flog.svg)](https://hub.docker.com/r/mingrammer/flog)\n\nflog is a fake log generator for common log formats such as apache-common, apache error and RFC3164 syslog.\n\nIt is useful for testing some tasks which require log data like amazon kinesis log stream test.\n\n\u003e Thanks to [gofakeit](https://github.com/brianvoe/gofakeit) 😘\n\n## Installation\n\n### Using go install\n\n```bash\ngo install github.com/mingrammer/flog\n```\n\n### Using [homebrew](https://brew.sh)\n\n```\nbrew tap mingrammer/flog\nbrew install flog\n```\n\n### Using .tar.gz archive\n\nDownload gzip file from [Github Releases](https://github.com/mingrammer/flog/releases/latest) according to your OS. Then, copy the unzipped executable to under system path.\n\n### Using [docker](https://www.docker.com)\n\n```\ndocker run -it --rm mingrammer/flog\n```\n\n## Usage\n\nThere are useful options. (`flog --help`)\n\n```console\nOptions:\n  -f, --format string      log format. available formats:\n                           - apache_common (default)\n                           - apache_combined\n                           - apache_error\n                           - rfc3164\n                           - rfc5424\n                           - json\n  -o, --output string      output filename. Path-like is allowed. (default \"generated.log\")\n  -t, --type string        log output type. available types:\n                           - stdout (default)\n                           - log\n                           - gz\n  -n, --number integer     number of lines to generate.\n  -b, --bytes integer      size of logs to generate (in bytes).\n                           \"bytes\" will be ignored when \"number\" is set.\n  -s, --sleep duration     fix creation time interval for each log (default unit \"seconds\"). It does not actually sleep.\n                           examples: 10, 20ms, 5s, 1m\n  -d, --delay duration     delay log generation speed (default unit \"seconds\").\n                           examples: 10, 20ms, 5s, 1m\n  -p, --split-by integer   set the maximum number of lines or maximum size in bytes of a log file.\n                           with \"number\" option, the logs will be split whenever the maximum number of lines is reached.\n                           with \"byte\" option, the logs will be split whenever the maximum size in bytes is reached.\n  -w, --overwrite          overwrite the existing log files.\n  -l, --loop               loop output forever until killed.\n```\n\n```console\n# Generate 1000 lines of logs to stdout\n$ flog\n\n# Generate 200 lines of logs with a time interval of 10s for each log. It doesn't actually sleep while generating\n$ flog -s 10s -n 200 \n\n# Generate a single log file with 1000 lines of logs, then overwrite existing log file\n$ flog -t log -w\n\n# Generate a single log gzip file with 3000 lines of logs every 300ms. It actually sleep (delay) while generating\n$ flog -t gz -o log.gz -n 3000 -d 10s\n\n# Generate logs up to 10MB and split log files every 1MB in \"web/log/*.log\" path with \"apache combined\" format\n$ flog -t log -f apache_combined -o web/log/apache.log -b 10485760 -p 1048576\n\n# Generate logs in rfc3164 format infinitely until killed\n$ flog -f rfc3164 -l\n```\n\n## Supported Formats\n\n- Apache common\n- Apache combined\n- Apache error\n- RFC3164\n- RFC5424\n- Common log fomat\n- JSON\n\n## Supported Outputs\n\n- Stdout\n- File\n- Gzip\n\n## License\n\n[MIT](LICENSE)\n","funding_links":[],"categories":["Development","Go","\u003ca name=\"utility\"\u003e\u003c/a\u003eUtilities"],"sub_categories":["Devops"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmingrammer%2Fflog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmingrammer%2Fflog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmingrammer%2Fflog/lists"}