Skip to content

Conversation

aphralG
Copy link
Contributor

@aphralG aphralG commented Oct 3, 2025

Proposed changes

Added syslog server port option in agent config

syslog_server:
    port: 1514

Default value is 1514, agent will parse the NGINX config for Nap syslog server directives, when one is found agent will check if the host is valid and then check if the port matches the configured syslog server port in the config (or default if not set)
If the agent fails to find a valid syslog server it will log the following warning, which contains the configured port

level=WARN msg="Could not find available local NGINX App Protect syslog server configured on port 565. Security violations will not be collected."

Changed NapSyslogServers in NginxConfigContext to a single value as we no longer allow multiple syslog servers.

Checklist

Before creating a PR, run through this checklist and mark each as complete.

  • I have read the CONTRIBUTING document
  • I have run make install-tools and have attached any dependency changes to this pull request
  • If applicable, I have added tests that prove my fix is effective or that my feature works
  • If applicable, I have checked that any relevant tests pass after adding my changes
  • If applicable, I have updated any relevant documentation (README.md)
  • If applicable, I have tested my cross-platform changes on Ubuntu 22, Redhat 8, SUSE 15 and FreeBSD 13

@aphralG aphralG self-assigned this Oct 3, 2025
@aphralG aphralG requested a review from a team as a code owner October 3, 2025 12:39
@github-actions github-actions bot added the chore Pull requests for routine tasks label Oct 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore Pull requests for routine tasks
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant