Skip to content

Commit

Permalink
fix(Whats new): Fixed builds errors
Browse files Browse the repository at this point in the history
  • Loading branch information
nbaenam committed Oct 24, 2024
1 parent ffd8164 commit 5bfb727
Showing 1 changed file with 14 additions and 31 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ 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/
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.
Expand All @@ -18,52 +18,35 @@ New Relic's integration with Kong Gateway, using the File Log plugin, provides a

## 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.
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 New Relic’s Kubernetes logging plugin integration to collect and forward the logs.

## Configuration Setup
## Configuration setup

Follow these steps:

**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](https:/docs.newrelic.com/docs/logs/forward-logs/kubernetes-plugin-log-forwarding/) to set this up.
Before configuring the File Log plugin, ensure you have the New Relic Kubernetes logging integration installed. Follow the [instructions](https:/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` .
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
```

Once the New Relic Logging Integration is installed, configure the File Log to output logs to `/dev/stdout` . See an example of the manifest configuration file in the [Configure the File Log plugin](https://docs.newrelic.com/docs/logs/forward-logs/kong-gateway/#install-config-filelog) section.

Check warning on line 33 in src/content/whats-new/2024/10/whats-new-10-23-kogs-gateway-logs-integration.md

View workflow job for this annotation

GitHub Actions / vale-linter

[vale] reported by reviewdog 🐶 [Microsoft.Passive] 'is installed' looks like passive voice. Raw Output: {"message": "[Microsoft.Passive] 'is installed' looks like passive voice.", "location": {"path": "src/content/whats-new/2024/10/whats-new-10-23-kogs-gateway-logs-integration.md", "range": {"start": {"line": 33, "column": 40}}}, "severity": "INFO"}

**Step 3: Apply the Log File Log plugin Configuration**
**Step 3: Apply the Log File Log plugin configuration**

Deploy the File Log plugin configuration to your Kubernetes cluster using the following command:
* Deploy the File Log plugin configuration to your Kubernetes cluster using the following command:

```bash
kubectl apply -f file-log-plugin.yaml -n kong
```
```bash
kubectl apply -f file-log-plugin.yaml -n kong
```

Replace `file-log-plugin.yaml` with the actual filename of your manifest.
* Replace `file-log-plugin.yaml` with the actual filename of your manifest.

**Step 4 Verify the configuration:**
**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.
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 47 in src/content/whats-new/2024/10/whats-new-10-23-kogs-gateway-logs-integration.md

View workflow job for this annotation

GitHub Actions / vale-linter

[vale] reported by reviewdog 🐶 [Microsoft.Passive] 'being forwarded' looks like passive voice. Raw Output: {"message": "[Microsoft.Passive] 'being forwarded' looks like passive voice.", "location": {"path": "src/content/whats-new/2024/10/whats-new-10-23-kogs-gateway-logs-integration.md", "range": {"start": {"line": 47, "column": 58}}}, "severity": "INFO"}

By forwarding Kong Gateway logs to New Relic, organizations can effectively monitor and manage their API gateways, ensuring optimal performance and security.
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 49 in src/content/whats-new/2024/10/whats-new-10-23-kogs-gateway-logs-integration.md

View workflow job for this annotation

GitHub Actions / vale-linter

[vale] reported by reviewdog 🐶 [new-relic.ComplexWords] Consider using 'check' or 'watch' instead of 'monitor'. Raw Output: {"message": "[new-relic.ComplexWords] Consider using 'check' or 'watch' instead of 'monitor'.", "location": {"path": "src/content/whats-new/2024/10/whats-new-10-23-kogs-gateway-logs-integration.md", "range": {"start": {"line": 49, "column": 79}}}, "severity": "INFO"}

## To get started

Expand Down

0 comments on commit 5bfb727

Please sign in to comment.