The purpose of this repository is to allow Splunk community to report issues and enhancements requests
2
stars
0
forks
source link
bug - Adaptive Delay (command trackmesplkadaptivedelay) - In some conditions, the backend tries to split a string into a list while already a list, raising a Python exception #710
bug - Adaptive Delay (command trackmesplkadaptivedelay) - In some conditions, the backend tries to split a string into a list while already a list, raising a Python exception
In the command trackmesplkadaptivedelay, we turn the anomaly_reason into a Python list from pipe separated, in some circumstances the field is already a list and the backend should check for the type of the object before applying the split.
ERROR search_command.py _report_unexpected_error 1000 AttributeError at "/opt/splunk/etc/apps/trackme/bin/trackmesplkadaptivedelay.py", line 185 : 'list' object has no attribute 'split'
Traceback:
File "/opt/splunk/etc/apps/trackme/lib/splunklib/searchcommands/search_command.py", line 792, in _process_protocol_v2
self._execute(ifile, None)
File "/opt/splunk/etc/apps/trackme/lib/splunklib/searchcommands/generating_command.py", line 205, in _execute
self._execute_v2(ifile, self.generate())
File "/opt/splunk/etc/apps/trackme/lib/splunklib/searchcommands/search_command.py", line 973, in _execute_v2
self._execute_chunk_v2(process, result)
File "/opt/splunk/etc/apps/trackme/lib/splunklib/searchcommands/generating_command.py", line 214, in _execute_chunk_v2
for row in process:
File "/opt/splunk/etc/apps/trackme/bin/trackmesplkadaptivedelay.py", line 859, in generate
) = self.get_collection_records(collection, self.min_delay_sec)
File "/opt/splunk/etc/apps/trackme/bin/trackmesplkadaptivedelay.py", line 185, in get_collection_records
anomaly_reason = anomaly_reason.split(
bug - Adaptive Delay (command trackmesplkadaptivedelay) - In some conditions, the backend tries to split a string into a list while already a list, raising a Python exception