package
0.0.0-20240816033106-757bced2f5f6
Repository: https://github.com/tdakkota/docker-logql.git
Documentation: pkg.go.dev

# Packages

Package lexer contains LogQL lexer.
Package logqlengine implements LogQL evaluation engine.

# Functions

IsValidLabel validates label name.
Parse parses LogQL query from string.
ParseSelector parses label selector from string.
ReduceBinOp recursively precomputes literal expression.
UnparenExpr recursively extracts expression from parentheses.

# Constants

ErrorDetailsLabel is a specific label for LogQL error details.
ErrorLabel is a specific label for LogQL errors.
Math ops.
Logical ops.
No description provided by the author
Comparison ops.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

BinOpExpr defines a binary operation between two Expr.
BinOpModifier defines BinOpExpr modifier.
BytesFilter is a byte size filtering predicate (`size > 10gb`).
DecolorizeExpr decolorizes log line.
DistinctFilter filters out lines with duplicate label values.
DropLabelsExpr drops given labels in a pipeline (i.e.
DurationFilter is a duration filtering predicate (`elapsed > 10s`).
Grouping is a grouping clause.
IPFilter is a IP filtering predicate (`addr == ip("127.0.0.1")`).
JSONExpressionParser extracts and filters labels from JSON.
KeepLabelsExpr drops any label except given in a pipeline (i.e.
LabelExtractionExpr defines label value to extract.
LabelFilter filters records by predicate.
LabelFormatExpr renames, modifies or add labels.
LabelMatcher is label matching predicate.
LabelPredicateBinOp defines a logical operation between predicates.
LabelPredicateParen is a prediacte within parenthesis.
LabelReplaceExpr is a PromQL `label_replace` function.
LabelTemplate sets value for a label.
LineFilter is a line filter (`|=`, `!=`, `=~`, `!~`).
LineFormat formats log record using Go template.
LiteralExpr is a literal expression.
LogExpr is a log query expression.
LogfmtExpressionParser extracts and filters labels from Logfmt.
LogRangeExpr is a log range aggregation expression.
NumberFilter is a number filtering predicate (`status >= 400`).
OffsetExpr defines aggregation time offset.
ParenExpr is parenthesized Expr.
ParseOptions is LogQL parser options.
PatternLabelParser extracts labels using log pattern.
RangeAggregationExpr is a range aggregation expression.
RegexpLabelParser extracts labels using regexp capture groups.
RenameLabel renames label.
Selector is a labels selector.
UnpackLabelParser unpacks data from promtail.
UnwrapExpr sets labels to perform aggregation.
VectorAggregationExpr is a vector aggregation expression.
VectorExpr is a vector expression.

# Interfaces

Expr is a root LogQL expression.
LabelPredicate is a label predicate.
MetricExpr is a metric query expression.
PipelineStage is a LogQL pipeline stage.

# Type aliases

BinOp defines binary operation.
Label is a LogQL identifier.
RangeOp defines range aggregation operation.
VectorOp defines vector aggregation operation.