@@ -213,7 +213,8 @@ class GeneratorTest(GeneratingCommand):
213
213
214
214
#### Custom Search Commands
215
215
* The service object is created from the Splunkd URI and session key passed to the command invocation the search results info file.
216
- * Generating Custom Search Command
216
+ * Service object can be accessed using ` self.service ` in ` generate ` /` transform ` /` stream ` /` reduce ` methods depending on the Custom Search Command.
217
+ * For Generating Custom Search Command
217
218
``` python
218
219
def generate (self ):
219
220
# other code
@@ -223,41 +224,12 @@ class GeneratorTest(GeneratingCommand):
223
224
# to get Splunk Service Info
224
225
info = service.info
225
226
```
226
- * Eventing Custom Search Command
227
- ``` python
228
- def transform (self , records ):
229
- # other code
230
-
231
- # access service object that can be used to connect Splunk Service
232
- service = self .service
233
- # to get Splunk Service Info
234
- info = service.info
235
- ```
236
- * Streaming Custom Search Command
237
- ``` python
238
- def stream (self , records ):
239
- # other code
240
-
241
- # access service object that can be used to connect Splunk Service
242
- service = self .service
243
- # to get Splunk Service Info
244
- info = service.info
245
- ```
246
- * Reporting Custom Search Command
247
- ``` python
248
- def reduce (self , records ):
249
- # other code
250
-
251
- # access service object that can be used to connect Splunk Service
252
- service = self .service
253
- # to get Splunk Service Info
254
- info = service.info
255
- ```
256
- * Service object can be accessed using ` self.service ` in ` generate ` /` transform ` /` stream ` /` reduce ` methods depending on the Custom Search Command
227
+
228
+
257
229
258
230
#### Modular Inputs app:
259
231
* The service object is created from the Splunkd URI and session key passed to the command invocation on the modular input stream respectively.
260
- * It is available as soon as the :code: ` Script.stream_events ` method is called.
232
+ * It is available as soon as the ` Script.stream_events ` method is called.
261
233
``` python
262
234
def stream_events (self , inputs , ew ):
263
235
# other code
0 commit comments