Skip to content

nginx plus dos log invalid value for key: 'format': "user-defined" #2947

@ahmedasimabdelhamid

Description

@ahmedasimabdelhamid

Issue Description:

there is an issue with Nginx dos log format with the resource kind APDosLogConf, when I change the default format which is "splunk" to user-defined the Nginx reports an issue "failed to import config from '/etc/nginx/dos/policies/nginx-ingress_default-dos-policy.json': invalid value for key: 'format'. Using default: 'splunk'" }

To Reproduce:

Steps to reproduce the behavior:
change format from Splunk to user-defined for the logs config yaml file resource kind APDosLogConf then check Nginx logs

Versions:

nginx plus + dos versions
nginx version: nginx/1.21.6 (nginx-plus-r27)
app-protect-dos 27+2.4.1-1~bionic amd64

Note: the existing crd in the cluster has the values of user-defined for the format type as bellow
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions