Skip to content

How to export apisix coraza error logs to opensearch using elasticsearch-logger plugin? #318

@AbdulKhadar169

Description

@AbdulKhadar169

Hello, I have apisix and opensearch deployed on the kubernetes cluster. I am able to export apisix access logs to opensearch through elasticsearch-logger plugin by creating an apisixglobalrule with the plugin. but I am not able to export the error logs generated by coraza plugin when it detects a security rule violation. I need these coraza error logs along with access logs to create dashboards in opensearch. When I explored the documentation, I found that only access logs can be exported using elasticsearch-logger plugin but not error logs. is there a way to export coraza error logs by creating custom nginx variables that map to coraza plugin metadata ? or any other way ?

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