3 ms·
If you use grep you'll be doing the same expensive operation every time, following files naively will fail after rotation, etc... And if you use something like
by tiagod 4y ago
If you use grep you'll be doing the same expensive operation every time, following files naively will fail after rotation, etc... And if you use something like Loki it's easier to integrate with other tools to react to the logs
- unxdfa 4y agoIt’s potentially a premature optimisation to not do that expensive operation every time. Loki and brethren have a significant infrastructure cost and cognitive load to consider. I speak from experience and know where the ROI appears and it’s far from the use case specified here.
- ilyt 4y ago> following files naively will fail after rotation, ...so what you're saying they have to write "tail -F" instead of "tail". > If you use grep you'll be doing the same expensive operation every time if you have ingest that low it barely matters. Modern grep replacements are pretty fast