How to disable saving Kibana logs to /var/log/kibana

Hello!

How to totally disable saving Kibana logs to /var/log/kibana/kibana.log ?
I'm using elastic stack version 7.16 and already trying to set in kibana.yml:

logging.dest: "u01/data/logs/kibana.log"

and

logging:
  appenders:
    file:
      type: file
      fileName: u01/data/logs/kibana.log
      layout:
        type: pattern
  root:
    appenders: [default, file]

but it still saving logs in /var/log/kibana !

# systemctl status kibana
● kibana.service - Kibana
   Loaded: loaded (/etc/systemd/system/kibana.service; enabled; vendor preset: disabled)
   Active: active (running) since Mon 2022-02-07 12:27:36 MSK; 10s ago
     Docs: https://www.elastic.co
 Main PID: 7902 (node)
    Tasks: 11 (limit: 49344)
   Memory: 525.9M
   CGroup: /system.slice/kibana.service
           └─7902 /usr/share/kibana/bin/../node/bin/node /usr/share/kibana/bin/../src/cli/dist --logging.dest=/var/log/kibana/kibana.log --pid.file=/run/kibana/kibana.pid

Why when I use "systemctl status kibana" it show --logging.dest=/var/log/kibana/kibana.log despite the fact that I specified other settings?

Found the solution
Need to modify /etc/systemd/kibana.service

1 Like

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