Skip to content

Instantly share code, notes, and snippets.

@ksauzz
Last active August 29, 2015 14:05
Show Gist options
  • Save ksauzz/14b420a55249bc56b543 to your computer and use it in GitHub Desktop.
Save ksauzz/14b420a55249bc56b543 to your computer and use it in GitHub Desktop.

ubuntu

root@vagrant:~# riak-cs-debug
...................................EE... /root/riak-cs@127.0.0.1-riak-cs-debug.tar.gz
root@vagrant:~# tar tfv riak-cs@127.0.0.1-riak-cs-debug.tar.gz | grep logs
drwxr-xr-x root/root         0 2014-08-13 16:06 riak-cs@127.0.0.1-riak-cs-debug/logs/
drwxr-xr-x root/root         0 2014-08-13 16:06 riak-cs@127.0.0.1-riak-cs-debug/logs/platform_log_dir/
-rw-r--r-- root/root      1901 2014-08-13 16:06 riak-cs@127.0.0.1-riak-cs-debug/logs/platform_log_dir/console.log
-rw-r--r-- root/root       254 2014-08-13 16:06 riak-cs@127.0.0.1-riak-cs-debug/logs/platform_log_dir/run_erl.log
-rw-r--r-- root/root       705 2014-08-13 16:06 riak-cs@127.0.0.1-riak-cs-debug/logs/platform_log_dir/error.log
-rw-r--r-- root/root       180 2014-08-13 16:06 riak-cs@127.0.0.1-riak-cs-debug/logs/platform_log_dir/access.log.2014_08_13_16
-rw-r--r-- root/root       359 2014-08-13 16:06 riak-cs@127.0.0.1-riak-cs-debug/logs/platform_log_dir/crash.log.0
-rw-r--r-- root/root      4247 2014-08-13 16:06 riak-cs@127.0.0.1-riak-cs-debug/logs/platform_log_dir/erlang.log.1
-rw-r--r-- root/root      1196 2014-08-13 16:06 riak-cs@127.0.0.1-riak-cs-debug/logs/platform_log_dir/console.log.0
-rw-r--r-- root/root       313 2014-08-13 16:06 riak-cs@127.0.0.1-riak-cs-debug/logs/platform_log_dir/crash.log
drwxr-xr-x root/root         0 2014-08-13 16:06 riak-cs@127.0.0.1-riak-cs-debug/logs/.info/
-rw-r--r-- root/root        27 2014-08-13 16:06 riak-cs@127.0.0.1-riak-cs-debug/logs/.info/ls_log_dir
-rw-r--r-- root/root       480 2014-08-13 16:06 riak-cs@127.0.0.1-riak-cs-debug/logs/ls_log_dir
root@vagrant:~# riak-cs version
1.5.0.10.gf1de998
root@vagrant:~# cat /etc/debian_version
wheezy/sid

centos

[root@localhost ~]# riak-cs-debug
....................................EE... /root/riak-cs@127.0.0.1-riak-cs-debug.tar.gz
[root@localhost ~]# tar tfv riak-cs@127.0.0.1-riak-cs-debug.tar.gz | grep logs
drwxr-xr-x root/root         0 2014-08-13 16:13 riak-cs@127.0.0.1-riak-cs-debug/logs/
-rw-r--r-- root/root      1376 2014-08-13 16:13 riak-cs@127.0.0.1-riak-cs-debug/logs/ls_log_dir
drwxr-xr-x root/root         0 2014-08-13 16:13 riak-cs@127.0.0.1-riak-cs-debug/logs/.info/
-rw-r--r-- root/root        27 2014-08-13 16:13 riak-cs@127.0.0.1-riak-cs-debug/logs/.info/ls_log_dir
drwxr-xr-x root/root         0 2014-08-13 16:13 riak-cs@127.0.0.1-riak-cs-debug/logs/platform_log_dir/
-rw-r--r-- root/root      1901 2014-08-13 16:13 riak-cs@127.0.0.1-riak-cs-debug/logs/platform_log_dir/console.log
-rw-r--r-- root/root       659 2014-08-13 16:13 riak-cs@127.0.0.1-riak-cs-debug/logs/platform_log_dir/console.log.2
-rw-r--r-- root/root       190 2014-08-13 16:13 riak-cs@127.0.0.1-riak-cs-debug/logs/platform_log_dir/error.log.0
-rw-r--r-- root/root         0 2014-08-13 16:13 riak-cs@127.0.0.1-riak-cs-debug/logs/platform_log_dir/access.log.2014_08_11_16
-rw-r--r-- root/root     36003 2014-08-13 16:13 riak-cs@127.0.0.1-riak-cs-debug/logs/platform_log_dir/erlang.log.1
-rw-r--r-- root/root       254 2014-08-13 16:13 riak-cs@127.0.0.1-riak-cs-debug/logs/platform_log_dir/run_erl.log
-rw-r--r-- root/root         0 2014-08-13 16:13 riak-cs@127.0.0.1-riak-cs-debug/logs/platform_log_dir/access.log.2014_08_12_09
-rw-r--r-- root/root       291 2014-08-13 16:13 riak-cs@127.0.0.1-riak-cs-debug/logs/platform_log_dir/crash.log.1
-rw-r--r-- root/root         0 2014-08-13 16:13 riak-cs@127.0.0.1-riak-cs-debug/logs/platform_log_dir/access.log.2014_08_13_16
-rw-r--r-- root/root       291 2014-08-13 16:13 riak-cs@127.0.0.1-riak-cs-debug/logs/platform_log_dir/crash.log.2
-rw-r--r-- root/root      1542 2014-08-13 16:13 riak-cs@127.0.0.1-riak-cs-debug/logs/platform_log_dir/error.log.3
-rw-r--r-- root/root       177 2014-08-13 16:13 riak-cs@127.0.0.1-riak-cs-debug/logs/platform_log_dir/console.log.3
-rw-r--r-- root/root       417 2014-08-13 16:13 riak-cs@127.0.0.1-riak-cs-debug/logs/platform_log_dir/console.log.0
-rw-r--r-- root/root       168 2014-08-13 16:13 riak-cs@127.0.0.1-riak-cs-debug/logs/platform_log_dir/error.log.4
-rw-r--r-- root/root       986 2014-08-13 16:13 riak-cs@127.0.0.1-riak-cs-debug/logs/platform_log_dir/crash.log.3
-rw-r--r-- root/root       297 2014-08-13 16:13 riak-cs@127.0.0.1-riak-cs-debug/logs/platform_log_dir/console.log.1
-rw-r--r-- root/root       177 2014-08-13 16:13 riak-cs@127.0.0.1-riak-cs-debug/logs/platform_log_dir/console.log.4
-rw-r--r-- root/root       705 2014-08-13 16:13 riak-cs@127.0.0.1-riak-cs-debug/logs/platform_log_dir/error.log
-rw-r--r-- root/root       190 2014-08-13 16:13 riak-cs@127.0.0.1-riak-cs-debug/logs/platform_log_dir/error.log.1
-rw-r--r-- root/root      1840 2014-08-13 16:13 riak-cs@127.0.0.1-riak-cs-debug/logs/platform_log_dir/crash.log.4
-rw-r--r-- root/root       359 2014-08-13 16:13 riak-cs@127.0.0.1-riak-cs-debug/logs/platform_log_dir/crash.log
-rw-r--r-- root/root         0 2014-08-13 16:13 riak-cs@127.0.0.1-riak-cs-debug/logs/platform_log_dir/access.log.2014_08_08_11
-rw-r--r-- root/root       705 2014-08-13 16:13 riak-cs@127.0.0.1-riak-cs-debug/logs/platform_log_dir/error.log.2
[root@localhost ~]# cat /etc/redhat-release
CentOS release 6.5 (Final)

