Hello Abhis, I don't implement a search command. I have an external lookup like INPUT
'''
anamefield = sys.argv[1]
aidfield = sys.argv[2]
'''
MAIN PROCESS
'''
infile = sys.stdin
outfile = sys.stdout
r = csv.DictReader(infile)
header = r.fieldnames
w = csv.DictWriter(outfile, fieldnames=r.fieldnames)
w.writeheader()
for result in r:
# Perform the lookup or reverse lookup if necessary
if result[anamefield] and result[aidfield]:
# All fields were provided, just pass it along
w.writerow(result) I don't understand how can I read the session key here. I read about splunk.Intersplunk, but it seems deprecated. The service instance seems to work only in command libraries or Script.stream_events library, which I can't understand how to adopt in external lookup script. I really appreciate if I could read some examples as weather app does for external commands. Thank you very much Kind Regards Marco
... View more