{"id":15044631,"url":"https://github.com/elastic/makelogs","last_synced_at":"2025-04-13T00:48:07.814Z","repository":{"id":39098616,"uuid":"20926479","full_name":"elastic/makelogs","owner":"elastic","description":null,"archived":false,"fork":false,"pushed_at":"2024-08-19T08:50:00.000Z","size":666,"stargazers_count":110,"open_issues_count":12,"forks_count":42,"subscribers_count":300,"default_branch":"master","last_synced_at":"2025-04-04T03:11:20.795Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/elastic.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2014-06-17T14:23:19.000Z","updated_at":"2025-02-05T19:57:12.000Z","dependencies_parsed_at":"2024-02-13T16:42:46.561Z","dependency_job_id":"93614c54-8697-4a3d-90e3-586a5f3f30df","html_url":"https://github.com/elastic/makelogs","commit_stats":{"total_commits":151,"total_committers":24,"mean_commits":6.291666666666667,"dds":0.7417218543046358,"last_synced_commit":"f6e57db7dd16baab632fccd9ec0fdffd51e4aebd"},"previous_names":["spenceralger/makelogs"],"tags_count":45,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elastic%2Fmakelogs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elastic%2Fmakelogs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elastic%2Fmakelogs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elastic%2Fmakelogs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/elastic","download_url":"https://codeload.github.com/elastic/makelogs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248650437,"owners_count":21139672,"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","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-09-24T20:50:49.543Z","updated_at":"2025-04-13T00:48:07.786Z","avatar_url":"https://github.com/elastic.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @elastic/makelogs\n\nSimple generator used to push fake HTTP traffic logs into elasticsearch. It uses the node.js client.\n\nThis version of makelogs is designed to work with the latest builds from elasticsearch master, and is not compatible with previous versions.\n\nEvents are pushed into `logstash-YYYY.MM.DD` formatted indices (configurable using `--indexPrefix`), using the bulk API, and are easily consumed by Kibana.\n\nDocuments look like this:\n\n```json\n{\n  \"_index\": \"logstash-2014.06.17\",\n  \"_type\": \"_doc\",\n  \"_id\": \"706786\",\n  \"_score\": 11.412156,\n  \"_source\": {\n     \"index\": \"logstash-2014.06.17\",\n     \"@timestamp\": \"2014-06-17T17:00:27.053Z\",\n     \"ip\": \"225.27.202.82\",\n     \"extension\": \"html\",\n     \"response\": \"200\",\n     \"geo\": {\n        \"coordinates\": [\n           44.23107,\n           -94.99893444\n        ],\n        \"src\": \"IM\",\n        \"dest\": \"PK\",\n        \"srcdest\": \"IM:PK\"\n     },\n     \"@tags\": [\n        \"error\",\n        \"info\"\n     ],\n     \"utc_time\": \"2014-06-17T17:00:27.053Z\",\n     \"referer\": \"http://nytimes.com/error/gemini-11\",\n     \"agent\": \"Mozilla/5.0 (X11; Linux x86_64; rv:6.0a1) Gecko/20110421 Firefox/6.0a1\",\n     \"clientip\": \"225.27.202.82\",\n     \"bytes\": 5108.1583889899775,\n     \"request\": \"/ivan-bella.html\",\n     \"@message\": \"225.27.202.82 - - [2014-06-17T17:00:27.053Z] \\\"GET /ivan-bella.html HTTP/1.1\\\" 200 5108.1583889899775 \\\"-\\\" \\\"Mozilla/5.0 (X11; Linux x86_64; rv:6.0a1) Gecko/20110421 Firefox/6.0a1\\\"\",\n     \"spaces\": \"this   is   a   thing    with lots of     spaces       wwwwoooooo\",\n     \"xss\": \"\u003cscript\u003econsole.log(\\\"xss\\\")\u003c/script\u003e\",\n     \"headings\": [\n        \"\u003ch3\u003erobert-satcher\u003c/h5\u003e\",\n        \"http://twitter.com/success/scott-altman\"\n     ],\n     \"links\": [\n        \"mamoru-mohri@www.slate.com\",\n        \"http://www.slate.com/info/boris-yegorov\",\n        \"www.twitter.com\"\n     ],\n     \"machine\": {\n        \"os\": \"win 7\",\n        \"ram\": 17179869184\n     }\n  }\n}\n```\n\n## to install\n\n```sh\nnpm install -g @elastic/makelogs\n```\n\nthen run `makelogs --help` for usage info:\n\n```\n$ makelogs --help\nA utility to generate sample log data.\n\nUsage: makelogs [options]\n\nOptions:\n  ...\n```\n\n\nThe tool is, admittedly, not super configurable. Just tell it how many events you want, how many days to generate data for, and it will cruise.\n\n# Do not use this on any sort of production elasticsearch installation.\n\nThe event stream can be a tad unforgiving, and could cause some damage to an elasticsearch cluster under load. It is designed for debugging locally.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felastic%2Fmakelogs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Felastic%2Fmakelogs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felastic%2Fmakelogs/lists"}