Skip to content

Instantly share code, notes, and snippets.

@jpluimers
Last active April 10, 2021 09:39
Show Gist options
  • Save jpluimers/c0b7bf67ffc85b0b05ed834342e243c7 to your computer and use it in GitHub Desktop.
Save jpluimers/c0b7bf67ffc85b0b05ed834342e243c7 to your computer and use it in GitHub Desktop.
ESXi: where are my log files actually stored? Actually, most of them are in `/scratch/log` which points to a hidden `.locker` directory in a datastore.
ls -al / /var/ /var/log/ /var/run/ /scratch/ /scratch/log/ | grep "/\|log\|-\>"
/:
lrwxrwxrwx 1 root root 49 Apr 4 18:16 altbootbank -> /vmfs/volumes/9f9082ef-07ac6919-9a37-db55b54875e7
lrwxrwxrwx 1 root root 49 Apr 4 18:16 bootbank -> /vmfs/volumes/15e804ed-c0915571-a22f-3fba00b35851
lrwxrwxrwx 1 root root 6 Apr 4 18:16 locker -> /store
lrwxrwxrwx 1 root root 29 Apr 4 18:16 productLocker -> /locker/packages/vmtoolsRepo/
lrwxrwxrwx 1 root root 4 Mar 3 23:59 sbin -> /bin
lrwxrwxrwx 1 root root 57 Apr 4 18:16 scratch -> /vmfs/volumes/5ce2d440-72311161-75c5-0025907d9d5c/.locker
lrwxrwxrwx 1 root root 49 Apr 4 18:16 store -> /vmfs/volumes/60689c5b-f203ef10-b54a-0025907d9d5c
lrwxrwxrwx 1 root root 18 Mar 3 23:59 vmupgrade -> /locker/vmupgrade/
/scratch/:
drwxr-xr-x 1 root root 106496 Apr 10 08:40 log
/scratch/log/:
-rw------- 1 root root 411 Apr 4 18:20 Xorg.log
-rw------- 1 root root 106501 Apr 10 09:14 auth.log
-rw------- 1 root root 0 Jul 22 2019 clomd.log
-rw------- 1 root root 0 Jul 22 2019 clusterAgent.log
-rw------- 1 root root 0 Jul 22 2019 cmmdsTimeMachine.log
-rw------- 1 root root 0 Jul 22 2019 cmmdsTimeMachineDump.log
-rw------- 1 root root 0 Jul 22 2019 ddecomd.log
-rw------- 1 root root 719534 Apr 9 02:30 dhclient.log
-rw------- 1 root root 0 Jul 22 2019 epd.log
-rw------- 1 root root 868712 Apr 4 18:17 esxupdate.log
-rw------- 1 root root 0 Jul 22 2019 fdm.log
-rw------- 1 root root 0 Jul 22 2019 hbragent.log
-rw------- 1 root root 37937 Apr 10 09:35 hostd-probe.log
-rw------- 1 root root 1203861 Apr 10 09:38 hostd.log
-rw------- 1 root root 134634 Apr 4 18:17 hostdCgiServer.log
-rw------- 1 root root 0 Jul 22 2019 hostprofiletrace.log
-rw------- 1 root root 74429 Apr 4 18:17 iofiltervpd.log
-rw------- 1 root root 1178 Apr 4 18:16 lacp.log
-rw------- 1 root root 242 Apr 4 18:14 loadESX.log
-rw------- 1 root root 75240 Apr 4 18:17 nfcd.log
-rw------- 1 root root 0 Jul 22 2019 osfsd.log
-rw------- 1 root root 368182 Apr 4 18:17 rabbitmqproxy.log
-rw------- 1 root root 37193 Apr 10 09:35 rhttpproxy.log
-rw------- 1 root root 384362 Apr 4 18:17 sdrsinjector.log
-rw------- 1 root root 131957 Apr 10 09:38 shell.log
-rw------- 1 root root 0 Apr 4 16:19 sockrelay.log
-rw------- 1 root root 24681 Apr 4 18:17 storagerm.log
-rw------- 1 root root 36575 Apr 4 18:17 swapobjd.log
-rw------- 1 root root 78835 Apr 4 10:30 syslog.0.gz
-rw------- 1 root root 61136 Mar 18 15:05 syslog.1.gz
-rw------- 1 root root 60589 Feb 24 00:30 syslog.2.gz
-rw------- 1 root root 60373 Feb 1 08:01 syslog.3.gz
-rw------- 1 root root 60203 Jan 9 15:50 syslog.4.gz
-rw------- 1 root root 59889 Dec 17 23:20 syslog.5.gz
-rw------- 1 root root 60398 Nov 25 06:50 syslog.6.gz
-rw------- 1 root root 60563 Nov 2 14:25 syslog.7.gz
-rw------- 1 root root 531794 Apr 10 09:35 syslog.log
-rw------- 1 root root 0 Jul 22 2019 upitd.log
-rw------- 1 root root 132678 Apr 9 16:40 usb.log
-rw------- 1 root root 0 Apr 4 16:19 vdfsd-proxy.log
-rw------- 1 root root 0 Apr 4 16:19 vdfsd-server.log
-rw------- 1 root root 0 Jul 22 2019 vitd.log
-rw------- 1 root root 255006 Apr 9 16:40 vmauthd.log
-rw------- 1 root root 512376 Apr 4 18:16 vmkdevmgr.log
-rw------- 1 root root 724273 Apr 10 09:36 vmkernel.log
-rw------- 1 root root 99579 Apr 4 18:16 vmkeventd.log
-rw------- 1 root root 921322 Apr 10 09:01 vmksummary.log
-rw------- 1 root root 1016830 Apr 10 09:36 vmkwarning.log
-rw-rw-rw- 1 root root 0 Jul 22 2019 vmsyslogd-dropped.log
-rw------- 1 root root 1041246 Apr 9 18:42 vobd.log
-rw------- 1 root root 0 Jul 22 2019 vprobe.log
-rw------- 1 root root 456365 Apr 4 18:17 vpxa.log
-rw------- 1 root root 0 Apr 4 18:16 vsanEsxcli.log
-rw------- 1 root root 0 Jul 22 2019 vsandpd.log
-rw------- 1 root root 0 Jul 22 2019 vsanmgmt.log
-rw------- 1 root root 93246 Apr 4 18:17 vsansystem.log
-rw------- 1 root root 157255 Apr 4 18:17 vvold.log
/var/:
lrwxrwxrwx 1 root root 13 Apr 4 18:16 core -> /scratch/core
drwxr-xr-x 1 root root 512 Apr 5 19:19 log
lrwxrwxrwx 1 root root 17 Mar 3 23:59 tmp -> /scratch/var/tmp/
lrwxrwxrwx 1 root root 15 Mar 3 23:59 vmware -> /scratch/vmware
/var/log/:
-rw-r--r-- 1 root root 416 Apr 4 18:16 .vmsyslogd.err
lrwxrwxrwx 1 root root 21 Apr 4 18:16 Xorg.log -> /scratch/log/Xorg.log
lrwxrwxrwx 1 root root 21 Apr 4 18:16 auth.log -> /scratch/log/auth.log
lrwxrwxrwx 1 root root 22 Apr 4 18:16 clomd.log -> /scratch/log/clomd.log
lrwxrwxrwx 1 root root 29 Apr 4 18:16 clusterAgent.log -> /scratch/log/clusterAgent.log
lrwxrwxrwx 1 root root 33 Apr 4 18:16 cmmdsTimeMachine.log -> /scratch/log/cmmdsTimeMachine.log
lrwxrwxrwx 1 root root 37 Apr 4 18:16 cmmdsTimeMachineDump.log -> /scratch/log/cmmdsTimeMachineDump.log
-rw-r--r-- 1 root root 38069 Apr 4 18:20 configRP.log
-rw-r--r-- 1 root root 0 Apr 4 18:16 cryptoloader.log
lrwxrwxrwx 1 root root 24 Apr 4 18:16 ddecomd.log -> /scratch/log/ddecomd.log
lrwxrwxrwx 1 root root 25 Apr 4 18:16 dhclient.log -> /scratch/log/dhclient.log
lrwxrwxrwx 1 root root 20 Apr 4 18:16 epd.log -> /scratch/log/epd.log
-rw-r--r-- 1 root root 87 Apr 5 21:57 esxcli.log
lrwxrwxrwx 1 root root 26 Apr 4 18:16 esxupdate.log -> /scratch/log/esxupdate.log
lrwxrwxrwx 1 root root 20 Apr 4 18:16 fdm.log -> /scratch/log/fdm.log
lrwxrwxrwx 1 root root 25 Apr 4 18:16 hbragent.log -> /scratch/log/hbragent.log
lrwxrwxrwx 1 root root 28 Apr 4 18:16 hostd-probe.log -> /scratch/log/hostd-probe.log
lrwxrwxrwx 1 root root 22 Apr 4 18:16 hostd.log -> /scratch/log/hostd.log
lrwxrwxrwx 1 root root 31 Apr 4 18:16 hostdCgiServer.log -> /scratch/log/hostdCgiServer.log
lrwxrwxrwx 1 root root 33 Apr 4 18:16 hostprofiletrace.log -> /scratch/log/hostprofiletrace.log
-rw------- 1 root root 3350 Apr 4 18:16 init.log
-rw-r--r-- 1 root root 966 Apr 4 18:16 iofilter-init.log
lrwxrwxrwx 1 root root 28 Apr 4 18:16 iofiltervpd.log -> /scratch/log/iofiltervpd.log
-rw-r--r-- 1 root root 21769 Apr 4 18:16 jumpstart-esxcli-stdout.log
-rw-r--r-- 1 root root 18857 Apr 4 18:16 jumpstart-native-stdout.log
-rw-r--r-- 1 root root 10837 Apr 4 18:16 jumpstart-stdout.log
-rw-r--r-- 1 root root 0 Apr 4 18:16 kickstart.log
lrwxrwxrwx 1 root root 21 Apr 4 18:16 lacp.log -> /scratch/log/lacp.log
lrwxrwxrwx 1 root root 24 Apr 4 18:16 loadESX.log -> /scratch/log/loadESX.log
lrwxrwxrwx 1 root root 21 Apr 4 18:16 nfcd.log -> /scratch/log/nfcd.log
lrwxrwxrwx 1 root root 22 Apr 4 18:16 osfsd.log -> /scratch/log/osfsd.log
lrwxrwxrwx 1 root root 30 Apr 4 18:16 rabbitmqproxy.log -> /scratch/log/rabbitmqproxy.log
lrwxrwxrwx 1 root root 27 Apr 4 18:16 rhttpproxy.log -> /scratch/log/rhttpproxy.log
lrwxrwxrwx 1 root root 29 Apr 4 18:16 sdrsinjector.log -> /scratch/log/sdrsinjector.log
lrwxrwxrwx 1 root root 22 Apr 4 18:16 shell.log -> /scratch/log/shell.log
lrwxrwxrwx 1 root root 26 Apr 4 18:16 sockrelay.log -> /scratch/log/sockrelay.log
lrwxrwxrwx 1 root root 26 Apr 4 18:16 storagerm.log -> /scratch/log/storagerm.log
lrwxrwxrwx 1 root root 25 Apr 4 18:16 swapobjd.log -> /scratch/log/swapobjd.log
-rw------- 1 root root 10916 Apr 4 18:16 sysboot.log
lrwxrwxrwx 1 root root 23 Apr 4 18:16 syslog.log -> /scratch/log/syslog.log
-rw------- 1 root root 64 Apr 10 09:13 tallylog
lrwxrwxrwx 1 root root 22 Apr 4 18:16 upitd.log -> /scratch/log/upitd.log
lrwxrwxrwx 1 root root 20 Apr 4 18:16 usb.log -> /scratch/log/usb.log
lrwxrwxrwx 1 root root 28 Apr 4 18:16 vdfsd-proxy.log -> /scratch/log/vdfsd-proxy.log
lrwxrwxrwx 1 root root 29 Apr 4 18:16 vdfsd-server.log -> /scratch/log/vdfsd-server.log
lrwxrwxrwx 1 root root 21 Apr 4 18:16 vitd.log -> /scratch/log/vitd.log
lrwxrwxrwx 1 root root 24 Apr 4 18:16 vmauthd.log -> /scratch/log/vmauthd.log
lrwxrwxrwx 1 root root 26 Apr 4 18:16 vmkdevmgr.log -> /scratch/log/vmkdevmgr.log
lrwxrwxrwx 1 root root 25 Apr 4 18:16 vmkernel.log -> /scratch/log/vmkernel.log
lrwxrwxrwx 1 root root 26 Apr 4 18:16 vmkeventd.log -> /scratch/log/vmkeventd.log
lrwxrwxrwx 1 root root 27 Apr 4 18:16 vmksummary.log -> /scratch/log/vmksummary.log
lrwxrwxrwx 1 root root 27 Apr 4 18:16 vmkwarning.log -> /scratch/log/vmkwarning.log
lrwxrwxrwx 1 root root 21 Apr 4 18:16 vobd.log -> /scratch/log/vobd.log
lrwxrwxrwx 1 root root 23 Apr 4 18:16 vprobe.log -> /scratch/log/vprobe.log
lrwxrwxrwx 1 root root 21 Apr 4 18:16 vpxa.log -> /scratch/log/vpxa.log
lrwxrwxrwx 1 root root 27 Apr 4 18:16 vsanEsxcli.log -> /scratch/log/vsanEsxcli.log
lrwxrwxrwx 1 root root 24 Apr 4 18:16 vsandpd.log -> /scratch/log/vsandpd.log
lrwxrwxrwx 1 root root 25 Apr 4 18:16 vsanmgmt.log -> /scratch/log/vsanmgmt.log
lrwxrwxrwx 1 root root 27 Apr 4 18:16 vsansystem.log -> /scratch/log/vsansystem.log
lrwxrwxrwx 1 root root 22 Apr 4 18:16 vvold.log -> /scratch/log/vvold.log
/var/run/:
lrwxrwxrwx 1 root root 12 Apr 4 18:16 log -> /scratch/log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment