Documentation
¶
Index ¶
Constants ¶
View Source
const ( FieldTimestamp = "timestamp" FieldMessage = "message" FieldLevel = "level" FieldCaller = "caller" FieldStacktrace = "stacktrace" // FieldTimestampNanos carries the full-precision timestamp: bleve // truncates stored datetime values to seconds. FieldTimestampNanos = "timestamp_ns" )
Variables ¶
This section is empty.
Functions ¶
func BuildDoc ¶
BuildDoc converts a raw entry into the document shape the Indexer stores, returning the generated entry ID. Shared with entryreader.Matcher so the --filter option and the web search agree on semantics by construction.
func NewIndexMapping ¶
func NewIndexMapping() mapping.IndexMapping
NewIndexMapping builds the bleve mapping for log entries: timestamp as a real datetime (for range windows and sorting) and level as a keyword (for exact matches); everything else is mapped dynamically.
Types ¶
type EntryMatcher ¶
EntryMatcher reports whether an entry matches a filter expression.
type Filter ¶
type Filter struct {
// contains filtered or unexported fields
}
Filter skips entries rejected by the matcher.
func NewFilter ¶
func NewFilter(matcher EntryMatcher) *Filter
type Indexer ¶
type Indexer struct {
// contains filtered or unexported fields
}
Indexer indexes log entries into a bleve index.
func NewIndexer ¶
Click to show internal directories.
Click to hide internal directories.