hello splunkers ,
I got stuck in one problem please help
I have created one script provided below :
#!/opt/splunk/bin/python2.7
f = open('/opt/splunk/etc/apps/search/bin/hello.txt','a')
f.write("my name is manish")
f.write('\n')
f.close()
which I will log an string in TXT file.
But, I want to see the output on the Splunk screen.
I have added the hello command in commands.conf.
I'm able to run the query | script hello . But, I'm not seeing the output in the Splunk screen, even though I have used print statement in Python script, but it's not helping.
Please help
Thanks
Manish Kumar
... View more