Hacker News new | ask | show | jobs
by fizzbatter 3523 days ago
This is really cool! I'm tempted to try and write something generic for this same concept, so i can use it in whatever lang and logging framework desired.

Concept: A simple pattern match against each line to link their respective contexts. Eg, if you log each request with an id `[timestamp] [request-id] some module: some message`, then theoretically you could parse a log to show visual relation between all request ids.

Furthermore, you could filter out request ids with generic tools like grep/etc.

There must be logging viewer tools that work generically like this though, so perhaps i'd be wasting my time :)

1 comments

I'd be interested in such a solution, also in regard to the input from another commenter to make this work with nginx.

If you have a concrete idea and eventually a project on GitHub, feel free to contact me! Would like to contribute