-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
What's New - Kong Gateway Logs Integration
- Loading branch information
Showing
1 changed file
with
71 additions
and
0 deletions.
There are no files selected for viewing
71 changes: 71 additions & 0 deletions
71
src/content/whats-new/2024/10/Whats-new-10-23-Kogs Gateway Logs Integration.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
--- | ||
title: 'Forward logs from Kong Gateway to New Relic' | ||
summary: 'Gain valuable insights into API gateway performance, health, security, and usage' | ||
releaseDate: '2024-10-26' | ||
learnMoreLink: 'https://docs.newrelic.com/docs/logs/forward-logs/kong-gateway/' | ||
getStartedLink: 'https://docs.newrelic.com/docs/logs/ui-data/use-logs-ui/’ | ||
--- | ||
Today’s IT organizations using Kong Gateway often struggle to gain comprehensive visibility into their API performance,health, and security which can lead to unexpected issues, downtime, and security vulnerabilities. | ||
New Relic's integration with Kong Gateway, using the File Log plugin, provides a robust solution for: | ||
- **Centralized logging:** Kong Gateway logs are instantly contextualized with other application and telemetry data for a unified view. | ||
- **Enhanced visibility:** Gain deeper insights into API gateway performance, health, and security. | ||
- **Proactive issue detection:** Identify and address potential problems before they impact users. | ||
- **Improved security:** Monitor for security threats and anomalies. | ||
Check warning on line 15 in src/content/whats-new/2024/10/Whats-new-10-23-Kogs Gateway Logs Integration.md GitHub Actions / vale-linter
|
||
- **Optimized performance:** Identify and resolve performance bottlenecks before they impact uyser experience. | ||
|
||
## Forward Kong Gateway logs | ||
|
||
The File Log plugin for Kong Gateway enables the forwarding of logs to New Relic by directing them to standard output ( (/dev/stdout). This setup allows NewRelic’s Kubernetes logging plugin integration to collect and forward the logs. | ||
|
||
# Configuration Setup: | ||
|
||
**Step 1:** Install the New Relic Kubernetes Logging Integration | ||
Before configuring the File Log plugin, ensure you have the New Relic Kubernetes logging integration installed. Follow the [instructions](/docs.newrelic.com/docs/logs/forward-logs/kubernetes-plugin-log-forwarding/) to set this up. | ||
|
||
**Step 2:** Install and Configure Kong File Log Plugin | ||
Once the New Relic Logging Integration is installed, configure the File Log to output logs to `/dev/stdout` . | ||
Check warning on line 28 in src/content/whats-new/2024/10/Whats-new-10-23-Kogs Gateway Logs Integration.md GitHub Actions / vale-linter
|
||
Here is an example manifest for enabling the File Log plugin: | ||
|
||
```yaml | ||
# file-log-plugin.yaml | ||
apiVersion: configuration.konghq.com/v1 | ||
kind: KongClusterPlugin | ||
metadata: | ||
name: global-file-log | ||
annotations: | ||
kubernetes.io/ingress.class: kong | ||
labels: | ||
global: "true" | ||
config: | ||
path: "/dev/stdout" # Directs logs through a standard output so New Relic can receive Kong Gateway logs | ||
plugin: file-log | ||
``` | ||
|
||
|
||
**Step 3:** Apply the Log File Log plugin Configuration | ||
Deploy the File Log plugin configuration to your Kubenrnetes cluster using the following command: | ||
|
||
```bash | ||
kubectl apply -f file-log-plugin.yaml -n kong | ||
``` | ||
Replace `file-log-plugin.yaml` with the actual filename of your manifest | ||
|
||
**Step 4:** Verify the Configuration | ||
After applying the configuration, verify that logs are being forwarded to New Relic by checking the [New Relic Logs UI](https://one.newrelic.com/launcher/logger.log-launcher)** for entries from Kong Gateway | ||
Check warning on line 56 in src/content/whats-new/2024/10/Whats-new-10-23-Kogs Gateway Logs Integration.md GitHub Actions / vale-linter
|
||
|
||
|
||
By forwarding Kong Gateway logs to New Relic, organizations can effectively monitor and manage their API gateways,ensuring optimal performance and security. | ||
Check warning on line 59 in src/content/whats-new/2024/10/Whats-new-10-23-Kogs Gateway Logs Integration.md GitHub Actions / vale-linter
|
||
|
||
## To get started: | ||
|
||
1. [Read our tutorial] (https://docs.newrelic.com/docs/tutorial-manage-large-log-volume/get-started-managing-large-logs/) | ||
2. [Review our docs page](https://docs.newrelic.com/docs/logs/forward-logs/kong-gateway/) | ||
3. [Explore our Logs UI overview](https://docs.newrelic.com/docs/logs/ui-data/use-logs-ui/) | ||
|
||
|
||
|
||
|
||
|
||
|