All cloud infrastructure projects include New Relic log management. The service is pre-configured to aggregate all log data from your Staging and Production environments and display it in a centralized log management dashboard.
The aggregated data includes information from the following logs:
ece-tools
and application logs from the ~/var/log
directoryvar/log/platform/<project-ID>
directoryWhen your project is connected to New Relic, you can use the New Relic Logs service to complete tasks like the following:
Use the New Relic Logs application to search across the aggregated log data and troubleshoot application, infrastructure, CDN, and WAF errors. You can create charts, dashboards, and alerts using log data collected from New Relic APM and Infrastructure services.
To use the New Relic Logs application:
Log in to your New Relic account.
Select Logs from the Explorer navigation menu.
Verify that your Account is selected at the top of the All logs view.
Select a time range for the Logs query.
To review infrastructure log data for cloud services (logs from ~/var/log/
), enter the query string has: "filePath"
in the Search for Logs field. Then, click Query logs.
The names of the log files are stored in the filePath
column, with full paths to the log file.
To review Fastly log data, enter the query string has: "client_ip"
in the Search for Logs field. Then, click Query logs.
To filter the Fastly log results by country code, click Add column, then select geo_country_code.
You can save the query view from the Saved views dropdown. Click Create new, provide a name, select options, and click Save view.
See Get started with log management and Introduction to the New Relic query language on the New Relic Docs site.