package
7.17.28
Repository: https://github.com/elastic/beats.git
Documentation: pkg.go.dev

# Functions

New constructs a new add_nomad_metadata processor.
NewAllocationNameIndexer initializes and returns a AllocationNameIndexer.
NewAllocationUUIDIndexer initializes and returns a AllocationUUIDIndexer.
NewFieldFormatMatcher creates a custom FieldFormtMatcher given a configuration (`format` key).
NewFieldMatcher builds a new list of fields to match from lookup_fields.
NewIndexers builds an Indexers object from its configurations.
NewMatchers builds a Matchers object from its configurations.
NewRegister creates and returns a new Register.

# Constants

FieldFormatMatcherName format of the string used to create a key for the allocation metadata lookup.
FieldMatcherName fields to be used as key for the allocation metadata lookup.

# Variables

Indexing is the singleton Register instance where all Indexers and Matchers are stored.

# Structs

AllocationNameIndexer implements default indexer based on the allocation name.
AllocationUUIDIndexer indexes allocations based on the allocation id.
FieldFormatMatcher represents a special field formatter that its created given a custom format.
FieldMatcher represents a list of fields to match.
Indexers holds a collections of Indexer objects and the associated lock.
Matchers holds a collections of Matcher objects and the associated lock.
MetadataIndex holds a pair of index to metadata.
Register contains Indexer and Matchers to use on allocation indexing and event matching.

# Interfaces

Indexer takes an allocation and generate all the metadata we need to enrich events in a efficient way.
Matcher takes a new event and returns the index.

# Type aliases

IndexerConstructor builds a new indexer from its settings.
MatcherConstructor builds a new Matcher from its settings.