Docs
  • Guides
  • APIs (opens in a new tab)
  • Products
    Elasticsearch Observability Security Elastic Cloud
  • Reference
  • Troubleshoot
  • Release notes
  1. Docs /
  2. Reference /
  3. Ingestion tools /
  4. Fleet and Elastic Agent /
  5. Configure standalone Elastic Agents

Config file examples

These examples show a basic, sample configuration to include in a standalone Elastic Agent elastic-agent.yml configuration file to gather data from various source types.

  • Apache HTTP Server
  • Nginx HTTP Server
Previous
Agent download
Next
Apache HTTP Server
  • View as Markdown
  • Report a docs issue
  • Edit this page
  • Learn how to contribute
Get started free
  • 14-day free trial
  • All features included
  • No setup required
Section
Reference
Docs Guides APIs (opens in a new tab)
Products
Elasticsearch Observability Security Elastic Cloud
Reference Troubleshoot Release notes
Version
Reference Ingestion tools
  • Fleet and Elastic Agent
    • Restrictions for Elastic Cloud Serverless
    • Beats and Elastic Agent capabilities
    • Elastic Agent as an OTel Collector
    • Migrate from Beats to Elastic Agent
      • Migrate from Auditbeat to Elastic Agent
    • Deployment models
      • What is Fleet Server?
      • Deploy on Elastic Cloud
      • Deploy on-premises and self-managed
      • Deploy Fleet Server on-premises and Elasticsearch on Elastic Cloud
      • Deploy on Kubernetes
      • Fleet Server scalability
      • Fleet Server secrets
        • Secret files guide
      • Monitor a self-managed Fleet Server
    • Install Elastic Agents
      • Elastic Agent release process
      • Install Fleet-managed Elastic Agents
      • Install standalone Elastic Agents
        • Upgrade standalone Elastic Agents
      • Install Elastic Agents in a containerized environment
        • Run Elastic Agent in a container
        • Run Elastic Agent on Kubernetes managed by Fleet
        • Install Elastic Agent on Kubernetes using Helm
          • Example: Install standalone Elastic Agent on Kubernetes using Helm
          • Example: Install Fleet-managed Elastic Agent on Kubernetes using Helm
        • Advanced Elastic Agent configuration managed by Fleet
        • Configuring Kubernetes metadata enrichment on Elastic Agent
        • Run Elastic Agent on GKE managed by Fleet
        • Configure Elastic Agent Add-On on Amazon EKS
        • Run Elastic Agent on Azure AKS managed by Fleet
        • Run Elastic Agent Standalone on Kubernetes
        • Scaling Elastic Agent on Kubernetes
        • Using a custom ingest pipeline with the Kubernetes Integration
        • Environment variables
      • Run Elastic Agent as an OTel Collector
      • Transform an installed Elastic Agent to run as an OTel Collector
      • Run Elastic Agent without administrative privileges
      • Install Elastic Agent from an MSI package
      • Installation layout
      • Air-gapped environments
      • Using a proxy server with Elastic Agent and Fleet
        • When to configure proxy settings
        • Proxy server connectivity using default host variables
        • Fleet-managed Elastic Agent connectivity using a proxy server
        • Standalone Elastic Agent connectivity using a proxy server
        • Set the proxy URL of the Elastic Package Registry
      • Uninstall Elastic Agents from edge hosts
      • Start and stop Elastic Agents on edge hosts
      • Elastic Agent configuration encryption
    • Secure connections
      • Configure SSL/TLS for self-managed Fleet Servers
      • Certificate fingerprints
      • Rotate SSL/TLS CA certificates
      • Elastic Agent deployment models with mutual TLS
      • One-way and mutual TLS certifications flow
      • Configure SSL/TLS for the Logstash output
    • Manage Elastic Agents in Fleet
      • Fleet settings
        • Elasticsearch output settings
        • Logstash output settings
        • Kafka output settings
        • Remote Elasticsearch output
          • Automatic integrations synchronization
        • Considerations when changing outputs
      • Elastic Agents
        • Unenroll Elastic Agents
        • Set inactivity timeout
        • Upgrade Elastic Agents
        • Migrate Elastic Agents
        • Monitor Elastic Agents
        • Elastic Agent built-in alerts
        • Elastic Agent health status
        • Add tags to filter the Agents list
        • Enrollment handling for containerized agents
        • Remove agent elevated privileges
      • Policies
        • Create an agent policy without using the UI
        • Enable custom settings in an agent policy
        • Set environment variables in an Elastic Agent policy
        • Version-specific agent policies
      • Roles and privileges
      • Fleet enrollment tokens
      • Kibana Fleet APIs
    • Monitor OTel Collectors
      • Add an OTel Collector
      • View OTel Collectors
      • Add internal telemetry
    • Configure standalone Elastic Agents
      • Create a standalone Elastic Agent policy
      • Structure of a config file
      • Inputs
        • Simplified log ingestion
        • Elastic Agent inputs
        • Variables and conditions in input configurations
      • Outputs
        • Elasticsearch
        • Kafka
        • Logstash
      • SSL/TLS
      • Logging
      • Feature flags
      • Agent download
      • Config file examples
        • Apache HTTP Server
        • Nginx HTTP Server
      • Grant standalone Elastic Agents access to Elasticsearch
      • Example: Use standalone Elastic Agent with Elastic Cloud Serverless to monitor nginx
      • Example: Use standalone Elastic Agent with Elastic Cloud Hosted to monitor nginx
      • Debug standalone Elastic Agents
      • Kubernetes autodiscovery with Elastic Agent
        • Conditions based autodiscover
        • Hints annotations based autodiscover
      • Monitoring
      • Reference YAML
    • Manage integrations
      • Package signatures
      • Add an integration to an Elastic Agent policy
      • View integration policies
      • Edit or delete an integration policy
      • Install and uninstall integration assets
      • View integration assets
      • Set integration-level outputs
      • Upgrade an integration
      • Roll back an integration
      • Managed content
      • Best practices for integration assets
      • OpenTelemetry integration packages
      • Deprecated integrations
      • Data streams
        • Customize data retention policies
          • All data streams, all namespaces
          • Specific data streams, all namespaces
          • One data stream, one namespace
          • Custom integrations
        • Transform data with custom ingest pipelines
        • Customize data streams with namespace index templates
        • Apply an ILM policy to a namespace
        • Resolve overlapping index templates
        • Advanced data stream features
      • Alerting rule templates
    • Command reference
    • Agent providers
      • Local provider
      • Agent provider
      • Host provider
      • Env provider
      • Filesource provider
      • Kubernetes Secrets provider
      • Kubernetes LeaderElection Provider
      • Local dynamic provider
      • Docker provider
      • Kubernetes provider
    • Agent processors
      • Processor syntax
      • add_cloud_metadata
      • add_cloudfoundry_metadata
      • add_docker_metadata
      • add_fields
      • add_host_metadata
      • add_id
      • add_kubernetes_metadata
      • add_labels
      • add_locale
      • add_network_direction
      • add_nomad_metadata
      • add_observer_metadata
      • add_process_metadata
      • add_tags
      • community_id
      • convert
      • copy_fields
      • decode_base64_field
      • decode_cef
      • decode_csv_fields
      • decode_duration
      • decode_json_fields
      • decode_xml
      • decode_xml_wineventlog
      • decompress_gzip_field
      • detect_mime_type
      • dissect
      • dns
      • drop_event
      • drop_fields
      • extract_array
      • fingerprint
      • include_fields
      • move_fields
      • parse_aws_vpc_flow_log
      • rate_limit
      • registered_domain
      • rename
      • replace
      • script
      • syslog
      • timestamp
      • translate_sid
      • truncate_fields
      • urldecode
Elastic logo
  • Trademarks
  • Terms of Use
  • Privacy
  • Sitemap

© 2026 Elasticsearch B.V. All Rights Reserved.

This content is available in different formats for convenience only. All original licensing terms apply.

Elasticsearch is a trademark of Elasticsearch B.V., registered in the U.S. and in other countries. Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant logo are trademarks of the Apache Software Foundation in the United States and/or other countries.