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 structured logging to newrelic daemon #1016

Open
blkperl opened this issue Feb 5, 2025 · 0 comments
Open

Add structured logging to newrelic daemon #1016

blkperl opened this issue Feb 5, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@blkperl
Copy link

blkperl commented Feb 5, 2025

Summary

The current logging by the new relic daemon is unstructured making it difficult to use in log aggregation tooling

Desired Behavior

A configuration option exists to switch the newrelic daemon to structured logging

Possible Solution

There are many golang logging libraries to choose from that support structured logging

Additional context

Ref:

Example unstructured logs

2025/02/05 21:39:37.653586 (17) Warning: app "myapp" with run id "BVWmSdjEPdh_AC6zhD3n5yBno8mUAAMBACdHIQEAAAARAgRDPPbVcBFejH5m3mYtlxJR0Lrjs_Fmz-7w7jvsChNBkXzDbDcDAAkxMS41LjAuMTgAF2RydXBhbC02ODk2NmQ4NTRiLXdoaDR3ABBw" received response code: 503: NR service unavailable

2025/02/05 21:56:17.852275 (17) Info: Reporting to: https://rpm.newrelic.com/accounts/redacted/applications/redacted

2025/02/05 21:56:17.852613 (17) Info: app 'myapp' connected with run id 'BWBkVJWUqAnyAC6zhD281wdno97oAAMBACdHIQEAAAARAgRDKYYecBFejH5m3mYtlxJR0Lrjs_Fmz-7w7jvsChNBkXzDbDcDAAkxMS41LjAuMTgAF2RydXBhbC02NTk3NGQ2Yzk2LWprY2o0A'
@blkperl blkperl added the enhancement New feature or request label Feb 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant