SPLUNK-CLIENT(1)
π SPLUNK-CLIENT β the sc girlies' guide π
okay so this is SPLUNK-CLIENT(1), aka the manual page for sc, aka the Splunk Client, bestie. pull up a chair, grab a boba, we're doing this. π§β¨
β¨ NAME β¨
sc β Splunk Client. that's it, that's the name, short and iconic. π
π¦ SYNOPSIS π¦
sc [--host <host>] [--port <port>] [--login <login>] [--password <password>] [--insecure] <subcommand> [<arguments>,...]
πΈ DESCRIPTION πΈ
so basically this is a remote client for the Splunk log search engine, built on top of WWW::Splunk. π
ngl, right now it is quite limited in capabilities β like, it's giving baby project, it's giving first draft β BUT the whole point is that it's intended and designed to be extended in future. it's a grower, not a show-er. the potential is there, the main character arc is coming, periodt. π±π₯
π OPTIONS π
--host <host>β sets the remote server you're connecting to. defaults tolocalhost, so if you say nothing it's just gonna assume you mean your own lil machine. π--port <port>β sets the port of the remote server to connect to. defaults to8089. β οΈ and listen, this is the management port, not the WWW interface port β do not mix those up, bestie, it will not go well, iykyk. π--login <login>β the user name of the user you're connecting to Splunk as. defaults toadmin. and likeβ¦ the defaults for username and password will probably (hopefully?) not suit your configuration. so maybe don't rawdog the defaults, yeah? π--password <password>β the password of the user you're connecting to Splunk as. defaults tochangeme. and again: probably not your actual vibe. π--insecureβ tolerate SSL errors. that's it, that's the whole flag. living dangerously, love that for you. π«£<subcommand> [<arguments>]β the subcommand to run. currently the only one defined issearch. one subcommand, but she's doing her best. π«Ά
π₯ COMMANDS π₯
π search
search [-t|--since <time>] [-T|--until <time>] [-f|--format compact|long|raw] <search string>
conducts a search, and outputs the raw log data as they are looked up. π it terminates when the search is finished β so it justβ¦ keeps streaming at you until it's done. no cap.
-t,--since <time>β cut off at the given time. the time specification is any string understood byDate::Manip. most common formats apply, plus human-readable relative time specifications (peep the EXAMPLES section for the tea). β
use "rt" for a real time search, optionally with specifcation of the search window, like "rt-10" for a 10-second window, or "rt-1m" for one minute. β¨
defaults to unlimited β the whole timeline, the entire lore, everything. π
-T,--until <time>β do not look for entries newer than the given time. the format of the time specification is exactly the same as for the--sinceoption, twinsies. π―
if this or --since is "rt" a real-time search is conducted. π
-f,--format compact|long|rawβ switch output format style. pick your aesthetic. π
π ENVIRONMENT VARIABLES π
SPLUNK_LOGINβ Splunk login. πSPLUNK_PASSWORDβ Splunk password. π€«
π EXAMPLES π
- perform a simple search query limited by given time frame. β³
sc --host splunk.example.net --login user --password s1kr3t2 search --since '2 days ago' --until yesterday 'network AND error | head 10'
- perform a simple real-time search. β‘
sc search --since 'rt-30' 'source=/var/log/httpd/access_log |stats count by http_status_code'
π SEE ALSO π
WWW::Splunk, WWW::Splunk::API β go read those too, they're the whole support system. π«Ά
π AUTHORS π
Lubomir Rintel, <lkundrak@v3.sk>, Michal Josef Ε paΔek <skim@cpan.org>
the code is hosted on GitHub at <http://github.com/michal-josef-spacek/perl-WWW-Splunk>. π
bug fixes and feature enhancements are always welcome β so if you've got a glow-up in mind, send it in, bestie, they want it fr fr. π
and that's the whole page, no notes, you're officially a Splunk girlie now πβ¨
this was SPLUNK-CLIENT(1), brought to you by perl v5.42.0 and dated 2025-07-25 β mwah, slay, bye bestie! π
ππ¦
π¦ where this page comes from
- fedora 43: perl-WWW-Splunk 2.09-7.fc43 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms