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

Add ability to apply filters to specific data source only #56

Closed
bostjan opened this issue May 14, 2015 · 2 comments
Closed

Add ability to apply filters to specific data source only #56

bostjan opened this issue May 14, 2015 · 2 comments

Comments

@bostjan
Copy link
Member

bostjan commented May 14, 2015

Currently message format can be specified like this (in snoopy.ini):
message_format = "ds1=%{datasource1} ds2=%{datasource2:param1,param2}..."

Then only whole message can be filtered, like this:
filter_chain = "exclude_uid:1,2,3;exclude_spawns_of:crond"

It would be splendid if filters could be applied to only specific datasource, right in message format, like this:
message_format = 'ds1:"%{ds1|escape_json_str}" ds2="%{ds2:param1|escape_json_str}"...'

The question that needs to be answered is: do we implement this among existing filters, or do we create new entity class (modifiers, manglers, etc) which does only data mangling.

@bostjan bostjan added this to the Future milestone May 14, 2015
@bostjan
Copy link
Member Author

bostjan commented May 14, 2015

Maybe @evilezh will be willing to contribute escape_json_str() code :)

evilezh@9e7aeaa

b.

@bostjan bostjan modified the milestones: Future, 3.0.0 May 26, 2015
@bostjan bostjan self-assigned this Nov 30, 2021
@bostjan bostjan removed this from the 3.0.0 milestone Aug 1, 2022
@bostjan
Copy link
Member Author

bostjan commented Aug 1, 2022

Seems unnecessary for the time being.

@bostjan bostjan closed this as completed Aug 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

1 participant