Skip to content

Commit df0f0ff

Browse files
committed
docs: update NGINX health_check command usage
1 parent 5797cc0 commit df0f0ff

File tree

1 file changed

+1
-22
lines changed

1 file changed

+1
-22
lines changed

docs/architecture/lb/nginx.md

+1-22
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ stream {
199199

200200
**For NGINX Plus:**
201201

202-
- Add the following configuration block to `/etc/nginx/nginx.conf`:
202+
Add the following configuration block to `/etc/nginx/nginx.conf`:
203203
```conf
204204
stream {
205205
# Define upstream for each of SC4S hosts and ports
@@ -227,27 +227,6 @@ stream {
227227
}
228228
```
229229

230-
NGINX will actively check the health of your upstream servers by sending UDP messages to port 514.
231-
232-
- (Optional) Add the following local post-filter to each of your SC4S instances to prevent SC4S from forwarding health check messages to Splunk and other destinations:
233-
`/opt/sc4s/local/config/app_parsers/nginx_healthcheck-postfiler.conf`
234-
```conf
235-
block parser nginx_healthcheck-postfiler() {
236-
channel {
237-
rewrite(r_set_dest_splunk_null_queue);
238-
};
239-
};
240-
241-
application nginx_healthcheck-postfiler[sc4s-postfilter] {
242-
filter {
243-
"${fields.sc4s_vendor}" eq "splunk" and
244-
"${fields.sc4s_product}" eq "sc4s"
245-
and message('nginx health check' type(string));
246-
};
247-
parser { nginx_healthcheck-postfiler(); };
248-
};
249-
```
250-
251230
3. Refer to the NGINX documentation to find the command to reload the service, for example:
252231
```bash
253232
sudo nginx -s reload

0 commit comments

Comments
 (0)