-
Notifications
You must be signed in to change notification settings - Fork 107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How hard would adding persistence be? #57
Comments
@nodesocket good question and thanks for contributing. Adding persistence requires a lot of work, mostly on the UI side. A robust implementation of an infinite scroll and pull/search api is needed. I am aware it would make this a better tool and cover a lot of use cases. The direction this project is heading ATM is to sit and wait what people think it should do and we can move it from there. Could you elaborate a bit more? What exactly is your use case? |
To be more specific, why aren't you using loggly or logentries, just cost ? |
@kilianc I prefer self hosted & open source if possible. So @adityavm and I have been hacking with rTail today to see if we can get some persistence.
Speaking of buffer, we tried increasing the server buffer to maintain a bigger log but it eventually kills the tab. I suppose infinite scrolling will take care of the issue so we don't store everything in DOM. Thoughts? P.S. Good job on rTail so far! |
@SwaroopH you guys are heading to the right direction, what I would do or better what I envision is a pluggable storage with a contract towards a public (super simple) interface. Basically storage adapters. I would personally go for redis and other key/value storage as first attempt. Again storing data is the easy part, I am more focused on gathering info about use cases and what you guys are trying to achieve. This is what I think having persistency would be useful for:
To be honest is big step for this project and it needs some more validation, but that shouldn't stop hacking or feedback. What do you guys need? How many streams you handle? Wha are the bottlenecks you are facing. |
Today was day 1 of rTail :) We are in the middle of a product launch and our data scientist wanted access to the logs. We've been wanting a better way to look at our logs as well and that's where rTail fit in.
I agree this is a huge step for the project. May be we can get people to nominate and vote for what they are looking for. We definitely will need some more time to figure what we actually need. We currently only handle 6 (2-3 busy) streams but expect it to go up. |
@SwaroopH thanks for the fantastic insight 💯 |
I like the idea of a lightweight log interface. There are already larger heavier solutions for logging available like https://www.graylog.org/ that can be used in self host environment (and is open source) |
@cleaton while I see your point, everything else out there takes forever to setup and leaves this in the hands of the devop team. The main goal of rtail is to remain developer friendly and empower everyone with centralized terminal output, not just logs. Persistency is somehow a "grown up" thing and if we make it, we need to make it right. The project needs to stay lightweight and a pipe away no matter what feature we add. We are using UDP, and talking about persistency... I mean if this thing ends up being used a lot we need a |
But if people are investigating adding more persistence to rtail, I think my suggestion would be kafka. One way could be to have rtail server display kafka topics as streams and consume from them. Or modify the ui to to fetch data from a restful kafka source like the one provided by confluent. There is no need to modify the rtail client as there are already powerful solutions to tail logs and forward to kafka, which also includes compression. Ex: kafkacat . |
+1 |
+1 :D |
Hi my optinion is that rtail is great for realtime view and storing logs can be done in parallel - rtail should focus on best realtime log view experience including a short history of logs. I see a lot of work in other things like better rendering options for structured/JSON logs - like field selection in the display (just one example). E.g.:
Little screen recording best of all:
The command line tools logagent and rtail play well together - and indexing large amounts of logs plus the visualisation options are great. Rtail WebUI authentication: |
Perhaps the server could store lines to something like RethinkDB?
The text was updated successfully, but these errors were encountered: