SigNoz
Docs
PricingCustomers
Get Started - Free
Docs
IntroductionContributingMigrate from DatadogSigNoz API
OpenTelemetry
What is OpenTelemetryOpenTelemetry Collector GuideOpenTelemetry Demo
Community
Support
Slack
X
Launch Week
Changelog
Dashboard Templates
DevOps Wordle
Newsletter
KubeCon, Atlanta 2025
More
SigNoz vs DatadogSigNoz vs New RelicSigNoz vs GrafanaSigNoz vs Dynatrace
Careers
AboutTermsPrivacySecurity & Compliance
SigNoz Logo
SigNoz
All systems operational
HIPAASOC-2
SigNoz Cloud - This page applies to SigNoz Cloud editions.
Self-Host - This page applies to self-hosted SigNoz editions.

Collect EC2 Application/Server Logs

Overview

This guide explains how to collect application and server logs from your EC2 instances using the OpenTelemetry Collector.

This guide assumes you have already installed the OpenTelemetry Collector on your EC2 instance. If not, see Install OpenTelemetry Collector on VM.

Prerequisites

  • A Linux-based EC2 instance
  • OpenTelemetry Collector installed and running
  • Access to modify the collector's configuration file (usually config.yaml)

Setup

To collect logs from your EC2 instance, you will need to configure the filelog receiver in your OpenTelemetry Collector.

For complete configuration instructions, follow the Collect Logs from File guide.

The setup involves:

  1. Defining the input: Specifying the path to your log files (e.g., /var/log/myapp.log) in the filelog receiver configuration.
  2. Enabling the pipeline: Adding the receiver to a logs pipeline in the config.yaml file.
  3. Restarting the Collector: Applying the new configuration.

Validate

Once you have updated the configuration and restarted the collector:

  1. Generate some logs in your application or log file.
  2. Go to the Logs Explorer in SigNoz.
  3. You should see your logs appearing. You can filter by host.name (which usually defaults to the EC2 instance ID or hostname) to find logs from this specific instance.
Logs Explorer showing logs from EC2
View EC2 logs in the Logs Explorer

Next Steps

  • Collect Logs from File
  • OpenTelemetry Collector Configuration

Last updated: March 12, 2026

Edit on GitHub

Was this page helpful?

Your response helps us improve this page.

Prev
Infrastructure Metrics
Next
ECS
On this page
Overview
Prerequisites
Setup
Validate
Next Steps

Is this page helpful?

Your response helps us improve this page.