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

Introduce the condition in the processor with the when keyword #1949

Merged

Conversation

monicasarbu
Copy link
Contributor

@monicasarbu monicasarbu commented Jul 1, 2016

By renaming filters with processors ( #1944), more and more arguments will be available under processors, so introducing the condition with when makes it easier to be spotted.

Before:

processors:
 - include_fields:
     equals:
       proc.pid: 3455
     fields: ["proc.cpu", "proc.mem"]

After:

processors:
 - include_fields:
     when:    
        equals:
           proc.pid: 3455
     fields: ["proc.cpu", "proc.mem"]

@monicasarbu monicasarbu force-pushed the introduce_condition_with_when_keyword branch from 25716e2 to 5758f3d Compare July 1, 2016 16:15
@urso urso merged commit 57bb20b into elastic:master Jul 1, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants