{"id":18376533,"url":"https://github.com/javaducky/xk6-output-error","last_synced_at":"2025-08-21T17:09:30.618Z","repository":{"id":144878948,"uuid":"489049280","full_name":"javaducky/xk6-output-error","owner":"javaducky","description":"A k6 extension for  add more information into StdErr","archived":false,"fork":false,"pushed_at":"2022-05-05T16:46:11.000Z","size":18,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-04-11T04:43:43.546Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/javaducky.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2022-05-05T16:32:40.000Z","updated_at":"2022-05-05T16:46:14.000Z","dependencies_parsed_at":null,"dependency_job_id":"a5f35dcc-57dc-4b7e-83e7-058f0fac1fd3","html_url":"https://github.com/javaducky/xk6-output-error","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/javaducky%2Fxk6-output-error","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/javaducky%2Fxk6-output-error/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/javaducky%2Fxk6-output-error/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/javaducky%2Fxk6-output-error/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/javaducky","download_url":"https://codeload.github.com/javaducky/xk6-output-error/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248345284,"owners_count":21088242,"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-11-06T00:23:51.062Z","updated_at":"2025-04-11T04:43:47.492Z","avatar_url":"https://github.com/javaducky.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# xk6-output-error\n\nThis is a [k6](https://go.k6.io/k6) extension using the [xk6](https://github.com/grafana/xk6) system.\n`xk6-output-error` is a k6 extension to add more information into StdErr k6. Moreover, you can send logs with errors in your Elasticsearch or other log storage system used for this vector.dev, filebeat, etc. \n\n## Contents\n* [Build](#build)\n* [Usage](#usage)\n\n## Build\n\nTo build a `k6` binary with this extension, first ensure you have the prerequisites:\n\n- [Go toolchain](https://go101.org/article/go-toolchain.html)\n- Git\n\nThen:\n\n1. [Install](https://github.com/grafana/xk6) `xk6`:\n\n  ```shell\ngo install go.k6.io/xk6/cmd/xk6@latest\n  ```\n\n2. Build the binary:\n\n  ```shell\nCGO_ENABLED=1\nxk6 build --with github.com/tinkoff/xk6-output-error@latest\n  ```\n\nIf you use Windows:\n\n```shell\nset CGO_ENABLED=1\nxk6 build master --with github.com/tinkoff/xk6-output-error\n```\n\n## Usage\n\nYou can use default params:\n\n```shell\nk6 run -o xk6-output-error example.js\n```\n\nAlso, you can add special fields for output:\n\n```shell\nk6 run -o xk6-output-error=fields=\"proto,tls_version\" example.js\n```\n\nOr set an environment variable:\n\n```shell\nexport K6_OUTPUTERROR_FIELDS=\"proto,tls_version\"\nk6 run -o xk6-output-error example.js\n```\n\nMoreover, you can set output into a file:\n\n```shell\nk6 run -o xk6-output-error=fields=\"proto,tls_version\" example.js 2\u003eerror.log\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjavaducky%2Fxk6-output-error","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjavaducky%2Fxk6-output-error","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjavaducky%2Fxk6-output-error/lists"}