I need a "thing" sitting on a host listening to text logs from some source (fluentd) which I can query for:
- stored logs for a given time window
- stored logs with simple filtering (akin to
grep
) - live feed (akin to
tail -f
)
My current idea is to have fluentd to send logs to a plain old RDBMS (Postgres) to achieve the first two, but I don't know of any ready-made solution for the third one. I'm not beyond writing one myself, but I can't believe nobody did this already :-)
Also, feel free to suggest a different storage, I'm not married to Postgres, it's just something off the top of my head.