sc - Splunk Client
sc [--host <host>] [--port <port>] [--login <login>] [--password <password>] [--insecure] <subcommand> [<arguments>,...]
This is remote client for Splunk log search engine based upon WWW::Splunk. It is currently quite limited in capabilities, but intended and designed to be extended in future.
Sets remote server to connect to. Defaults to localhost.
Sets port of remote server to connect to. Defaults to 8089. Please note that this is the management port, not the WWW interface port.
User name of the user to connect to Splunk as. Defaults to admin. The defaults for username and password will probably (hopefully?) not suit your configuration.
Password of the user to connect to Splunk as. Defaults to changeme.
Tolerate SSL errors.
Subcommand to run. Currently defined is just search:
Conduct a search, output the raw log data as they are looked up. Terminate when the search is finished.
sc search warning
WWW::Splunk, WWW::Splunk::API
Lubomir Rintel, <lkundrak@v3.sk>
The code is hosted on GitHub http://github.com/lkundrak/perl-WWW-Splunk. Bug fixes and feature enhancements are always welcome.
To install WWW::Splunk, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WWW::Splunk
CPAN shell
perl -MCPAN -e shell install WWW::Splunk
For more information on module installation, please visit the detailed CPAN module installation guide.