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

Provide a setting to allow logging to standard output of rootless containers #23103

Open
aloene opened this issue Mar 6, 2025 · 1 comment
Open
Labels
Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc. triaged

Comments

@aloene
Copy link

aloene commented Mar 6, 2025

Summary

When configuring logs, we can choose amongst file, screen, syslog, database.
Using file + "php://stdout" or "/dev/stdout" does not allow to push logs to the Standard output.
There are either permissions issues (/dev/stdout) or weird behavior (php://stdout : wrong computed path, and "frozen" behavior when fixing path in code)

Your Environment

  • Matomo Version: 5.2.2
  • PHP Version: 8.2.27
  • Server Operating System: Debian bookworm (rootless container on OpenShift 4.17)

Would it be possible to provide a setting so logs could be output to the PHP error_log or to the Standard Output/Error, please ? Otherwise, any other (simple) approach ? For now I solved the issue by manually creating a pipe on filesystem and redirecting its input to stdout with cat.

@aloene aloene added Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc. To Triage An issue awaiting triage by a Matomo core team member labels Mar 6, 2025
@des-innocraft
Copy link

Hi @aloene ,
Thank you for bringing this to our attention and for your valuable input.Your suggestion seems like a valuable enhancement to our product.

We will forward this to our Product team for review and future consideration.

If you have any additional details or questions, please feel free to share them here.

@des-innocraft des-innocraft added triaged and removed To Triage An issue awaiting triage by a Matomo core team member labels Mar 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc. triaged
Projects
None yet
Development

No branches or pull requests

2 participants