Hi,
I am trying to add a Python script as a Splunk custom command and I'm having trouble reading the data from Intersplunk and formatting it as a pandas dataframe. I have:
results = splunk.Intersplunk.readResults()
df = pandas.DataFrame(results)
ip_list = df['ip'].tolist()
So I'm converting the list of dictionaries returned by readResults() to a pandas DF and then extracting what would be the csv "ip" column as a list. But I am getting an error on that last code line.
I have also tried df = pandas.DataFrame.from_records(results) and ip_list = df['ip'].values.tolist() , but it's not working.
I'd appreciate any help.
... View more