Deploy log profiles

After you’ve set up a log profile, it won’t capture security events until you deploy it to instances or Config Sync Groups.

This page assumes you’ve created a log profile in NGINX One Console that you’re ready to deploy.

Deploy a log profile

To deploy a log profile from NGINX One Console, take the following steps:

  1. Select WAF > Log Profiles.
  2. Select the log profile that you’re ready to deploy.
  3. From Actions, select Deploy.
  4. In the Deploy Log Profile window that appears, you can confirm the name of the current log profile. NGINX One Console defaults to the selected log profile.
  5. In the Target section, select Instance or Config Sync Group.
  6. In the drop-down menu that appears, select the instance or Config Sync Group.
  7. Choose how to deploy the log profile:
    • Add a new log profile path: Specify a new file path where the log profile bundle should be deployed
    • Update all log profiles: Sync all log profiles on the target instance or Config Sync Group. This updates all existing log profiles by compiling their latest JSON contents into bundles and deploying them to all existing file paths

When you deploy, if the log profile has not already been compiled for the WAF compiler version used by the target instance or Config Sync Group, NGINX One Console automatically compiles it into a bundle before deployment.

Alternative: Deploy during configuration editing

You can also deploy a log profile directly when editing the NGINX configuration for an instance or Config Sync Group. This method integrates log profile deployment into your regular configuration workflow.

To deploy a log profile using the configuration editor:

  1. Select Instances or Config Sync Groups and choose the target instance or Config Sync Group.
  2. Select the Configuration tab and then Edit Configuration.
  3. Select Add File and then choose Existing Log Profile.
  4. In the Select a Log Profile drop-down menu, select the log profile you want to deploy.
  5. In Log Profile Destination, specify the file path where the log profile bundle should be deployed, such as /etc/nginx/app_protect/log_default.tgz.
  6. Select Add. NGINX One Console displays a code snippet with the required directives.
  7. Paste the code snippet into your NGINX configuration. The snippet includes:
    • app_protect_security_log_enable on
    • app_protect_security_log with the log profile bundle path and destination
  8. Select Next and then Save and Publish.

For more information about adding files through the configuration editor, see Add a file to a Config Sync Group or Add a file to an instance.

Verify log profile deployment

After deployment, verify that your log profile is active on the target instances or Config Sync Groups:

  1. Confirm that the NGINX configuration includes the required directives:

    • app_protect_security_log_enable on
    • app_protect_security_log with the correct log profile bundle path and destination
  2. Check that security logs are being generated at the configured destination (file path or syslog server).

  3. Review the log entries to ensure they match the format and filter settings you configured in the log profile.

For troubleshooting log profile deployment issues, see the Container-related configuration requirements section to ensure volumes and paths are correctly configured.