Can I set log path for connector

I am setting up an alert in Kibana. I choose Server log as connector. It goes to /var/log/kibana.log by default. All the server logs are stored in this log file. I want to push the alert messages to the other path /var/log/kibana-alert.log
How can I set the log path?
Thanks

Following the docs, I could send server logs to a custom location with these settings:

xpack.actions.preconfigured:
  my-server-log:
    name: preconfigured-server-log-connector-type
    actionTypeId: .server-log

logging.appenders:
    server-log:
      type: rolling-file
      fileName: /usr/share/kibana/logs/kibana-server-log.log
      policy:
        type: size-limit
        size: 50mb
      strategy:
        type: numeric
        pattern: '-%i'
        max: 10
      layout:
        type: pattern
        pattern: "[%date] [%level] [%logger] [%meta] %message"

logging.loggers:
    - name: plugins.actions.server-log
      level: debug
      appenders: [ server-log ]

For more details about Kibana logging please go here and here

Then I had my predefinned connector ready to test

And check the entry went to the custom file:

Hope it helps!

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.