[Discover] Implement log document context resolution #184080
Labels
enhancement
New value added to drive a business result
Feature:Discover
Discover Application
Project:OneDiscover
Enrich Discover with contextual awareness
Team:DataDiscovery
Discover, search (e.g. data plugin and KQL), data views, saved searches. For ES|QL, use Team:ES|QL.
Team:obs-ux-logs
Observability Logs User Experience Team
📓 Summary
The first document profile supported by One Discover will be "log". This issue covers the initial implementation of a log
DocumentProfileProvider
, primarily itsresolve
method. The aim should be to identify a log as a document type by inspecting the currentDataTableRecord
. Associated extension point implementations will be added later under separate issues.Some ideas of how we might implement this:
In ES|QL mode, records may not have all fields when using
KEEP
, but we should be ok initially to have those resolve todefault
, and instead focus on situations where we have the fields we need.In the current example implementation, we're just checking that the field
data_stream.type === logs
.We don't need to rely on single heuristic for the resolution process. For example, we may continue to use
data_stream.type
to check if a record is a log, but we can additionally use other fields or combinations of fields to identify a log as well.🔗 related to: [Discover] Implement logs data source context resolution #184079
✔️ Acceptance criteria
DocumentProfileProvider
with aresolve
method based on the defined heuristics.The text was updated successfully, but these errors were encountered: