I am looking for Perl script execution steps in Splunk. Please provide the details steps in case of possible.
Hello @dada1234
splunk can get parse output of any script which supported by the operating system. Follow these steps for Linux:
write a perl script
#!/usr/bin/perl
print "hello";
place it in /opt/splunk/etc/apps/search/bin/ and add an executable bit
chmod +x /opt/splunk/etc/apps/search/bin/test.pl
test your script using CLI
/opt/splunk/etc/apps/search/bin/test.pl
hello
configure your inputs.conf (/opt/splunk/etc/apps/search/local/inputs.conf)
[script://./bin/test.pl]
disabled = false
sourcetype = test1
interval = 10
restart splunk
search
index=* sourcetype=test1
Splunk supports Python and shell (bash) scripts. Other program/script types can be invoked via bash. If you describe want you want to accomplish then perhaps someone can be more specific.
But what about Splunk Cloud. Does it also support Perl?
It’s still same situation for supported languages. Supported means e.g. splunklib etc. integration support. Of course you could use almost any languages to do e.g. scripted inputs.