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

# Functions

Compile compiles an input format string into a StringFormatter.
CompileEvent compiles an event format string into an runnable EventFormatString.
FieldsForBeat returns a common.MapStr with the given beat name and version assigned to their standard field names.
MustCompileEvent compiles an event format string into an runnable EventFormatString.
NewTimestampFormatString creates from the given event format string a TimestampFormatString that includes only the given static fields and a timestamp.

# Structs

EventFormatString implements format string support on events of type beat.Event.
StringElement implements StringFormatter always returning a constant string.
TimestampFormatString is a wrapper around EventFormatString for the common special case where the format expression should only have access to shared static fields (typically agent / version) and the event timestamp.
VariableOp defines one expansion variable, including operator and parameter.

# Interfaces

FormatEvaler evaluates some format.
StringFormatter interface extends FormatEvaler adding support for querying formatter meta data.

# Type aliases

VariableCompiler is used to compile a variable expansion into an FormatEvaler to be used with the format-string.