File tree Expand file tree Collapse file tree 5 files changed +9
-9
lines changed
examples/searchcommands_app Expand file tree Collapse file tree 5 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ This app provides several examples of custom search commands which illustrate ea
55
66 Command | Type | Description
77:------------ |:-----------|:----------------------------------------------------
8- helloworld | Generating | Generates a specified number of 'Hello World' events
8+ generatehello | Generating | Generates a specified number of 'Hello World' events
99 simulate | Generating | Generates a sequence of events drawn from a csv file using repeated random sampling with replacement
1010 sum | Reporting | Adds all the numbers in a set of fields.
1111 countmatches | Streaming | Counts the number of non-overlapping matches to a regular expression in a set of fields.
@@ -19,7 +19,7 @@ The app is tested on Splunk 5 and 6. Here is its manifest:
1919│ ├── simulate.py .............. SimulateCommand implementation
2020│ ├── sum.py ................... SumCommand implementation
2121│ ├── countmatches.py .......... CountMatchesCommand implementation
22- │ └── hellowowrld .py ........... HelloWorldCommand implementation
22+ │ └── generatehello .py ........... HelloWorldCommand implementation
2323├── default
2424│ ├── data
2525│ │ └── ui
File renamed without changes.
Original file line number Diff line number Diff line change @@ -25,8 +25,8 @@ supports_rawargs = true
2525outputheader = true
2626requires_srinfo = true
2727
28- [helloworld ]
29- filename = helloworld .py
28+ [generatehello ]
29+ filename = generatehello .py
3030supports_getinfo = true
3131supports_rawargs = true
3232
Original file line number Diff line number Diff line change @@ -28,8 +28,8 @@ level = NOTSET ; Default: WARNING
2828handlers = file ; Default: stderr
2929propagate = 0 ; Default: 1
3030
31- [logger_HelloWorldCommand ]
32- qualname = HelloWorldCommand
31+ [logger_GenerateHelloCommand ]
32+ qualname = GenerateHelloCommand
3333level = NOTSET ; Default: WARNING
3434handlers = file ; Default: stderr
3535propagate = 0 ; Default: 1
Original file line number Diff line number Diff line change @@ -44,13 +44,13 @@ usage = public
4444related = inputcsv
4545tags = searchcommands_app
4646
47- [helloworld -command]
48- syntax = helloworld count=<count>
47+ [generatehello -command]
48+ syntax = generatehello count=<count>
4949alias =
5050shortdesc = Creates a set of 'Hello World' events
5151description = This command creates a specified number of dummy events
5252comment1 = This example generates 5 events
53- example1 = | helloworld count=5
53+ example1 = | generatehello count=5
5454category = generating
5555appears-in = 5.0
5656maintainer = gblock
You can’t perform that action at this time.
0 commit comments