{"id":30441,"date":"2026-12-05T22:05:21","date_gmt":"2026-12-05T22:05:21","guid":{"rendered":"https:\/\/www.devopsschool.com\/blog\/?p=30441"},"modified":"2026-12-05T22:05:21","modified_gmt":"2026-12-05T22:05:21","slug":"splunk-command-line-reference","status":"publish","type":"post","link":"https:\/\/www.devopsschool.com\/blog\/splunk-command-line-reference\/","title":{"rendered":"Splunk Command Line Reference"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">This page is a quick reference for the Splunk command line interface (CLI): adding and removing data inputs, sending data to an index, setting up forwarding and receiving, checking configuration with btool, and cleaning or removing indexes. Below the original command list you will find corrected versions of a few commands, the order to run them in, ways to check the results, and fixes for common errors.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-1\" data-shcb-language-name=\"HTML, XML\" data-shcb-language-slug=\"xml\"><span><code class=\"hljs language-xml\">How to add monitor in Splunk?\n$ sudo .\/splunk &#91;add|edit|remove|list] &#91;monitor|exex|tcp|udp|oneshot]\nsource - file, directory, scripted input, or socket to manage\n\nHow to remove monitor?\n$ sudo .\/splunk remove monitor \/var\/log\/jenkins\n\nHow to set hostname?\n$ sudo .\/splunk add monitor \/var\/log\/dmesg -hostname rajesh -index newindex\n$ sudo .\/splunk add monitor \/opt\/lampp\/etc -hostname rajhost -index rajesh\n\nHow to upload to new index?\r\n$ sudo .\/splunk add monitor \/var\/log\/dmesg -hostname rajesh -index newindex\n\nHow to upload a file?\r\n$ sudo .\/splunk add oneshot \/var\/log\/applog\t\r\n$ sudo .\/splunk add oneshot C:\\Program Files\\AppLog\\log.txt\r\n$ sudo .\/splunk add forward-server <span class=\"hljs-tag\">&lt;<span class=\"hljs-name\">host<\/span>&gt;<\/span>:<span class=\"hljs-tag\">&lt;<span class=\"hljs-name\">port<\/span>&gt;<\/span> -auth <span class=\"hljs-tag\">&lt;<span class=\"hljs-name\">username<\/span>&gt;<\/span>:<span class=\"hljs-tag\">&lt;<span class=\"hljs-name\">password<\/span>&gt;<\/span>\n\nAlternatively, if you have many forwarders, you can use an outputs.conf file to specify the receiver. For example:\r\n&#91;tcpout:my_indexers]\r\nserver= splunk_indexer.acme.com:9997\n\nThis command, <span class=\"hljs-tag\">&lt;<span class=\"hljs-name\">port<\/span>&gt;<\/span> is the network port you want the receiver to listen on.\r\n$ sudo .\/splunk enable listen <span class=\"hljs-tag\">&lt;<span class=\"hljs-name\">port<\/span>&gt;<\/span> -auth <span class=\"hljs-tag\">&lt;<span class=\"hljs-name\">username<\/span>&gt;<\/span>:<span class=\"hljs-tag\">&lt;<span class=\"hljs-name\">password<\/span>&gt;<\/span>\r\n$ sudo .\/splunk enable listen 9997 -auth <span class=\"hljs-tag\">&lt;<span class=\"hljs-name\">username<\/span>&gt;<\/span>:<span class=\"hljs-tag\">&lt;<span class=\"hljs-name\">password<\/span>&gt;<\/span>\n\nThis command below will also show which apps each setting is coming from.\r\n$ sudo .\/splunk cmd btool --debug inputs list\n\nPermanently remove event data from an index by typing\r\n$ splunk clean eventdata\r\n$ splunk clean eventdata -index <span class=\"hljs-tag\">&lt;<span class=\"hljs-name\">index_name<\/span>&gt;<\/span>\r\n$ splunk stop\r\n$ splunk clean eventdata \t# To permanently remove data from all indexes\r\n$ splunk stop\r\n$ splunk clean eventdata -index _internal -f # To permanently remove data from _internal\n\nRemove all data from one or all indexes\r\n$ splunk help clean\r\n\nRemove an index entirely\r\n$ splunk stop\r\n$ splunk remove index main # cannot remove idx=main, is internal\r\n$ splunk remove index <span class=\"hljs-tag\">&lt;<span class=\"hljs-name\">index_name<\/span>&gt;<\/span>\n\nDisable an index without removing it\r\n$ splunk disable index <span class=\"hljs-tag\">&lt;<span class=\"hljs-name\">index_name<\/span>&gt;<\/span>\n\n<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-1\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">HTML, XML<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">xml<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Before you run any Splunk CLI command<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The <code>splunk<\/code> binary is in <code>$SPLUNK_HOME\/bin<\/code>. The default location is <code>\/opt\/splunk<\/code> on a Splunk Enterprise server and <code>\/opt\/splunkforwarder<\/code> on a universal forwarder. The example above switches between <code>.\/splunk<\/code> and <code>splunk<\/code>. Both work: <code>.\/splunk<\/code> means you are in the <code>bin<\/code> directory, and plain <code>splunk<\/code> means that directory is on your <code>PATH<\/code>.<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-2\" data-shcb-language-name=\"PHP\" data-shcb-language-slug=\"php\"><span><code class=\"hljs language-php\">export SPLUNK_HOME=\/opt\/splunk          <span class=\"hljs-comment\"># or \/opt\/splunkforwarder<\/span>\nexport PATH=$SPLUNK_HOME\/bin:$PATH\n\nsplunk status                           <span class=\"hljs-comment\"># is splunkd running?<\/span>\nsplunk version\nsplunk login                            <span class=\"hljs-comment\"># authenticate once per session<\/span><\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-2\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">PHP<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">php<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p class=\"wp-block-paragraph\">Most commands that change configuration need splunkd to be running and need you to log in. If you run <code>splunk login<\/code> first, you don&#039;t have to add <code>-auth &lt;username&gt;:&lt;password&gt;<\/code> to every command, and your password stays out of your shell history.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Note:<\/strong> The example above starts every command with <code>sudo<\/code>. Splunk should run as a dedicated non-root user, usually <code>splunk<\/code>. If you run CLI commands as root, files under <code>$SPLUNK_HOME<\/code> can end up owned by root, and the service then fails to start as the <code>splunk<\/code> user. Use <code>sudo -u splunk splunk &lt;command&gt;<\/code> or switch to that user instead.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Corrected commands from the example above<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Most of the original list is valid, but a few commands contain typos, run in the wrong order, or run on the wrong host. Here are the corrected versions:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-3\" data-shcb-language-name=\"PHP\" data-shcb-language-slug=\"php\"><span><code class=\"hljs language-php\"><span class=\"hljs-comment\"># Generic syntax: input type is exec, not \"exex\"; oneshot only supports \"add\"<\/span>\nsplunk &#91;add|edit|remove|<span class=\"hljs-keyword\">list<\/span>] &#91;monitor|exec|tcp|udp] &lt;source&gt; &#91;options]\nsplunk add oneshot &lt;file&gt; &#91;options]\n\n<span class=\"hljs-comment\"># Create the index BEFORE sending data to it<\/span>\nsplunk add index newindex\nsplunk add monitor \/<span class=\"hljs-keyword\">var<\/span>\/log\/dmesg -hostname rajesh -index newindex -sourcetype dmesg\n\n<span class=\"hljs-comment\"># Windows oneshot: no sudo, quote paths that contain spaces, run from %SPLUNK_HOME%\\bin<\/span>\n.\\splunk.exe add oneshot <span class=\"hljs-string\">\"C:\\Program Files\\AppLog\\log.txt\"<\/span> -index main\n\n<span class=\"hljs-comment\"># Clean event data: stop Splunk FIRST, then clean, then start<\/span>\nsplunk stop\nsplunk clean eventdata -index &lt;index_name&gt; -f\nsplunk start\n\n<span class=\"hljs-comment\"># Removing an index does not require a stop<\/span>\nsplunk remove index &lt;index_name&gt;<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-3\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">PHP<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">php<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<ul class=\"wp-block-list\">\n<li><code>exex<\/code> is a typo for <code>exec<\/code>, the input type for scripted inputs.<\/li>\n\n\n<li><code>add monitor ... -index newindex<\/code> does not create the index. If the index doesn&#039;t exist, the input is saved anyway, but events sent to the missing index are dropped and splunkd logs a warning. Create the index first with <code>splunk add index<\/code>.<\/li>\n\n\n<li><code>sudo<\/code> does nothing on Windows, and an unquoted path with a space (<code>C:\\Program Files\\...<\/code>) gets split into two arguments.<\/li>\n\n\n<li><code>splunk clean eventdata<\/code> only works when Splunk is stopped. The example above runs it before <code>splunk stop<\/code>.<\/li>\n\n\n<li><code>splunk remove index<\/code> runs against a live instance, so you don&#039;t need the <code>splunk stop<\/code> that comes before it in the example above.<\/li>\n\n\n<li><code>splunk add forward-server<\/code> goes on the <strong>forwarder<\/strong>, not the indexer. It is a forwarding command, not a file-upload command, so it belongs in its own group.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Managing data inputs<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><code>monitor<\/code> watches a file or directory continuously and indexes new data as it is written. <code>oneshot<\/code> indexes a file once and doesn&#039;t watch it afterwards, which is useful for historical logs or a quick test.<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-4\" data-shcb-language-name=\"PHP\" data-shcb-language-slug=\"php\"><span><code class=\"hljs language-php\"><span class=\"hljs-comment\"># Continuous monitoring with metadata<\/span>\nsplunk add monitor \/<span class=\"hljs-keyword\">var<\/span>\/log\/jenkins -index ci -sourcetype jenkins -hostname build01\n\n<span class=\"hljs-comment\"># Inspect and edit<\/span>\nsplunk <span class=\"hljs-keyword\">list<\/span> monitor\nsplunk edit monitor \/<span class=\"hljs-keyword\">var<\/span>\/log\/jenkins -sourcetype jenkins:log\n\n<span class=\"hljs-comment\"># Stop monitoring (data that is already indexed is NOT deleted)<\/span>\nsplunk remove monitor \/<span class=\"hljs-keyword\">var<\/span>\/log\/jenkins\n\n<span class=\"hljs-comment\"># One-time upload<\/span>\nsplunk add oneshot \/<span class=\"hljs-keyword\">var<\/span>\/log\/applog -index main -sourcetype applog\n\n<span class=\"hljs-comment\"># Network inputs<\/span>\nsplunk add tcp <span class=\"hljs-number\">5514<\/span> -sourcetype syslog -index network\nsplunk add udp <span class=\"hljs-number\">514<\/span> -sourcetype syslog -index network\nsplunk <span class=\"hljs-keyword\">list<\/span> udp<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-4\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">PHP<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">php<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p class=\"wp-block-paragraph\">The CLI writes these inputs to an <code>inputs.conf<\/code> file, usually in <code>$SPLUNK_HOME\/etc\/apps\/search\/local\/<\/code> or <code>$SPLUNK_HOME\/etc\/system\/local\/<\/code>, depending on the app context. On forwarders that you manage at scale, it&#039;s better to put inputs in an app and push it with a deployment server than to run CLI commands on each host.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Note:<\/strong> On Linux, ports below 1024 (such as UDP 514) need root privileges to bind. If Splunk runs as a non-root user, use a high port or put a syslog server in front of Splunk.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Setting up forwarding and receiving<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Forwarding needs commands on both ends: the indexer listens, and the forwarder sends. Configure the receiver first.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>On the indexer, open a receiving port: <code>splunk enable listen 9997<\/code>.<\/li>\n\n\n<li>Make sure the host firewall allows inbound TCP 9997 from your forwarders.<\/li>\n\n\n<li>On the universal forwarder, point it at the indexer: <code>splunk add forward-server splunk_indexer.acme.com:9997<\/code>.<\/li>\n\n\n<li>On the forwarder, add an input: <code>splunk add monitor \/var\/log\/messages -index os<\/code>.<\/li>\n\n\n<li>Check the connection: <code>splunk list forward-server<\/code> should show the indexer under active forwards.<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">The <code>outputs.conf<\/code> fragment in the example above has no default group, so a forwarder doesn&#039;t know to use it unless that is the only group defined. A complete minimal file, in <code>$SPLUNK_HOME\/etc\/system\/local\/outputs.conf<\/code> or in a deployment app, looks like this:<\/p>\n\n\n<pre class=\"wp-block-code\"><span><code class=\"hljs\">&#91;tcpout]\ndefaultGroup = my_indexers\n\n&#91;tcpout:my_indexers]\nserver = splunk_indexer1.acme.com:9997, splunk_indexer2.acme.com:9997<\/code><\/span><\/pre>\n\n\n<p class=\"wp-block-paragraph\">If you list several servers, the forwarder load-balances automatically across them. Restart the forwarder after you edit the file by hand: <code>splunk restart<\/code>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Checking configuration with btool<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Splunk merges <code>.conf<\/code> files from many apps according to its precedence rules. btool shows the merged result. With <code>--debug<\/code>, it also shows which file each setting comes from, which is the quickest way to find out why an input or setting isn&#039;t doing what you expect.<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-5\" data-shcb-language-name=\"PHP\" data-shcb-language-slug=\"php\"><span><code class=\"hljs language-php\">splunk btool inputs <span class=\"hljs-keyword\">list<\/span> --debug\nsplunk btool outputs <span class=\"hljs-keyword\">list<\/span> tcpout --debug\nsplunk btool indexes <span class=\"hljs-keyword\">list<\/span> newindex --debug\nsplunk btool check                       <span class=\"hljs-comment\"># report typos and invalid stanzas<\/span><\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-5\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">PHP<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">php<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p class=\"wp-block-paragraph\"><code>splunk cmd btool<\/code>, as used in the example above, works too. <code>splunk btool<\/code> is the shorter form.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Index lifecycle commands<\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Task<\/th><th>Command<\/th><th>Splunk state<\/th><\/tr><\/thead><tbody><tr><td>Create an index<\/td><td><code>splunk add index &lt;name&gt;<\/code><\/td><td>Running<\/td><\/tr><tr><td>List indexes<\/td><td><code>splunk list index<\/code><\/td><td>Running<\/td><\/tr><tr><td>Disable (keep data)<\/td><td><code>splunk disable index &lt;name&gt;<\/code><\/td><td>Running<\/td><\/tr><tr><td>Re-enable<\/td><td><code>splunk enable index &lt;name&gt;<\/code><\/td><td>Running<\/td><\/tr><tr><td>Delete all events in one index<\/td><td><code>splunk clean eventdata -index &lt;name&gt; -f<\/code><\/td><td>Stopped<\/td><\/tr><tr><td>Delete events in all indexes<\/td><td><code>splunk clean eventdata -f<\/code><\/td><td>Stopped<\/td><\/tr><tr><td>Delete index and its config<\/td><td><code>splunk remove index &lt;name&gt;<\/code><\/td><td>Running<\/td><\/tr><tr><td>Help for clean options<\/td><td><code>splunk help clean<\/code><\/td><td>Either<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Note:<\/strong> <code>clean eventdata<\/code> and <code>remove index<\/code> permanently delete data, and you can&#039;t undo either one. Test on a non-production instance first. Never clean an index on a clustered indexer peer: indexer clusters manage buckets in their own way, and deleting data on one peer outside that process can leave the cluster inconsistent.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Before you remove an index, find every input that still sends to it (<code>splunk btool inputs list --debug | grep &lt;name&gt;<\/code>) and remove or repoint those inputs. Otherwise their events are dropped once the index is gone. The <code>main<\/code> index and internal indexes such as <code>_internal<\/code> can&#039;t be removed, but you can clean their event data.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Verifying that data arrives<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">After you add an input, confirm that events are indexed before you move on. You can search from the CLI:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-6\" data-shcb-language-name=\"JavaScript\" data-shcb-language-slug=\"javascript\"><span><code class=\"hljs language-javascript\">splunk search <span class=\"hljs-string\">'index=newindex | head 5'<\/span>\nsplunk search <span class=\"hljs-string\">'index=_internal source=*splunkd.log* log_level=WARN* | head 20'<\/span><\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-6\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">JavaScript<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">javascript<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p class=\"wp-block-paragraph\">The second search lists recent warnings from splunkd. Problems such as events going to a missing index, file permission errors and forwarder connection failures appear there.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Common errors and fixes<\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Symptom<\/th><th>Likely cause<\/th><th>Fix<\/th><\/tr><\/thead><tbody><tr><td>Connection refused when you run a CLI command<\/td><td>splunkd is not running<\/td><td><code>splunk start<\/code>, then retry<\/td><\/tr><tr><td>Monitor added but no events appear<\/td><td>Index does not exist, or the <code>splunk<\/code> user can&#039;t read the file<\/td><td><code>splunk add index &lt;name&gt;<\/code>; grant read access, for example with <code>setfacl -m u:splunk:r &lt;file&gt;<\/code><\/td><\/tr><tr><td>Old file content is not indexed again<\/td><td>The file is already recorded in the fishbucket, so Splunk treats it as seen<\/td><td>Use <code>add oneshot<\/code> for a one-time re-index<\/td><\/tr><tr><td>clean eventdata refuses to run<\/td><td>Splunk is still running<\/td><td><code>splunk stop<\/code> first<\/td><\/tr><tr><td>Forwarder shows server as configured but inactive<\/td><td>Receiver is not listening, or a firewall blocks the port<\/td><td><code>splunk enable listen 9997<\/code> on the indexer; open TCP 9997<\/td><\/tr><tr><td>Splunk fails to start after you used sudo<\/td><td>Files under <code>$SPLUNK_HOME<\/code> are now owned by root<\/td><td><code>chown -R splunk:splunk $SPLUNK_HOME<\/code><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Frequently asked questions<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">What is the difference between splunk add monitor and splunk add oneshot?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><code>add monitor<\/code> keeps watching a file or directory and indexes new lines as they are written. <code>add oneshot<\/code> indexes a file&#039;s current contents once and doesn&#039;t track it afterwards.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Does splunk add monitor create the index automatically?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">No. The index named by <code>-index<\/code> must already exist. Create it with <code>splunk add index &lt;name&gt;<\/code>, otherwise events sent to it are dropped and splunkd logs a warning.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Do I need to stop Splunk to delete data from an index?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Yes, for <code>splunk clean eventdata<\/code>. Stop Splunk, run the clean, then start it again. <code>splunk remove index<\/code> runs while Splunk is up.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Where does the Splunk CLI save inputs I add?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">In an <code>inputs.conf<\/code> file under <code>$SPLUNK_HOME\/etc<\/code>, usually in the search app&#039;s or the system&#039;s <code>local<\/code> directory. Run <code>splunk btool inputs list --debug<\/code> to see the exact file.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">How do I avoid typing -auth on every Splunk command?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Run <code>splunk login<\/code> once. The session stays authenticated for later commands, and your password stays out of your shell history.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Related tutorials<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/www.devopsschool.com\/blog\/splunk-tutorials-splunk-commands-reference\/\">Splunk Tutorials: Splunk Commands Reference<\/a><\/li>\n\n\n<li><a href=\"https:\/\/www.devopsschool.com\/blog\/what-is-splunk-and-how-it-works-an-overview-and-its-use-cases\/\">What is Splunk and How it works? An Overview and Its Use Cases<\/a><\/li>\n\n\n<li><a href=\"https:\/\/www.devopsschool.com\/blog\/top-50-splunk-interview-questions-and-answers\/\">Top 50 Splunk interview questions and answers<\/a><\/li>\n\n\n<li><a href=\"https:\/\/www.devopsschool.com\/blog\/category\/monitoring-observability\/splunk\/\">More Splunk tutorials<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>This page is a quick reference for the Splunk command line interface (CLI): adding and removing data inputs, sending data to an index, setting up forwarding and&#8230; <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_joinchat":[],"footnotes":""},"categories":[5207],"tags":[4672],"class_list":["post-30441","post","type-post","status-publish","format-standard","hentry","category-splunk","tag-log-management"],"_links":{"self":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/30441","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/comments?post=30441"}],"version-history":[{"count":2,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/30441\/revisions"}],"predecessor-version":[{"id":80684,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/30441\/revisions\/80684"}],"wp:attachment":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media?parent=30441"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/categories?post=30441"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/tags?post=30441"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}