Compatibility and requirements
Logs requires an active trial or paid subscription for any New Relic product.
To use New Relic Logs with the Kubernetes plugin, ensure your configuration meets the following requirements:
Enable Kubernetes for New Relic Logs
To enable New Relic Logs with the Fluent Bit Kubernetes plugin:
- Install the Kubernetes plugin.
- Configure the Kubernetes plugin.
- Generate some traffic and wait a few minutes, then check your account for data.
- Optional: Configure Fluent Bit parsing.
Install the Kubernetes plugin
To install the Kubernetes plugin:
- Navigate to the Kubernetes plugin GitHub repository.
- From the repository page, clone or download the repository.
Configure the Kubernetes plugin
- Deploying as Helm chart (Recommended)
To deploy your Kubernetes plugin as a Helm chart:
Run the following command in your terminal or command-line interface, replacing the placeholder value your-license-key with your New Relic license key:
helm install --set licenseKey=your-license-key ./helm/newrelic-logging
For EU users, add
--set fluentBit.endpoint=https://log-api.eu.newrelic.com/log/v1to the helm install command above.
- Configure manually
To configure your Kubernetes plugin manually:
In the downloaded
new-relic-fluent-plugin.ymlfile, replace the placeholder value <LICENSE_KEY > with your New Relic license key.
For EU users, replace the
ENDPOINTenvironment variable to
Once the License key has been added, run the following command in your terminal or command-line interface:
kubectl apply -f .
View log data
SELECT * FROM Log
Optional: Configure parsing
By default, tailing is set to
/var/log/containers/*.log. To change this setting, replace the default path with your preferred path in the
You are receiving the following error:
[ warn] [filter_kube] invalid pattern for given tag
new-relic-fluent-plugin.yml file, replace the default code
/var/log/containers/*.log with the following:
Now that you've enabled Logs, here are some potential next steps:
- Explore your data using the Logs UI.
- Configure your agent to see contextual log data, such as distributed tracing, stack traces, application logs, and more.
- Query your data and create custom dashboards, charts, or alerts.
If no data appears after you enable New Relic Logs, follow the troubleshooting procedures.