relative log path

vagrant@prairie-dog☁ ~/src/riak_cs 2.0.0-p353 [bugfix/fix-gathering-logs-on-riak-cs-debug] ⚡
% grep -e lager_file_backend -e '{crash.log,' rel/riak-cs/etc/app.config
                      {lager_file_backend, [{file, "./log/error.log"},
                      {lager_file_backend, [{file, "./log/console.log"},
          {crash_log, "./log/crash.log"},
% tar tfv riak-cs@127.0.0.1-riak-cs-debug.tar.gz| grep logs
drwxrwxr-x vagrant/vagrant   0 2014-08-14 01:37 riak-cs@127.0.0.1-riak-cs-debug/logs/
drwxrwxr-x vagrant/vagrant   0 2014-08-14 01:37 riak-cs@127.0.0.1-riak-cs-debug/logs/platform_log_dir/
-rw-rw-r-- vagrant/vagrant 417 2014-08-14 01:37 riak-cs@127.0.0.1-riak-cs-debug/logs/platform_log_dir/console.log
-rw-rw-r-- vagrant/vagrant 417 2014-08-14 01:37 riak-cs@127.0.0.1-riak-cs-debug/logs/platform_log_dir/console.log.1
-rw-rw-r-- vagrant/vagrant 290 2014-08-14 01:37 riak-cs@127.0.0.1-riak-cs-debug/logs/platform_log_dir/run_erl.log
-rw-rw-r-- vagrant/vagrant 2152 2014-08-14 01:37 riak-cs@127.0.0.1-riak-cs-debug/logs/platform_log_dir/console.log.0
-rw-rw-r-- vagrant/vagrant 8024 2014-08-14 01:37 riak-cs@127.0.0.1-riak-cs-debug/logs/platform_log_dir/erlang.log.1
-rw-rw-r-- vagrant/vagrant  360 2014-08-14 01:37 riak-cs@127.0.0.1-riak-cs-debug/logs/platform_log_dir/crash.log
-rw-rw-r-- vagrant/vagrant  313 2014-08-14 01:37 riak-cs@127.0.0.1-riak-cs-debug/logs/platform_log_dir/crash.log.0
-rw-rw-r-- vagrant/vagrant  485 2014-08-14 01:37 riak-cs@127.0.0.1-riak-cs-debug/logs/platform_log_dir/error.log
-rw-rw-r-- vagrant/vagrant  417 2014-08-14 01:37 riak-cs@127.0.0.1-riak-cs-debug/logs/platform_log_dir/console.log.3
-rw-rw-r-- vagrant/vagrant    0 2014-08-14 01:37 riak-cs@127.0.0.1-riak-cs-debug/logs/platform_log_dir/access.log.2014_08_13_16
-rw-rw-r-- vagrant/vagrant 1196 2014-08-14 01:37 riak-cs@127.0.0.1-riak-cs-debug/logs/platform_log_dir/console.log.4
-rw-rw-r-- vagrant/vagrant 1264 2014-08-14 01:37 riak-cs@127.0.0.1-riak-cs-debug/logs/platform_log_dir/console.log.2
drwxrwxr-x vagrant/vagrant    0 2014-08-14 01:37 riak-cs@127.0.0.1-riak-cs-debug/logs/.info/
-rw-rw-r-- vagrant/vagrant   59 2014-08-14 01:37 riak-cs@127.0.0.1-riak-cs-debug/logs/.info/ls_log_dir
-rw-rw-r-- vagrant/vagrant  788 2014-08-14 01:37 riak-cs@127.0.0.1-riak-cs-debug/logs/ls_log_dir
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment