Skip to main content

Parameters

See plugin common configurations for configuration options available to all plugins.

  • vars

    array[array]


    An array of one or more matching conditions in the form of APISIX expressions. The buffered logs are flushed to the error log only when all expressions evaluate to true. When unset, the logs are collected for every request.

  • sample_ratio

    number


    default: 1


    vaild vaule:

    between 0.00001 and 1 inclusive


    Probability of collecting the logs for a request. The default value of 1 collects the logs for all requests. Set to a value below 1 to collect the logs for a random sample of requests.

  • buffer_max_size

    integer


    default: 1000


    vaild vaule:

    greater than or equal to 1


    Maximum number of log entries held in the per-worker buffer. When the number of buffered logs exceeds this value, the oldest entries are overwritten.

API7.ai Logo

The digital world is connected by APIs,
API7.ai exists to make APIs more efficient, reliable, and secure.

Sign up for API7 newsletter

Product

API7 Gateway

SOC2 Type IIISO 27001HIPAAGDPRRed Herring

Copyright © APISEVEN PTE. LTD 2019 – 2026. Apache, Apache APISIX, APISIX, and associated open source project names are trademarks of the Apache Software Foundation