You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
691 B
26 lines
691 B
# Version 4.0
|
|
import sys,splunk.Intersplunk
|
|
import re
|
|
import urllib
|
|
import xml.sax.saxutils as sax
|
|
|
|
|
|
try:
|
|
results,dummyresults,settings = splunk.Intersplunk.getOrganizedResults()
|
|
|
|
for r in results:
|
|
if "_raw" in r:
|
|
raw = r["_raw"]
|
|
rawOut = sax.unescape( raw )
|
|
while( rawOut != raw ):
|
|
raw = rawOut
|
|
rawOut = sax.unescape( raw )
|
|
r["_raw"] = rawOut
|
|
|
|
except:
|
|
import traceback
|
|
stack = traceback.format_exc()
|
|
results = splunk.Intersplunk.generateErrorResults("Error : Traceback: " + str(stack))
|
|
|
|
splunk.Intersplunk.outputResults( results )
|