{"id":14235770,"url":"https://github.com/agolo/logstash-test-runner","last_synced_at":"2025-08-11T00:32:45.406Z","repository":{"id":64055414,"uuid":"101897365","full_name":"agolo/logstash-test-runner","owner":"agolo","description":"Logstash configuration testing framework","archived":false,"fork":false,"pushed_at":"2019-02-21T03:33:28.000Z","size":64,"stargazers_count":103,"open_issues_count":2,"forks_count":25,"subscribers_count":9,"default_branch":"master","last_synced_at":"2024-08-21T21:27:36.395Z","etag":null,"topics":["devops","logstash","testing"],"latest_commit_sha":null,"homepage":"https://blog.agolo.com/the-easy-way-to-test-your-logstash-configuration-3f80eb5ffd59","language":"Shell","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/agolo.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":"2017-08-30T15:20:03.000Z","updated_at":"2024-02-29T02:13:27.000Z","dependencies_parsed_at":"2022-12-02T10:22:28.374Z","dependency_job_id":null,"html_url":"https://github.com/agolo/logstash-test-runner","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agolo%2Flogstash-test-runner","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agolo%2Flogstash-test-runner/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agolo%2Flogstash-test-runner/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agolo%2Flogstash-test-runner/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/agolo","download_url":"https://codeload.github.com/agolo/logstash-test-runner/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":229478723,"owners_count":18079372,"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":["devops","logstash","testing"],"created_at":"2024-08-20T21:02:20.550Z","updated_at":"2024-12-13T01:30:43.221Z","avatar_url":"https://github.com/agolo.png","language":"Shell","funding_links":[],"categories":["Shell"],"sub_categories":[],"readme":"# logstash-test-runner\n\n![image](http://i.imgur.com/hQm9yAb.gif)\n\nExample tests are in the `__tests__` directory.\nTo add a tests, simply add a new directory with the given input `input.log`, the ETL configuration `logstash.conf`, and the expected output `output.log`.\n\n## Prerequisites\n\n* NodeJS \u003e v8\n* Docker\n* Bash \u003e v4\n\n## Setup\n\n* Clone repository\n* Run `npm install`\n* Setup your test directory as follows\n\n```sh\n__tests__\n  crawlers\n    input.log\n    logstash.conf\n    output.log\n  mongo\n    input.log\n    logstash.conf\n    output.log\n  # ...\n```\n\n* Make sure docker is running\n* Run your tests\n\n```sh\n# ./test.sh \u003ctest-parent-directory\u003e [\u003clogstash-docker-image\u003e]\n\n# Run tests using the official Logstash 5.5.1 docker image\n./test.sh __tests__\n\n# Run tests using a locally built logstash docker image\n./test.sh __tests__ my_logstash_image:mytag\n```\n\nNOTE: Multiline logs in logstash need translate in reverse to filebeat in terms of `multiline.match` from `previous` =\u003e `after` and `next` =\u003e `before`.\n\n## Ignoring Timestamps\n\nBy default, we ignore `timestamp` and `@timestamp` fields. You can customize this in the [./test.sh](./test.sh) where we use the ignore flag like so `./log-diff.js -i`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fagolo%2Flogstash-test-runner","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fagolo%2Flogstash-test-runner","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fagolo%2Flogstash-test-runner/lists"}