Export ESX Log Files
Export ESX Log Files
I am trying to export my ESX 3 logs files using syslog.conf to another Linux machine. I have succesfully set this up
and I can get general information forwarded to my syslog server. However, I cannot get the vmware logs (/var/log/) to
appear on the syslog server. Files and directories such as vmkernel, vmkproxy, vmksummary, etc...
*.* @10.0.0.88
This setup does work, but I cannot get the vm logs to my server. Any ideas?
or if you are using non standard ports use the following command line:
greetz,
It's not firewall related. I have the ESX server suucessfully contacting the syslog server, but it's not logging the
vmware types: vmkernel, vmksummary, vmkwarning, etc...
How can I get ESX to successfully export the vmware type logs to the syslog server?
Thanks.
Hi, I'm in the same trouble. We want to use ESX 3. For security reasons I have to export VM logs to secure storage
(to another machine). I have to watch independent-persistent/nonpersistent HDD mode parameter. I figured out
remote share using smbmount, but it doesnt make a copy and actual log is unreadable until VM stops. Then I tryied
to use FIFO called vmlog.log, but it is renamed every VM PowerOn. Is there any way to use syslog or to catch
"PowerOn button click" event? Or is there any parametr in MyVirtualMachine.vmx like run.App="MyLogingScript" .
Thanks in advance...
1) Adding
*.* @server
2) run
esxcfg-firewall -o 514,udp,out,syslog
If you do not do the last then it will not send data even if it appears to connect.
As for the vmware.log files being logged remotely. These do not use syslog so the syslog server can not be setup
to do that without a script running. You could write a script that tails the vmware.log file and then pumps the output
syslog using the logger shell command.
Best regards,
Edward
in response to: Texiwill Thanks Edward, I'm a step closer to finish this. I was wondering if there is a way to
make vmware machines logging into linux pipe. I tryed to add parameter into myvirtualmachine.vmx st. like
log.fileName="|/dev/vmlogpipe" but with no succes.