Sending Your VMWare vSphere Logs to LogDNA

4 MIN READ
MIN READ

In this post, we'll show you how to centralize logs from VMWare vSphere by sending them LogDNA. We'll explain how to configure your ESXi hosts and vCenter Server Appliance to ensure that your vSphere infrastructure is fully logged.

Logging your virtual machines (VMs) is important, but what's even more important is logging the hypervisors that run them. Hypervisors generate extremely useful data about the operation of your virtual machines and the environments that they run in. While VMs provide some information about their state, details such as VM performance, changes in state, errors, and security can only be found through hypervisor logs.

The challenge is retrieving and using these logs. Logging a VM is as simple as installing a logging agent, but hypervisors (specifically bare metal hypervisors) often have much more limited operating environments. Installing third-party software on a hypervisor may be much more difficult (if at all possible) than a desktop or server OS. However, this doesn't make hypervisor logging impossible; in fact, it may be easier than you would expect.

Why You Should Log VMWare vSphere

VMWare vSphere is a suite of applications and services for administering VMs. It is made up of two main components:

  • ESXi, the bare metal hypervisor that runs VMs.
  • vCenter Server, an application for managing ESXi hosts and VM instances. vCenter Server is most commonly deployed as a preconfigured VM called the vCenter Server Appliance (vCSA).

ESXi hosts log all VM activity including startups and shutdowns, warnings and errors, hardware changes, and migrations. They also record host activities such as kernel events, security events (e.g. user logins), shell commands, and communications with vCenter Server. Each host runs a local syslog service, which writes all logs to the local filesystem.

vCSA logs activities related to the management and administration of vSphere and ESXi hosts. This includes connections from vSphere Clients, profile metrics for various vSphere operations, and performance and health data from ESXi hosts. Like ESXi, the vCSA uses a syslog service to record all logs to the local filesystem.

Logging your vCSA and ESXi hosts gives you a complete overview of any and all activities that took place in your vSphere infrastructure. Using a log management system like LogDNA lets you centralize, analyze, and monitor these logs to ensure your vSphere infrastructure is running smoothly. This includes monitoring for new VM instances and VM failures, poor performance, problems with your ESXi hosts, security incidents and failed logins, and much more. These logs can also help system administrators and DevOps engineers troubleshoot infrastructure problems by providing detailed contextual information about events that occurred and the systems they impacted.

Sending vSphere Logs to LogDNA

Since ESXi and vCSA route all logs through syslog, forwarding their logs to LogDNA is as easy as appending a URL to the syslog service configuration. Before configuring your vSphere services, follow the instructions for adding a syslog host to LogDNA. After you generate a syslog URL and port, keep the window open since you will need to copy this URL to your ESXi and vCSA configurations.

ESXi

The ESXi syslog service is called vmsyslogd. By default, this service writes all logs to a set of log files on the local filesystem. By making a minor change to the vmsyslogd configuration, we can route these logs to LogDNA.

As an alternative, you can forward your ESXi logs to your vCSA or a dedicated log server before forwarding them to LogDNA. This lets you centralize your ESXi logs without exposing your hosts to the public Internet. The process is the same as sending your Logs to LogDNA, only the URL you provide will be the URL to your log server.

There are multiple ways to configure syslog on your ESXi hosts including using a vSphere Client, Host Profiles, or the esxcli CLI utility. We'll show you how to configure a host using esxcli.
After opening a console session on your ESXi host, run esxcli system syslog config set with the loghost option set to your LogDNA URL:

esxcli system syslog config set --loghost='syslog-x.logdna.com:12345'

This command uses the UDP protocol, but you can specify TCP or TCP+TLS instead:

esxcli system syslog config set --loghost='tcp://syslog-x.logdna.com:12345'

Reload the syslog daemon to apply the changes:

esxcli system syslog reload

For more information about configuring ESXi, visit the Configuring syslog on ESXi knowledge base article.

vCSA

vCSA also runs a local syslog service, which you can configure using the vCenter Server Appliance Management Interface. Start by logging into the management interface and selecting Syslog Configuration. Click Edit, then select the log files that you wish to forward from the Common Log Level drop-down menu. Clicking * will redirect all log files.

