# Packages
Package jsonexpr provides JSON extractor expression parser.
Package logqlabels contains LogQL label utilities.
Package logqlerrors defines LogQL engine errors.
Package logqlmetric provides metric queries implementation.
Package logqlpattern contains parser for LogQL `pattern` stage pattern.
# Functions
BuildPipeline builds a new Pipeline.
DefaultOptimizers returns slice of default [Optimizer]s.
IsExplainQuery whether if this LogQL query is explained.
LineFromEntry returns a JSON line from a log record.
NewEngine creates new Engine.
VisitNode visits nodes of given type.
# Constants
DirectionBackward sorts records in descending order.
DirectionForward sorts records in ascending order.
# Variables
NopProcessor is a processor that does nothing.
# Structs
AndLabelMatcher is a AND logical operation for two label matchers.
BinOp is a [MetricNode] implementing binary operation.
BytesLabelFilter is a label filter Processor.
ContainsMatcher checks if a string contains value.
Decolorize removes ANSI escape codes from line.
DistinctFilter filters out records with duplicate label values.
DropLabels label filtering Processor.
DurationLabelFilter is a label filter Processor.
Engine is a LogQL evaluation engine.
Entry represents a log entry.
EqComparator implements '==' Comparator.
EqualIPMatcher checks if an IP equal to given value.
EqualsMatcher checks if a string equals to a value.
EvalParams sets evaluation parameters.
ExplainQuery is simple Explain expression query.
FastRegexpMatcher checks if a matches regular expression.
GtComparator implements '>' Comparator.
GteComparator implements '>=' Comparator.
IPLabelFilter is a label filter Processor.
IPLineMatcher looks for IP address in a line and applies matcher to it.
JSONExtractor is a JSON label extractor.
KeepLabels label filtering Processor.
LabelFormat is a label formatting Processor.
LabelMatcher is a label filter Processor.
LabelReplace is a [MetricNode] implementing `label_replace` function.
LineFilter is a line matching Processor.
LineFormat is a line formatting Processor.
LiteralBinOp is a [MetricNode] implementing binary operation on literal.
LiteralQuery is simple literal expression query.
LogfmtExtractor is a Logfmt label extractor.
LogQuery represents a log query.
LtComparator implements '<' Comparator.
LteComparator implements '<=' Comparator.
MetricParams defines [MetricNode] parameters.
MetricQuery represents a metric query.
NotEqComparator implements '!=' Comparator.
NotMatcher is a NOT logical matcher.
NumberLabelFilter is a label filter Processor.
Options sets Engine options.
OrLabelMatcher is a OR logical operation for two label matchers.
OrLineFilter is a line matching Processor.
PatternExtractor is a Pattern label extractor.
Pipeline is a multi-stage processor.
PrefixIPMatcher checks if an IP has given prefix.
ProcessorNode implements [PipelineNode].
QuerierCapabilities defines what operations storage can do.
RangeAggregation is a [MetricNode] implementing range aggregation.
RangeIPMatcher checks if an IP is in given range.
RegexpExtractor is a Regexp label extractor.
RegexpMatcher checks if a matches regular expression.
RenameLabel is a label renaming Processor.
SamplingNode implements entry sampling.
UnpackExtractor extracts log entry fron Promtail `pack`-ed entry.
Vector is a [MetricNode] implementing vector literal.
VectorAggregation is a [MetricNode] implementing vector aggregation.
# Interfaces
Comparator is a filter that compares value.
IPMatcher matches an IP.
Matcher is a generic matcher.
MetricNode represents a LogQL metric function node.
Node is a generic node interface.
Optimizer defines an interface for optimizer.
PipelineNode represents a LogQL pipeline node.
Processor is a log record processor.
Querier does queries to storage.
Query is a LogQL query.
SampleNode represents a log sampling node.
StringMatcher matches a string.
# Type aliases
Direction describe log ordering.
NodeVisitor is a callback to traverse [Node].
No description provided by the author
SupportedOps is a bitset defining ops supported by Querier.