Start the monitoring services


2. Start monitoring services.
1) Start the Telegraf service.
$ sudo systemctl status telegraf
$ sudo systemctl enable --now telegraf
$ sudo systemctl status telegraf
2) Start the log shipper (Fluent Bit) service.

** Check that kcnd has created the log file first.

$ ls -l /kaia/kcnd/logs/kcnd.out
$ sudo systemctl enable --now fluent-bit
$ sudo systemctl status fluent-bit

** If the log path is wrong, Fluent Bit keeps running without any error and ships nothing, so active (running) alone is not enough. Check that the log file is being watched:

$ sudo journalctl -u fluent-bit -n 50 | grep inotify_fs_add
... [input:tail:tail.0] inotify_fs_add(): inode=... watch_fd=1 name=/kaia/kcnd/logs/kcnd.out
** If there is no such line, check the Path in /etc/fluent-bit/kaia-logs.conf.


If you finish this step, please click the next button > on the right side of this page.