Docs
  • Guides
  • APIs (opens in a new tab)
  • Products
    Elasticsearch Observability Security Elastic Cloud
  • Reference
  • Troubleshoot
  • Release notes
  1. Docs /
  2. Reference /
  3. Elastic Common Schema (ECS) /
  4. ECS logging libraries /
  5. ECS Logging .NET /
  6. .NET model of ECS

A note on the Metadata property

The C# EcsDocument type includes a property called Metadata with the signature:

/// <summary>
/// Container for additional metadata against this event.
/// </summary>
[JsonPropertyName("metadata"), DataMember(Name = "metadata")]
public IDictionary<string, object> Metadata { get; set; }
		

This property is not part of the ECS specification, but is included as a means to index supplementary information.

Previous
Usage
Next
Extending EcsDocument
  • 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 Elastic Common Schema (ECS) ECS logging libraries
  • ECS Logging .NET
    • Get started
    • .NET model of ECS
      • Usage
      • A note on the Metadata property
      • Extending EcsDocument
    • Formatters
      • Serilog formatter
      • NLog layout
      • log4net
    • Data shippers
      • Elasticsearch security
      • ECS ingest channels
      • Elastic.Serilog.Sinks
      • Elastic.Extensions.Logging
      • BenchmarkDotnet exporter
    • Enrichers
      • APM serilog enricher
      • APM NLog layout
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.