Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for local files to --log-output #2249

Closed
na-- opened this issue Nov 18, 2021 · 5 comments · Fixed by #2285
Closed

Add support for local files to --log-output #2249

na-- opened this issue Nov 18, 2021 · 5 comments · Fixed by #2285

Comments

@na--
Copy link
Member

na-- commented Nov 18, 2021

Feature Description

--log-output currently supports only none (disabled), stdout, stderr and loki.

Supporting local files should be simple and will be beneficial for debugging, or in CI environments, and it can also be used by log-forwarding tools to ship the logs pretty much anywhere. Combined with the logformat option, this feature should be pretty versatile.

Somewhat connected issue: #1939

@naoyukis
Copy link

Can I try this issue?

@na--
Copy link
Member Author

na-- commented Nov 22, 2021

Sure!

@codebien
Copy link
Contributor

codebien commented Dec 6, 2021

@na-- Do we expect to get some sort of rotation or is it something we would encourage to delegate to other tools?

@na--
Copy link
Member Author

na-- commented Dec 7, 2021

We should probably start without that, we can always add it later if there's demand for it.

@oleiade
Copy link
Member

oleiade commented Dec 15, 2021

Some context is probably missing on my side, but what's the delta between redirecting stdout/stderr to a file from the command-line, and having k6 do it for us instead? As in, something along the lines of k6 run --log-output stderr samples/http_batch.js &> output.log.

codebien pushed a commit that referenced this issue Feb 9, 2022
@na-- na-- added this to the v0.37.0 milestone Feb 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants