ESX Virtualization

VMware ESXi, vSphere, VMware Backup, Hyper-V... how-to, videos....

Nakivo Backup and Replication - #1 Backup solution for Virtual, physical, cloud, NAS and SaaS

Menu
  • Certification
      • VCP-DCV vSphere 8
          • vcp2024-125.
        • Close
    • Close
  • VMware
    • Configuration Maximums
    • vSphere
      • vSphere 8.0
      • vSphere 7.0
      • vSphere 6.7
      • vSphere 6.5
      • vSphere 6.0
      • Close
    • VMworld
      • VMware EXPLORE 2024
      • VMware EXPLORE 2023
      • VMware EXPLORE 2022
      • VMworld 2019
      • VMworld 2018
      • VMworld 2017
      • VMworld 2016
      • VMworld 2015
      • VMworld 2014
      • VMworld 2013
      • VMworld 2012
      • VMworld 2011
      • Close
    • Close
  • Microsoft
    • Windows Server 2012
    • Windows Server 2016
    • Windows Server 2019
    • Close
  • Categories
    • Tips – VMware, Microsoft and General IT tips and definitions, What is this?, How this works?
    • Server Virtualization – VMware ESXi, ESXi Free Hypervizor, VMware vSphere Server Virtualization, VMware Cloud and Datacenter Virtualization
    • Backup – Virtualization Backup Solutions, VMware vSphere Backup and ESXi backup solutions.
    • Desktop Virtualization – Desktop Virtualization, VMware Workstation, VMware Fusion, VMware Horizon View, tips and tutorials
    • How To – ESXi Tutorials, IT and virtualization tutorials, VMware ESXi 4.x, ESXi 5.x and VMware vSphere. VMware Workstation and other IT tutorials.
    • Free – Free virtualization utilities, ESXi Free, Monitoring and free backup utilities for ESXi and Hyper-V. Free IT tools.
    • Videos – VMware Virtualization Videos, VMware ESXi Videos, ESXi 4.x, ESXi 5.x tips and videos.
    • Home Lab
    • Reviews – Virtualization Software and reviews, Disaster and backup recovery software reviews. Virtual infrastructure monitoring software review.
    • Close
  • Partners
    • NAKIVO
    • StarWind
    • Zerto
    • Xorux
    • Close
  • This Web
    • News
    • ESXi Lab
    • About
    • Advertise
    • Archives
    • Disclaimer
    • PDFs and Books
    • Close
  • Free
  • Privacy policy

How to configure vMA as a destination of ESXi log files

By Vladan SEGET | Last Updated: February 26, 2013

Shares

ESXi 4.1 does not store log files locally. How to configure vMA as a destination of ESXi log files. It's recommended to configure syslog and get the log files persistent. You have to configure ESXi to send the logs somewhere, because they are not stored locally. Because if you need to reboot your ESXi host, the logs are just lost. I'll show you that by using vMA (VMware Management Assistant) has a built in syslog server which helps you to store logs locally.

I won't detail here how to setup vMA as I suppose that you're already using vMA or it's already in place. If not, download the vMA from vSphere Management Assistant Guide. Import and configure it using the steps in the vSphere Management Assistant Guide

Now our configuration steps. At first you'll need to stop the rsyslog daemon:

# sudo service rsyslog stop

Then you'll need to modify rsyslog file by using a nano editor for example:

#sudo nano /etc/sysconfig/rsyslog

Save and quit. After this change, just start the rsyslog service with:

#sudo service rsyslog start

You'll need also to open one firewall port on the vMA's firewall:

#sudo iptables -I RH-Firewall-1-INPUT 2 -i eth0 -p udp --dport 514 -j ACCEPT

and then save the rule to make sure that it stays there after a reboot:

#sudo service iptables save


Ok, this is it for the vMA part, and so the vMA is ready to accept the logs which will be sent by the ESXi host.

Now we will need to configure the ESXi host using vMA to send those logs to vMA.

You have to setup the ESXi host as a fastpath target:

#vifptarget -s esxi4-01.vladan.lan

and

#vicfg-syslog -s 192.168.0.8 (where this is an IP adress of vMA)

Then we need to enable the vilogger in vMA to collect the logs.

#vilogger enable –server esxi4-01.vladan.lan –numrotation 30 –maxfilesize 20 –collectionperiod 15

(you can run the vilogger –help command you will see other options and values which are available there to fits your needs).

Now when vMA is collecting your logs you can view them by: 

#sudo tail -f /var/log/messages | grep <ESXI_IP_ADDRESS>

That's all folks.. !Enjoy… -:)

Shares
Vote !

| Filed Under: Server Virtualization Tagged With: configuring vMA as a syslog server, How to configure vMA as a destination of ESXi log files, how to configure vma as a destination of syslog, syslog with vMA

About Vladan SEGET

This website is maintained by Vladan SEGET. Vladan is as an Independent consultant, professional blogger, vExpert x16, Veeam Vanguard x9, VCAP-DCA/DCD, ESX Virtualization site has started as a simple bookmarking site, but quickly found a large following of readers and subscribers.

Connect on: Facebook. Feel free to network via Twitter @vladan.

Comments

  1. Mobychien says

    April 30, 2011 at 10:59 am

    What is the difference between ur method and the vi-logger component already in vMA?

    • Vladan SEGET says

      May 1, 2011 at 9:11 am

      The vilogger needs to be configured in order to work as we wish… -:) The component on it’s own does not know where from to collect those logs.

  2. John Jones says

    May 23, 2011 at 5:29 pm

    Once the logs have been collected is there a way to get them into Windows ? can I just use something like WinScp ?

  3. anthony says

    October 19, 2011 at 4:01 pm

    what command to get out from target picture 6 to root on picture 7?

Private Sponsors

Featured

  • Thinking about HCI? G2, an independent tech solutions peer review platform, has published its Winter 2023 Reports on Hyperconverged Infrastructure (HCI) Solutions.
  • Zerto: One Platform for Disaster Recovery, Backup & Cloud Mobility: Try FREE Hands-On Labs Today!
Click to Become a Sponsor

Most Recent

  • Veeam confirming vSphere 9.0 and ESXi 9 upcoming support
  • Veeam Backup & Replication v13 Beta: A Game-Changer with Linux
  • What is Veeam Data Cloud Vault and how it can help SMBs
  • Nakivo Backup and Replication – Malware Scan Feature
  • Zerto 10 U7 released with VMware NSX 4.2 Support
  • XorMon NG 1.9.0 Infrastructure Monitoring – now also with Veeam Backup Support
  • Heartbeat vs Node Majority StarWind VSAN Failover Strategy
  • Vulnerability in your VMs – VMware Tools Update
  • FREE version of StarWind VSAN vs Trial of Full version
  • Commvault’s Innovations at RSA Conference 2025 San Francisco

Get new posts by email:

 

 

 

 

Support us on Ko-Fi

 

 

Buy Me a Coffee at ko-fi.com

Sponsors

Free Trials

  • DC Scope for VMware vSphere – optimization, capacity planning, and cost management. Download FREE Trial Here.
  • Augmented Inline Deduplication, Altaro VM Backup v9 For #VMware and #Hyper-V – Grab your copy now download TRIAL.

VMware Engineer Jobs

VMware Engineer Jobs

YouTube

…

Find us on Facebook

ESX Virtualization

…

Copyright © 2025 ·Dynamik-Gen · Genesis Framework · Log in