Use the Remote Syslog Host, Remote Syslog Port, and Remote Syslog Protocol boxes to enter your LogDNA syslog endpoint. Click OK to apply the changes and send your vCSA logs to LogDNA.

For more information about configuring vCSA, visit the Redirect vCenter Server Appliance Log Files to Another Machine documentation page.

Conclusion

Forwarding your vSphere logs to LogDNA is one of the easiest and fastest ways to monitor, troubleshoot, and audit your VM deployments. From here, you can use LogDNA's custom log parser, graphs, alerts, and other features to put your logs to greater use. To get started, sign into your LogDNA account and follow the instructions for setting up a syslog URL.

To learn more about LogDNA, contact us, visit our website, or sign up for a 14-day free trial (no credit card required).

 

Table of Contents

    Share Article

    RSS Feed

    Next blog post
    You're viewing our latest blog post.
    Previous blog post
    You're viewing our oldest blog post.
    The Observability Stack is Collapsing: Why Context-First Data is the Only Path to AI-Powered Root Cause Analysis
    Mezmo + Catchpoint deliver observability SREs can rely on
    Mezmo’s AI-powered Site Reliability Engineering (SRE) agent for Root Cause Analysis (RCA)
    What is Active Telemetry
    Launching an agentic SRE for root cause analysis
    Paving the way for a new era: Mezmo's Active Telemetry
    The Answer to SRE Agent Failures: Context Engineering
    Empowering an MCP server with a telemetry pipeline
    The Debugging Bottleneck: A Manual Log-Sifting Expedition
    The Smartest Member of Your Developer Ecosystem: Introducing the Mezmo MCP Server
    Your New AI Assistant for a Smarter Workflow
    The Observability Problem Isn't Data Volume Anymore—It's Context
    Beyond the Pipeline: Data Isn't Oil, It's Power.
    The Platform Engineer's Playbook: Mastering OpenTelemetry & Compliance with Mezmo and Dynatrace
    From Alert to Answer in Seconds: Accelerating Incident Response in Dynatrace
    Taming Your Dynatrace Bill: How to Cut Observability Costs, Not Visibility
    Architecting for Value: A Playbook for Sustainable Observability
    How to Cut Observability Costs with Synthetic Monitoring and Responsive Pipelines
    Unlock Deeper Insights: Introducing GitLab Event Integration with Mezmo
    Introducing the New Mezmo Product Homepage
    The Inconvenient Truth About AI Ethics in Observability
    Observability's Moneyball Moment: How AI Is Changing the Game (Not Ending It)
    Do you Grok It?
    Top Five Reasons Telemetry Pipelines Should Be on Every Engineer’s Radar
    Is It a Cup or a Pot? Helping You Pinpoint the Problem—and Sleep Through the Night
    Smarter Telemetry Pipelines: The Key to Cutting Datadog Costs and Observability Chaos
    Why Datadog Falls Short for Log Management and What to Do Instead
    Telemetry for Modern Apps: Reducing MTTR with Smarter Signals
    Transforming Observability: Simpler, Smarter, and More Affordable Data Control
    Datadog: The Good, The Bad, The Costly
    Mezmo Recognized with 25 G2 Awards for Spring 2025
    Reducing Telemetry Toil with Rapid Pipelining
    Cut Costs, Not Insights:   A Practical Guide to Telemetry Data Optimization
    Webinar Recap: Telemetry Pipeline 101
    Petabyte Scale, Gigabyte Costs: Mezmo’s Evolution from ElasticSearch to Quickwit
    2024 Recap - Highlights of Mezmo’s product enhancements
    My Favorite Observability and DevOps Articles of 2024
    AWS re:Invent ‘24: Generative AI Observability, Platform Engineering, and 99.9995% Availability
    From Gartner IOCS 2024 Conference: AI, Observability Data, and Telemetry Pipelines
    Our team’s learnings from Kubecon: Use Exemplars, Configuring OTel, and OTTL cookbook
    How Mezmo Uses a Telemetry Pipeline to Handle Metrics, Part II
    Webinar Recap: 2024 DORA Report: Accelerate State of DevOps
    Kubecon ‘24 recap: Patent Trolls, OTel Lessons at Scale, and Principle Platform Abstractions
    Announcing Mezmo Flow: Build a Telemetry Pipeline in 15 minutes
    Key Takeaways from the 2024 DORA Report
    Webinar Recap | Telemetry Data Management: Tales from the Trenches
    What are SLOs/SLIs/SLAs?
    Webinar Recap | Next Gen Log Management: Maximize Log Value with Telemetry Pipelines
    Creating In-Stream Alerts for Telemetry Data
    Creating Re-Usable Components for Telemetry Pipelines
    Optimizing Data for Service Management Objective Monitoring
    More Value From Your Logs: Next Generation Log Management from Mezmo
    A Day in the Life of a Mezmo SRE
    Webinar Recap: Applying a Data Engineering Approach to Telemetry Data
    Dogfooding at Mezmo: How we used telemetry pipeline to reduce data volume
    Unlocking Business Insights with Telemetry Pipelines
    Why Your Telemetry (Observability) Pipelines Need to be Responsive
    How Data Profiling Can Reduce Burnout
    Data Optimization Technique: Route Data to Specialized Processing Chains
    Data Privacy Takeaways from Gartner Security & Risk Summit
    Mastering Telemetry Pipelines: Driving Compliance and Data Optimization
    A Recap of Gartner Security and Risk Summit: GenAI, Augmented Cybersecurity, Burnout
    Why Telemetry Pipelines Should Be A Part Of Your Compliance Strategy
    Pipeline Module: Event to Metric
    Telemetry Data Compliance Module
    OpenTelemetry: The Key To Unified Telemetry Data
    Data optimization technique: convert events to metrics
    What’s New With Mezmo: In-stream Alerting
    How Mezmo Used Telemetry Pipeline to Handle Metrics
    Webinar Recap: Mastering Telemetry Pipelines - A DevOps Lifecycle Approach to Data Management
    Open-source Telemetry Pipelines: An Overview
    SRECon Recap: Product Reliability, Burn Out, and more
    Webinar Recap: How to Manage Telemetry Data with Confidence
    Webinar Recap: Myths and Realities in Telemetry Data Handling
    Using Vector to Build a Telemetry Pipeline Solution
    Managing Telemetry Data Overflow in Kubernetes with Resource Quotas and Limits
    How To Optimize Telemetry Pipelines For Better Observability and Security
    Gartner IOCS Conference Recap: Monitoring and Observing Environments with Telemetry Pipelines
    AWS re:Invent 2023 highlights: Observability at Stripe, Capital One, and McDonald’s
    Webinar Recap: Best Practices for Observability Pipelines
    Introducing Responsive Pipelines from Mezmo
    My First KubeCon - Tales of the K8’s community, DE&I, sustainability, and OTel
    Modernize Telemetry Pipeline Management with Mezmo Pipeline as Code
    How To Profile and Optimize Telemetry Data: A Deep Dive
    Kubernetes Telemetry Data Optimization in Five Steps with Mezmo
    Introducing Mezmo Edge: A Secure Approach To Telemetry Data
    Understand Kubernetes Telemetry Data Immediately With Mezmo’s Welcome Pipeline
    Unearthing Gold: Deriving Metrics from Logs with Mezmo Telemetry Pipeline
    Webinar Recap: The Single Pane of Glass Myth
    Empower Observability Engineers: Enhance Engineering With Mezmo
    Webinar Recap: How to Get More Out of Your Log Data
    Unraveling the Log Data Explosion: New Market Research Shows Trends and Challenges
    Webinar Recap: Unlocking the Full Value of Telemetry Data
    Data-Driven Decision Making: Leveraging Metrics and Logs-to-Metrics Processors
    How To Configure The Mezmo Telemetry Pipeline
    Supercharge Elasticsearch Observability With Telemetry Pipelines
    Enhancing Grafana Observability With Telemetry Pipelines
    Optimizing Your Splunk Experience with Telemetry Pipelines
    Webinar Recap: Unlocking Business Performance with Telemetry Data
    Enhancing Datadog Observability with Telemetry Pipelines