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

Omitempty #1

Open
wants to merge 12 commits into
base: master
Choose a base branch
from
Open

Omitempty #1

wants to merge 12 commits into from

Conversation

gferreux
Copy link
Owner

@gferreux gferreux commented Mar 4, 2019

Add an operation called 'omitempty' to remove fields with null or default values.
(works with string "", integer 0, array [], hashes {}, and null values.)

filter {
        mutate {
          omitempty => ["field"]
        }
      }

will remove field if field = "", 0, [], {} or null

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.

4 participants