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

Topbeat: Apply regex filter before sending events #642

Closed
oazabir opened this issue Jan 6, 2016 · 1 comment
Closed

Topbeat: Apply regex filter before sending events #642

oazabir opened this issue Jan 6, 2016 · 1 comment

Comments

@oazabir
Copy link

oazabir commented Jan 6, 2016

It would be great if there was a support to add filters in terms of regex before sending events. For ex, I would like to filter out events where cpu = 0, memory = 0. That's majority of the payload. In my case, I get over 5000 events every minute from topbeat from just 10 servers. However, when I remove the cpu = 0, and memory = 0 events, I end up having < 400 events only. So, 90% saving!

It would be great to have something like this in the topbeat.yml, which is a regex applied over the json:

filter: [/"cpu_p": 0/, /"mem_p": 0/]

@ruflin
Copy link
Contributor

ruflin commented Jan 6, 2016

Here you can find the general filtering proposal which I think should also cover your case: #451 I will close this issue as duplicate. Please reopen if that is not the case.

@ruflin ruflin closed this as completed Jan 6, 2016
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

No branches or pull requests

2 participants