Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 1 addition & 1 deletion examples/searchcommands_app/package/bin/filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ class FilterCommand(EventingCommand):
''', validate=Code('eval'))

update = Option(doc='''
**Syntax:** **map=***<statements>*
**Syntax:** **update=***<statements>*
**Description:** Augments or modifies records for which the predicate is True before they are returned.
''', validate=Code('exec'))
Expand Down
2 changes: 1 addition & 1 deletion examples/searchcommands_app/package/default/searchbnf.conf
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ comment1 = \
of the records produced by the generatetext command.
example1 = \
| generatetext text="Hello world! How the heck are you?" count=6 \
| filter predicate="(long(_serial) & 1) == 0" map="_raw = _raw.replace('world', 'Splunk')"
| filter predicate="(long(_serial) & 1) == 0" update="_raw = _raw.replace('world', 'Splunk')"
category = events
appears-in = 1.5
maintainer = dnoble
Expand Down