Open trevorwhitney opened 5 months ago
Would we store metadata like 'first seen' and 'last seen'? Since patterns are ephemeral, if we've bookmarked a pattern that has gone out of fashion, we could show a notice saying 'Logs matching this pattern were last seen 2 months ago: View those logs or See current patterns'.
I think querying for an old pattern is not as much of a problem as showing patterns over time, for two reasons.
First, is it useful to show a bunch of little hills, where a pattern goes up for a little, then tails off, when looking over a long window (say ~1 wk)? Does that tell you anything about what's actually going on since it's missing the larger picture? This is where pattern evaluation at query time is helpful because all patterns are using the same drain tree over the whole window.
Second, that will explode cardinality to have a bunch of short lived patterns that, in reality, may be pretty similar. An idea @cyriltovena had for that is maybe storing derivatives of patterns by running drain on drain. The concern there is do you lose too much fidelity?
this is a placeholder for a conversation, but as we aim to store timeseries data on patterns seen in the pattern ingester over longer periods of time, I think there are 2 problems we need to think about: