Skip to content

Commit aad8d85

Browse files
committed
Added back sum command entries in searchbnf.conf
1 parent ea0c9c8 commit aad8d85

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

examples/searchcommands_app/default/searchbnf.conf

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,27 @@ usage = public
4444
related = inputcsv
4545
tags = searchcommands_app
4646

47+
[sum-command]
48+
syntax = sum total=<field> <field-list>
49+
alias =
50+
shortdesc = Computes the sum of a set of fields.
51+
description = The total produced is sum(sum(fieldname, 1, n), 1, N) where n = \
52+
number of fields, N = number of records.
53+
comment1 = This example computes the total linecount in the first 200 records \
54+
in the _internal index.
55+
example1 = index = _internal | head 200 | sum total=lines linecount
56+
category = reporting
57+
appears-in = 5.0
58+
maintainer = dnoble
59+
usage = public
60+
related = stats
61+
tags = searchcommands_app
62+
4763
[generatehello-command]
4864
syntax = generatehello count=<count>
4965
alias =
50-
shortdesc = Creates a set of 'Hello World' events
51-
description = This command creates a specified number of dummy events
66+
shortdesc = Creates a set of 'Hello World' events.
67+
description = This command creates a specified number of dummy events.
5268
comment1 = This example generates 5 events
5369
example1 = | generatehello count=5
5470
category = generating

0 commit comments

Comments
 (0)