This article outlines the steps to find the fluentd version running on the TKGi nodes
1) ssh to the node using the below command:
bosh -d service-instance_uuid ssh worker/id
2) Export the ruby path:
export PATH="/var/vcap/data/packages/ruby-*/*/bin:$PATH"
ruby --version
3) To check the fluentd version you also have to set few additional env variables as below:
FLUENTD_PID=$(pgrep -f "fluentd -c")
sudo cat /proc/$FLUENTD_PID/environ | tr '\0' '\n'
export GEM_HOME=/var/vcap/packages/vrli-fluentd/gem_home/ruby/3.3.0
export BUNDLE_GEMFILE=/var/vcap/packages/vrli-fluentd/Gemfile
/var/vcap/packages/vrli-fluentd/bin/fluentd --version