Working with ESX(i) Log Files



Similar documents
vsphere Management Assistant Guide vsphere 4.0 EN

How to install software on VMware ESXi 4.0/4.1

How to install PowerChute Network Shutdown on VMware ESXi 3.5, 4.0 and 4.1

Step by Step: vcenter Syslog Collector installation

Using ESXi with PowerChute Business Edition

Consolidated Monitoring, Analysis and Automated Remediation For Hybrid IT Infrastructures. Goliath Performance Monitor Installation Guide v11.

VMware vcenter Log Insight Administration Guide

Consolidated Monitoring, Analysis and Automated Remediation For Hybrid IT Infrastructures. Goliath Performance Monitor Installation Guide v11.

Cedric Rajendran VMware, Inc. Security Hardening vsphere 5.5

Configuring High Availability for VMware vcenter in RMS Distributed Setup

How To Set Up A Network Map In Linux On A Ubuntu 2.5 (Amd64) On A Raspberry Mobi) On An Ubuntu (Amd66) On Ubuntu 4.5 On A Windows Box

vsphere Management Assistant Guide vsphere 4.1

vsphere Single Host Management

Vmware VSphere 6.0 Private Cloud Administration

VMware Auto Deploy Administrator s Guide

ISRX207VE11-1. NEC Storage PathManager for VMware Installation Guide

vsphere Private Cloud RAZR s Edge Virtualization and Private Cloud Administration

Building a Penetration Testing Virtual Computer Laboratory

Consolidated Monitoring, Analysis and Automated Remediation For Hybrid IT Infrastructures. Goliath Performance Monitor Installation Guide v11.

Migrating to ESXi: How To

ESX System Analyzer Version 1.0 Installation Guide

VMware vcenter Log Insight Installation and Administration Guide

simplify monitoring Consolidated Monitoring, Analysis and Automated Remediation For Hybrid IT Infrastructures

Dell EqualLogic Multipathing Extension Module

Exinda How to Guide: Virtual Appliance. Exinda ExOS Version Exinda, Inc

How to set up a free iscsi or NAS storage system for VMware ESX using Openfiler

Managing Multi-Hypervisor Environments with vcenter Server

Virtual Managment Appliance Setup Guide

Device Integration: Checkpoint Firewall-1

ilaw Installation Procedure

Bosch Video Management System High availability with VMware

How to Backup and Restore a VM using Veeam

VMware for Bosch VMS. en Software Manual

Virtual Web Appliance Setup Guide

Khóa học dành cho các kỹ sư hệ thống, quản trị hệ thống, kỹ sư vận hành cho các hệ thống ảo hóa ESXi, ESX và vcenter Server

Acronis Backup & Recovery 10 Advanced Server Virtual Edition. Quick Start Guide

INASP: Effective Network Management Workshops

Unless otherwise noted, all references to STRM refer to STRM, STRM Log Manager, and STRM Network Anomaly Detection.

ISERink Installation Guide

vcenter Server Appliance Configuration

Eaton NetWatch NetWatch installation and configuration guide VMware ESX 3 Virtual architecture

Assignment 3 Firewalls

Extreme Control Center, NAC, and Purview Virtual Appliance Installation Guide

Configuring MailArchiva with Insight Server

PowerPanel Business Edition Installation Guide

vsphere Replication for Disaster Recovery to Cloud

How To Set Up A Firewall Enterprise, Multi Firewall Edition And Virtual Firewall

HOWTO: Set up a Vyatta device with ThreatSTOP in bridge mode

F-SECURE MESSAGING SECURITY GATEWAY

AlienVault. Unified Security Management 5.x Configuration Backup and Restore

ASM Educational Center (ASM) Est VMS-ICM v5.5 - VMware vsphere: Install, Configure, Manage Training Program

Hitachi Compute Blade Series Hitachi Compute Rack Series Server installation and monitoring tool User's Guide log monitoring functions for VMware vma

HOWTO: Set up a Vyatta device with ThreatSTOP in router mode

disect Systems Logging Snort alerts to Syslog and Splunk PRAVEEN DARSHANAM

Intrusion Detection and Prevention: Network and IDS Configuration and Monitoring using Snort

