Skip to content

Commit

Permalink
docs: update NGINX health_check command usage
Browse files Browse the repository at this point in the history
  • Loading branch information
mstopa-splunk committed Jan 20, 2025
1 parent 6ae2e20 commit 03b25b9
Showing 1 changed file with 1 addition and 22 deletions.
23 changes: 1 addition & 22 deletions docs/architecture/lb/nginx.md
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ stream {

**For NGINX Plus:**

- Add the following configuration block to `/etc/nginx/nginx.conf`:
Add the following configuration block to `/etc/nginx/nginx.conf`:
```conf
stream {
# Define upstream for each of SC4S hosts and ports
Expand Down Expand Up @@ -227,27 +227,6 @@ stream {
}
```

NGINX will actively check the health of your upstream servers by sending UDP messages to port 514.

- (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:
`/opt/sc4s/local/config/app_parsers/nginx_healthcheck-postfiler.conf`
```conf
block parser nginx_healthcheck-postfiler() {
channel {
rewrite(r_set_dest_splunk_null_queue);
};
};
application nginx_healthcheck-postfiler[sc4s-postfilter] {
filter {
"${fields.sc4s_vendor}" eq "splunk" and
"${fields.sc4s_product}" eq "sc4s"
and message('nginx health check' type(string));
};
parser { nginx_healthcheck-postfiler(); };
};
```

3. Refer to the NGINX documentation to find the command to reload the service, for example:
```bash
sudo nginx -s reload
Expand Down

0 comments on commit 03b25b9

Please sign in to comment.