-
Notifications
You must be signed in to change notification settings - Fork 107
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
Enable Logging for Cloud.gov App Logs #3062
Comments
Some back of the envelope math... Catalog gunicorn logs are rotated at 50MB for a maximum of 10 logs. The period of those 10 logs cover an average of 6 days. We estimate over a month, that's 10.55 GB of data. We're already using ~25GB of data from NR instrumentation ingestion already. Assuming catalog is our largest application in terms of log volume, between catalog, inventory, dashboard, we should still be under the 100GB free tier monthly limit. Beyond that, it would be $0.25/GB.
|
Could this be used for SSB managed boundary for AU-6 (3)? Can we ship logs from AWS to NR Logs? |
Yes, we're already running fluent-bit in SSB, we just need to add the NR plugin and configuration |
May need to improve server run commands to include running with gunicorn and new-relic. |
To note, we definitely need to have Aaron's custom log solution to ingest cloud.gov logs before sending them to New Relic. |
The log service exists, but it's not bound consistently to the apps between staging and prod:
|
More information on how that all works over here. |
I just ripped out the FluentBit option because it doesn't do the filter-processing that the LogStash option already does for CF logs. However, it's easy to add the New Relic output plugin to LogStash. I will do that shortly. |
I think the GSA/datagov-logstack#28 PR added most of the necessary fixes. However, the actual license key wasn't implemented. I think this will take a small redesign to implement this properly. We can either use a secret like inventory (see manifest and .profile), or we could add to the environment in a different way (removing from manifest, and adding environment variable manually), or something else I'm not thinking of. |
Current Status:
TODO:
|
That log triggered something; I think we have a different endpoint for NewRelic. Not sure how/if we can set that in the logstash new relic plugin... See https://github.com/GSA/inventory-app/blob/main/manifest.yml#L29 |
Turns out the app is crashing,
|
It's been stable for the last 24 hours, But we need to discuss the following,
|
S3 output should be fixed... That export is how our logs were being shipped to GSA's SOC. |
NR and S3 Outputs working harmoniously, |
Summary of work completed:
Current state of Logstack application:
|
User Story
In order to be able to get alerts on logs, data.gov sysadmins wants application logs on cloud.gov to be directed to New Relic.
Acceptance Criteria
[ACs should be clearly demoable/verifiable whenever possible. Try specifying them using BDD.]
WHEN an exception/error is logged
THEN New Relic receives the logs
Background
New Relic Logs provides an ingest service for application logs and enables alerting on the logs which would satisfy monitoring controls using a product we already use.
Security Considerations (required)
New Relic logs is already approved, no security concerns
Sketch
The text was updated successfully, but these errors were encountered: