Tailon Installation

Tailon Installation Steps:

1) Install tailon package using pip,
pip install tailon

2) Create a script called tailon.sh to initiate the tailon as part of systemd service,
Open a file tailon.sh and copy below line,
/usr/local/bin/tailon -f /var/log/corestack-container/* -b 0.0.0.0:9000

3) copy below content in /etc/systemd/system/tailon.service

[Unit]
Description=Tailon for exposing logs
After=docker.target
[Service]
Type=simple
ExecStart=/bin/bash /opt/devops/tailon.sh
TimeoutStartSec=0
[Install]
WantedBy=default.target


4) Enable and Restart the tailon.service
systemctl enable tailon.service
systemctl restart tailon.service


5) Now you can see the tailon logs in the corresponding host with port number,
http://localhost:9000

Note:
If logs folder is updated with new logs , need to restart the tailon service to update the tailon ui page.

Leave a comment