Anyone who know`s an easy way to setup remote syslog collector, so that the folders isn`t named with the ip address of the host, but with the FQDN or just hostname of the ESX server..???
Welcome to Community.
Here is VMware blog for confuguring syslog
Thanks for the answer. I have already seen these articles.
But what i am searching for is a way to get the logs organised by hostname instead of ip address.
I have tried to use
Syslog.global.logDirUnique, but as i see it, it has to be set in conjunction with
But how is the syntax, when it is a remote windows server that is syslog collector..??
Ind if i just set
Syslog.global.logDirUnique without the other options, it still places the logs in a folder named ip address of ESX server.
I am also facing this same issue. I have successfully configured vCenter Syslog, and all hosts are successfully logging into Unique Directories on my vCenter Syslog server. The issue I am facing is that the folder structure under the \Data directory is using the hosts IP address as the folder name vs. using the hostname of the ESXi host. I have looked at the XML configuration file held at C:\ProgramData\VMware\VMware Syslog Collector\vmconfig-syslog.xml; but cannot find a way to change the logging folders to use hostname instead of IP address.
Any help that can be offered is appreciated!
You could present a share from a Windows box to your hosts as an NFS datastore, then change the syslog.global.logdir and the syslog.global.logdirunique settings. That'd get the syslogs off your hosts into folders with the hostnames.
I managed to put a 'proper' syslog server in a Windows machine with cygwin. As soon as the server resolve the ESX address, the syslog saves the logs in a hostname folder, instead of ip address.. the doc is here: http://communities.vmware.com/docs/DOC-20337 - it's in portuguese but you can translate it very easy.
Has anyone found a fix for this? I am getting a mix of IP's and Host Names in my syslog collector directory. I can't seem to find where the difference is between hosts. I am using a Windows based vCenter 6 server with the default syslog collector directory. All host are setup in the same way using host profiles, but some show up as IP and some show up as Host name.
If you have a Windows-based Syslog server and want that syslog directory being created with the host name instead of IP-address you must do this:
1. Go to Advanced settings and clear Syslog.global.logHost option.
2. Then go to Configuration-->DNS and Routing-->Host Identification-->Domain and type you domain name here.
3. Then repeat actions from this kb: Configuring syslog on ESXi (2003322) | VMware KB
I thought I'd give my two cents here as well. I have had a customer with the same problem and we just wrote a small script that created links to the ip address folders and the link itself is the hostname. kind of like the symbolic link you have on linux or esxi (/vmfs/volumes/).
If anyone is interested in this approach I'm sure I can find the script somewhere in our archive.