Skip to content

Commit fd98a74

Browse files
committed
fix ordered ist
1 parent faa6766 commit fd98a74

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

site/content/how-to/monitoring/troubleshooting.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ kubectl exec -it -n nginx-gateway <ngf-pod-name> -c nginx /bin/sh
8080

8181
Logs from the NGINX Gateway Fabric control plane and data plane can contain information that isn't available to status or events. These can include errors in processing or passing traffic.
8282

83-
##### Container Logs
83+
1. Container Logs
8484

8585
To see logs for Control plane container:
8686

@@ -94,11 +94,11 @@ To see logs for Data plane container:
9494
kubectl -n nginx-gateway logs <ngf-pod-name> -c nginx
9595
```
9696

97-
##### Error Logs
97+
1. Error Logs
9898

9999
To see error logs for control plane and data plane containers:
100100

101-
For _nginx-gateway_ container, you can `grep` for the word `error` or change the log level to `error` by following steps in [Modify log levels](#modify-log-levels). Once you have modified log levels, you can `grep` for the word `debug` to check debug logs for further investigation.
101+
For _nginx-gateway_ container, you can `grep` for the word `error` or change the log level to `error` by following steps in Modify log levels (Section 3). Once you have modified log levels, you can `grep` for the word `debug` to check debug logs for further investigation.
102102

103103
```shell
104104
kubectl -n nginx-gateway logs <ngf-pod-name> -c nginx-gateway | grep error
@@ -125,14 +125,14 @@ kubectl logs -n nginx-gateway ngf-nginx-gateway-fabric-bb8598998-jwk2m -c nginx
125125
2024/06/13 20:04:17 [emerg] 27#27: too long parameter, probably missing terminating """ character in /etc/nginx/conf.d/http.conf:78
126126
```
127127

128-
##### Access Logs
128+
1. Access Logs
129129

130130
NGINX access logs record all requests processed by the NGINX server. These logs provide detailed information about each request, which can be useful for troubleshooting and analyzing web traffic.
131131
Access logs can be viewed with the above method of using `kubectl logs`, or by viewing the access log file directly. To do that, get shell access to your NGINX container using these [steps](#get-shell-access-to-nginx-container). The access logs are located in the file `/var/log/nginx/access.log` in the NGINX container.
132132

133133
You can see logs for a crashed or killed container by adding the `-p` flag to the above commands.
134134

135-
##### Modify Log Levels
135+
1. Modify Log Levels
136136

137137
To see debug logs for control plane in NGINX Gateway Fabric, enable verbose logging by editing the `NginxGateway` configuration. This can be done either before or after deploying NGINX Gateway Fabric. Refer to this [guide](https://docs.nginx.com/nginx-gateway-fabric/how-to/configuration/control-plane-configuration) to do so.
138138

0 commit comments

Comments
 (0)