I have created custom search command called "getmetricdemo". I have configured everything but I'm not getting output in splunk GUI when I run search query as "| getmetricdemo" . Here is my configuration details:
commands.conf:
[getmetricdemo]
filename = system_python.path
command.arg.1 = getmetricdemo.py
generating = true
supports_rawargs = true
Since I'm invoking external processor, I gave python interpreter name in system_python.path file
cat system_python.path
!/usr/bin/python
python program is running fine when I execute in Linux CLI:
python getmetricdemo.py
_time,aaaa,bbbbb
1529492520.0,1,1
1529492580.0,1,1
1529492400.0,1,1
1529492640.0,1,1
1529492460.0,1,1
Both system_python.path and getmetricdemo.py are located in /opt/splunk/etc/apps//bin directory.
Could anyone please help me out here. Thanks in advance!!
... View more