Device Integration: Citrix NetScaler

VMware vcenter Log Insight Getting Started Guide

Monitoring VMware ESX Virtual Switches

VMware vsphere: Fast Track [V5.0]

Monitoring Clearswift Gateways with SCOM

VM-Series Firewall Deployment Tech Note PAN-OS 5.0

How to upload - copy PowerChute Network Shutdown installation files to VMware VMA from a PC

Cloud Storage Quick Start Guide

Patch Management. Module VMware Inc. All rights reserved

Load Balancing Trend Micro InterScan Web Gateway

How To Analyze Logs On Aloha On A Pcode On A Linux Server On A Microsoft Powerbook (For Acedo) On A Macbook Or Ipad (For An Ubuntu) On An Ubode (For Macrocess

Introduction to Mac OS X

Configuring iscsi Multipath

PowerChute Network Shutdown v4.0. Installation Guide. Windows Linux/Unix Mac OS X Hyper-V/SCVMM VMware

VMware vsphere Data Protection Advanced 5.5

LifeSize Transit Virtual Appliance Installation Guide June 2011

Automated Penetration Test

vsphere Upgrade vsphere 6.0 EN

ESET SHARED LOCAL CACHE

SQL Express to SQL Server Database Migration MonitorIT v10.5

VMware vsphere-6.0 Administration Training

for Networks Installation Guide for the application on the server August 2014 (GUIDE 2) Lucid Exact Version 1.7-N and later

How to Install Microsoft Windows Server 2008 R2 in VMware ESXi

Field Installation Guide

vsphere Auto Deploy Update 1 ESXi 5.0 vcenter Server 5.0 EN

Copyright 2015 SolarWinds Worldwide, LLC. All rights reserved worldwide. No part of this document may be reproduced by any means nor modified,

Virtual Appliance Installation Guide

Cisco Nexus 1000V Virtual Ethernet Module Software Installation Guide, Release 4.0(4)SV1(1)

How to install/upgrade the LANDesk virtual Cloud service appliance (CSA)

VMware vcenter Log Insight Security Guide

Reference and Troubleshooting: FTP, IIS, and Firewall Information

4PSA Total Backup User's Guide. for Plesk and newer versions

Installing Virtual Coordinator (VC) in Linux Systems that use RPM (Red Hat, Fedora, CentOS) Document # 15807A1-103 Date: Aug 06, 2012

Syncplicity On-Premise Storage Connector

Security. Environments. Dave Shackleford. John Wiley &. Sons, Inc. s j}! '**»* t i j. l:i. in: i««;

RSA Security Analytics

Collecting Windows logs using Snare

VMware ESXi 5.0 Installation and RWC2 Tips and Tricks

Load Balancing SIP Quick Reference Guide v1.3.1

Trend Micro Incorporated reserves the right to make changes to this document and to the products described herein without notice.

Transcription:

Working with ESX(i) Log Files Working with ESX(i) log files is important when troubleshooting issues within the virtual environment. You can view and search log files in ESX(i) and in vcenter Server using a few different methods. Methods Using the vsphere client The direct console user interface (DCUI) A web browser A syslog or vma appliance An SSH connection to the host PowerCLI using the Get-Log command When using SSH, use the following commands to view and search the log files. Use more to page through the log files one page at a time Use tail to view the end of the log files Use grep to search Use pipe to link commands together Use pipe to grep to search through files Use cat to concatenate & use grep to search Use find print grep filename to search for a file Example Cat hostd.log grep search variable more vcenter log files vcenter log files are in a vpxd-xx.log format where xx is a numerical value that increases when each log file is 5MB in size. The log file numbers rotate when the vpxd service is started or when the log reaches 5MB in size. The log files are located in the c:programdatavmwarevmware virtual centerlogs

