upmc-enterprises/kibana-docker

update

kfox1111 opened this issue · 0 comments

I tried to add the logtrail plugin so I could follow kubernetes logs in the managed cluster but couldn't. kibana was too old.
I added the following to the Docker file:
bin/kibana-plugin install https://github.com/sivasamyk/logtrail/releases/download/v0.1.23/logtrail-5.6.5-0.1.23.zip &&
sed -i 's/"message": "syslog_message"/"message": "log"/;s/"program": "program"/"program": "kubernetes.pod_name"/;s/"message_format": "{{{syslog_message}}}"/"message_format": "{{{log}}}"/' /opt/kibana/plugins/logtrail/logtrail.json && \

bumped the version to 5.6.5 everywhere and changed the last line to:
kibana 2>&1 | grep -m 1 "Server running at" # [1]
as the output message changed in the newer version and everything worked well.