Few days ago i have installed elasticsearch,
For diagnosing some problems on my elasticsearch setup, i have checked the logs files located in
/var/log/elasticsearch and tailed them but apparently the directory's owner is
elasticsearch and the group is
elasticsearch, therefore i have resolved it by switching to root and apply the tail (not an elegant way).
Now I would like to write a simple script to tail those files (I'm using tmux), Does anybody has a suggestion how to overcome the the privileges issue while using a script? I prefer keeping the ownership to