trackme-limited / trackme-report-issues

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

Closed guilhemmarchand closed 3 weeks ago

guilhemmarchand commented 1 month ago

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

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(