Other log files include Vpxd-alert-x.log Vpxd-profile-x.log Esx logs /var/log/vmkernel VMkernel messages /var/log/vmkwarning /var/log/vmksummary /var/log/vmware/hostd.log /var/log/messages service console /var/log/vmware/vpx/vpxa.log vsphere client agent /var/log/aam/vmware xxx.log- HA /var/log/vmkiscsid.log iscsi /var/log/boot-logs/sysboot.log boot log ESXi logs /var/log/messages combination of the VMkernel and vmkwarning /var/log/vmware/hostd.log host management service /var/log/vmware/vpx/vpxa.log vsphere client agent /var/log/sysboot.log boot log /var/log/vmware/aam/vmware xxx.log HA Log rotation Within ESX(i), rotation for most log files is controlled by /etc/logrotate.conf To view available options run man logrotate With both ESX and ESX(i) hostd.log rotation is controlled with /etc/vmware/hostd/config.xml Vpxa.log rotation is controlled with /etc/opt/vmware/vpxa/vpxa.cfg Should you wish to edit the rotation control files you can use Nano in ESX or vi in ESX and ESXi. I will focus on vi as I am more familiar with it and with the arrival of vsphere 5 there will no longer be ESX, and as such no native support for Nano. vi commands

a append i insert O/o open new line O is line above, o is line below r replace : search or save options / search wq write and quit x delete individual characters dd delete line $ go to the end of the line ESC break out of current mode Log bundles Log bundles can be accessed through the VMware folder on the start menu, by clicking generate vcenter server log bundle. This runs the vc-support windows scripting file located at c:program filesvmwarevirtual infrastructurevirtual centrescriptsvc-support.wsf and cscript. You can also download it through the vsphere client and by connecting to the ESX(I) server using scp with Veeam FastSCP or WinSCP. To do this you have to enable tech support mode first. An alternative way of generating log bundles is through the vm-support command run through an SSH connection to the COS or through the vma. Running vm-support will generate a tar compressed file. Procedure [root@esxhost]#/usr/bin/vm-support With ESXi it is possible to place log files on shared storage. To set this open the vsphere client connection to the host, click configuration>advanced settings>syslog select local and enter the path to the shared storage. Enter the log file location as [datastorename]/logfiles/hostname.log. vilogd

vilogd is a service that performs log collections. You can manage it with the vilogger commands. vilogger is used to enable and disable or configure the log collections with these commands. To use vilogger, first ensure that vi-fastpass is enabled using vifp list server to list out the current vi-fastpass enabled servers, if no servers are listed use vifp addserver servername and vifptarget -s servername to add again. Commands vilogger enable vilogger list vilogger update policy Control the vilogd service with etc/init.d/vmwarevilogd start stop restart vilogger has several parameters available, an example of which are numrotation number of files to collect maxfilesize specified in MB collectionperiod how often to poll, specified in seconds Example vilogger enable server servername numrotation 20 maxfilesize 10 collectionperiod 10 This command will collect the following logs from the ESXi host hostd.log messages.log vpxa.log To scroll through the log files one page at a time use the more command. Example more hostd.log

Configure vma as a Syslog Server You can configure the vma as a syslog receiver to collect log files from the ESX and ESXi server. Run the commands listed below to configure. vma #sudo service rsyslog stop #sudo nano /etc/sysconfig/rsyslog This will open nano so you can edit the following information change SYSLOGD_OPTIONS= -m 0 to SYSLOGD_OPTIONS= -r -m 0 Save and exit the file #sudo service rsyslog start #sudo iptables -I INPUT -i eth0 -p udp dport 514 -j ACCEPT #sudo nano /etc/rc.local Edit the file to add the iptables line below to the end of the rc.local file iptables -I INPUT -i eth0 -p udp dport 514 -j ACCEPT ESX To configure ESX to use vma as a syslog server add the IP address of the vma to the /etc/syslog.conf file. #vi /etc/syslog.conf Add the following lines to the bottom of the file # Send all syslog traffic to vma *.* @<IP_Address_Of_vMA> Open the firewall with #/usr/sbin/esxcfg-firewall -o 514,udp,out,syslog Finally restart the syslog service with #sbin/services syslog restart ESXi Use the vsphere client by going to configuration>advanced>syslog settings and enter into the

syslog.remote.hostname section the name of the vma. Alternatively assuming vi-faspass is enabled run #vifptarget -s [ESXihost] #vicfg-syslog -s [vma] #vifptarget -c