Skip to content
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

Log view does not limit the number of events #55

Merged
merged 1 commit into from
Feb 27, 2014
Merged

Log view does not limit the number of events #55

merged 1 commit into from
Feb 27, 2014

Conversation

borntyping
Copy link
Contributor

The LogView added in 0.2.8 keeps appending new events without ever discarding previous events. The lines option for the view implies it can be used to limit the number of log entries, but does not appear to do anything.

@aphyr
Copy link
Collaborator

aphyr commented Feb 26, 2014

You've got a patch, right? >:-)

@borntyping
Copy link
Contributor Author

I'm happy to take another look at fixing it, once I've a bit more time and have got my head round the way the views work :)

@borntyping
Copy link
Contributor Author

It's a rather naive implementation, but this removes any old lines that are not in the most recent n lines (where n is this.lines).

@aphyr
Copy link
Collaborator

aphyr commented Feb 27, 2014

Perfect. ;-)

aphyr added a commit that referenced this pull request Feb 27, 2014
Log view does not limit the number of events
@aphyr aphyr merged commit b3c3224 into riemann:master Feb 27, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants