Hi All,
I observed in Splunk Query Language that,
With Custom Command
Without Custom Command
Custom Command Code,
import splunk.Intersplunk
results,unused1,unused2 = splunk.Intersplunk.getOrganizedResults()
keywords, argvals = splunk.Intersplunk.getKeywordsAndOptions()
field = argvals.get("field")
for r in results:
try:
r[field] = r[r[field]]
except Exception, e:
r[field] = None
splunk.Intersplunk.outputResults(results)