All Apps and Add-ons

Splunk Tenable Add-on: Anyone know why I'm getting this Python error?

cdstealer
Contributor

Hi, I've installed splunk-add-on-for-tenable both 5.1.2 & 5.1.4, but neither work. Al I see in the ta_nessus.log is:

2018-08-30 13:20:31,950 INFO pid=6088 tid=MainThread file=nessus.py:main:260 | Start nessus TA
2018-08-30 13:20:32,039 INFO pid=6088 tid=MainThread file=nessus_config.py:get_nessus_conf:71 | Try to get encrypted proxy username & password
2018-08-30 13:20:32,040 INFO pid=6088 tid=MainThread file=nessus.py:get_nessus_modinput_configs:142 | Set loglevel to ERROR
2018-08-30 13:20:34,036 ERROR pid=6088 tid=MainThread file=nessus_data_collector.py:_collect_scan_data:300 | Traceback (most recent call last):
  File "/opt/splunk/etc/apps/Splunk_TA_nessus/bin/nessus_data_collector.py", line 294, in _collect_scan_data
    page_size)
  File "/opt/splunk/etc/apps/Splunk_TA_nessus/bin/nessus_data_collector.py", line 245, in _collect_scan_data_of_one_scan
    scan_info)
  File "/opt/splunk/etc/apps/Splunk_TA_nessus/bin/nessus_data_collector.py", line 217, in _collect_one_host_scan_info
    if port_items[2]:
IndexError: list index out of range

2018-08-30 13:20:35,851 ERROR pid=6088 tid=MainThread file=nessus_data_collector.py:_collect_scan_data:300 | Traceback (most recent call last):
  File "/opt/splunk/etc/apps/Splunk_TA_nessus/bin/nessus_data_collector.py", line 294, in _collect_scan_data
    page_size)
  File "/opt/splunk/etc/apps/Splunk_TA_nessus/bin/nessus_data_collector.py", line 245, in _collect_scan_data_of_one_scan
    scan_info)
  File "/opt/splunk/etc/apps/Splunk_TA_nessus/bin/nessus_data_collector.py", line 217, in _collect_one_host_scan_info
    if port_items[2]:
IndexError: list index out of range

2018-08-30 13:20:37,080 ERROR pid=6088 tid=MainThread file=nessus_data_collector.py:_collect_scan_data:300 | Traceback (most recent call last):
  File "/opt/splunk/etc/apps/Splunk_TA_nessus/bin/nessus_data_collector.py", line 294, in _collect_scan_data
    page_size)
  File "/opt/splunk/etc/apps/Splunk_TA_nessus/bin/nessus_data_collector.py", line 245, in _collect_scan_data_of_one_scan
    scan_info)
  File "/opt/splunk/etc/apps/Splunk_TA_nessus/bin/nessus_data_collector.py", line 217, in _collect_one_host_scan_info
    if port_items[2]:
IndexError: list index out of range

Any Ideas?

T.I.A.

0 Karma

inventsekar
SplunkTrust
SplunkTrust

not sure of this above error.,. but, regarding the "IndexError: list index out of range"
found this interesting read.. sharing it with all...

Index Error: List index out of range means you are trying to get an item in a list that doesn't exist.

For Example, I have this list:

["a","b","c"]

So a is the 0th item, b is the 1st, and c is the 2nd.

I can get b by doing ["a","b","c"][1] because it is the first item and I am calling for the first item with [1].

An index error is what would happen if I tried to do this:

["a","b","c"][4]

There is no 4th item, so it errors.

thanks and best regards,
Sekar

PS - If this or any post helped you in any way, pls consider upvoting, thanks for reading !
0 Karma

cdstealer
Contributor

Hi, Sorry, I probably should have explained that I know python and about out of index errors 🙂 But I need to know what the issue is.

Cheers

0 Karma
Get Updates on the Splunk Community!

Splunk at Cisco Live 2025: Learning, Innovation, and a Little Bit of Mr. Brightside

Pack your bags (and maybe your dancing shoes)—Cisco Live is heading to San Diego, June 8–12, 2025, and Splunk ...

Splunk App Dev Community Updates – What’s New and What’s Next

Welcome to your go-to roundup of everything happening in the Splunk App Dev Community! Whether you're building ...

The Latest Cisco Integrations With Splunk Platform!

Join us for an exciting tech talk where we’ll explore the latest integrations in Cisco + Splunk! We’ve ...