Skip to content

Commit 1d9dc69

Browse files
committed
SPL-142009: Splunk SDK for python was expecting wrong value of type='eventing', whereas it should have been 'type=events', which is in consistency with splunk code.
1 parent 833b530 commit 1d9dc69

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

splunklib/searchcommands/generating_command.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ class GeneratingCommand(SearchCommand):
5656
+==========+=====================================+============================================+
5757
| streams | streaming=True[,local=[True|False]] | type='streaming'[,distributed=[true|false] |
5858
+----------+-------------------------------------+--------------------------------------------+
59-
| events | retainsevents=True, streaming=False | type='eventing' |
59+
| events | retainsevents=True, streaming=False | type='events' |
6060
+----------+-------------------------------------+--------------------------------------------+
6161
| reports | streaming=False | type='reporting' |
6262
+----------+-------------------------------------+--------------------------------------------+
@@ -112,7 +112,7 @@ class StreamingGeneratingCommand(GeneratingCommand)
112112
| | settings to your command class: | setting to your command class: |
113113
| | | |
114114
| | .. code-block:: python | .. code-block:: python |
115-
| | @Configuration( | @Configuration(type='eventing') |
115+
| | @Configuration( | @Configuration(type='events') |
116116
| | retainsevents=True, streaming=False) | class SomeCommand(GeneratingCommand) |
117117
| | class SomeCommand(GeneratingCommand) | ... |
118118
| | ... | |
@@ -127,7 +127,7 @@ class StreamingGeneratingCommand(GeneratingCommand)
127127
Configure your command class like this, if you wish to support both protocols:
128128
129129
.. code-block:: python
130-
@Configuration(type='eventing', retainsevents=True, streaming=False)
130+
@Configuration(type='events', retainsevents=True, streaming=False)
131131
class SomeCommand(GeneratingCommand)
132132
...
133133
@@ -280,7 +280,7 @@ class ConfigurationSettings(SearchCommand.ConfigurationSettings):
280280
==================== ======================================================================================
281281
Value Description
282282
-------------------- --------------------------------------------------------------------------------------
283-
:const:`'eventing'` Runs as the first command in the Splunk events pipeline. Cannot be distributed.
283+
:const:`'events'` Runs as the first command in the Splunk events pipeline. Cannot be distributed.
284284
:const:`'reporting'` Runs as the first command in the Splunk reports pipeline. Cannot be distributed.
285285
:const:`'streaming'` Runs as the first command in the Splunk streams pipeline. May be distributed.
286286
==================== ======================================================================================

splunklib/searchcommands/internals.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ def validate_configuration_setting(specification, name, value):
326326
supporting_protocols=[1, 2]),
327327
'type': specification(
328328
type=(bytes, unicode),
329-
constraint=lambda value: value in ('eventing', 'reporting', 'streaming'),
329+
constraint=lambda value: value in ('events', 'reporting', 'streaming'),
330330
supporting_protocols=[2])}
331331

332332

0 commit comments

Comments
 (0)