Kibana @ docker no logfiles

Hi There,

I run kibana on docker-compose, but I cannot see the logfiles.
Here is the part of the docker compose file with volumes mapped:
indent preformatted text by 4 spaces

volumes:
      - /srv/Docker/config:/usr/share/kibana/config
      - /srv/Docker/logs:/usr/share/kibana/logs`
/srv/Docker/logs & config has full rights (temporarily)
Here is the output of kibana.yml:
`server.port: 5601
server.host: "0.0.0.0"
server.name: "kib01d"
elasticsearch.hosts: ["https://xxxx:9200","https://xxx:9200","https://xxx:9200"]
server.ssl.enabled: true
elasticsearch.username: "kibana_system"
elasticsearch.password: "xxx"
server.ssl.certificate: /usr/share/kibana/config/certs/xxx.crt
server.ssl.key: /usr/share/kibana/config/certs/xxx.key
elasticsearch.ssl.certificateAuthorities: [ "/usr/share/kibana/config/certs/ca/ca.crt" ]
elasticsearch.ssl.verificationMode: certificate
pid.file: /usr/share/kibana/kibana.pid
logging.verbose: true
logging.dest: "/usr/share/kibana/logs"

When I set the logging.dest: "/usr/share/kibana/logs as above i received this:

Blockquote
| events.js:174
uelkkib01d | throw er; // Unhandled 'error' event
uelkkib01d | ^
uelkkib01d |
uelkkib01d | Error: EISDIR: illegal operation on a directory, open '/usr/share/kibana/logs'
uelkkib01d | Emitted 'error' event at:
uelkkib01d | at errorOrDestroy (internal/streams/destroy.js:107:12)
uelkkib01d | at WriteStream.onerror (_stream_readable.js:734:7)
uelkkib01d | at WriteStream.emit (events.js:198:13)
uelkkib01d | at lazyFs.open (internal/fs/streams.js:277:12)
uelkkib01d | at FSReqWrap.args [as oncomplete] (fs.js:140:20)

Blockquote
Is there any idea what's going wrong here ? I can see the console log from docker file when I remove : " logging.dest: "/usr/share/kibana/logs" and kibana starts to work normally.

Hi, I think you can solve this just removing the quote around the file name:

logging.dest: /usr/share/kibana/logs

the same as the pid.file field works basically

Unfortunately It didn't help me :frowning:

uelkkib01d    | events.js:174
uelkkib01d    |       throw er; // Unhandled 'error' event
uelkkib01d    |       ^
uelkkib01d    |
uelkkib01d    | Error: EISDIR: illegal operation on a directory, open '/usr/share/kibana/logs'
uelkkib01d    | Emitted 'error' event at:
uelkkib01d    |     at errorOrDestroy (internal/streams/destroy.js:107:12)
uelkkib01d    |     at WriteStream.onerror (_stream_readable.js:734:7)
uelkkib01d    |     at WriteStream.emit (events.js:198:13)
uelkkib01d    |     at lazyFs.open (internal/fs/streams.js:277:12)
uelkkib01d    |     at FSReqWrap.args [as oncomplete] (fs.js:140:20)
uelkkib01d exited with code 1

oh sorry, I probably miss that: the documentation for that field says

#Enables you to specify a file where Kibana stores log output.
 logging.dest: stdout

so you should point to a file and not a directory

logging.dest: /usr/share/kibana/logs/kibana.log

This definetely solved my problem. Thanks!

1 Like

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