Custom log path for kibana service

I do not see log path details in kibana.yml file, however, I added a value (logging.dest: /var/../log/kibana.log) and restarted the kibana service. Unfortunately, this kibana service didn't come up. I had to comment for the newly added line and started the kibana to restore the service.

What would be the best process for custom log path for kibana servcie?

Hello @venkat_tammi

  1. Could you please share the kibana version?

  2. Ensure the directory you are specifying in logging.dest exists.

  3. Check the user has correct permissions to the folder for logging.

As starting 7.10.0 we need to follow below logging configuration

logging:
  appenders:
    file:
      type: file
      fileName: /var/log/kibana.log
      layout:
        type: pattern
  root:
    appenders: [file]

Thanks!!

Thank you Tortoise, here are the my answers

  1. My kibana version would be:"8.10.0"
  2. please give me full path for logging.dest, so that I will cross check and let you know.
  3. User has all permissions, however, please share details for custom logging configuration for kibana?

Hello @venkat_tammi

As per the below documentation :

The logging section example :

logging:
  appenders:
    file:
      type: file
      fileName: /var/log/kibana.log
      layout:
        type: pattern
  root:
    appenders: [file]

Thanks!!