Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
title: blank()
id: adm-log-filters-blank
description: >-
This section describes blank() filter function in {{ site.product.short_name }}.
---

*Synopsis:* blank("MESSAGE")


*Description:* The blank() filter selects messages where the specified field or value is considered blank. A value is considered blank if it meets any of the following conditions:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"key-value pair" would be more accurate instead of "field or value"

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, re-phrased.


* It is not set
* It is an empty string ("")
* It contains only whitespace characters
* It is an empty list
* It is a boolean value explicitly set to false

## Example: Select log messages where the field MESSAGE is blank

```config
blank("MESSAGE")
```
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,5 @@ described in Filters.
|rate-limit() |Limits messages rate based on arbitrary keys in each message. |
|source()|Select messages of the specified {{ site.product.short_name }} source statement.|
|tags()|Select messages having the specified tag.|
|blank()|Filter messages where the specified value is blank (unset, empty, whitespace-only, empty list, or boolean false).|