Specify output log file pathv1.0+

Enables the plugin and specifies the path to the output log file. The plugin creates the log file if it doesn’t exist yet.

Set up the plugin

Add this section to your kong.yaml configuration file:

_format_version: "3.0"
plugins:
  - name: file-log
    config:
      path: "/tmp/file.log"
Copied to clipboard!

Did this doc help?

Something wrong?

Help us make these docs great!

Kong Developer docs are open source. If you find these useful and want to make them better, contribute today!