Splunk Cloud

Search Reference

Download manual as PDF

Download topic as PDF



Adds or disables sources from being processed by the search. Enables or disables inputs in inputs.conf with optional sourcetype and index settings. Any additional attribute=values are added to inputs.conf. The input command is generally to be used in conjunction with the crawl command. If you have Splunk Enterprise, you can view the log of changes to inputs in the following file: $SPLUNK_HOME/var/log/splunk/inputs.log.


input (add | remove) [sourcetype=string] [index=string] [string=string]...

Optional arguments

Datatype: <string>
Description: When adding a new input, label the input so the data it acquires uses this sourcetype.
Datatype: <string>
Description: When adding a new input, label the input so the data it acquires is sent to this index. Make sure this index exists.
Datatype: <string>
Description: Used to specify custom user fields.


Example 1:

Remove all csv files that are currently being processed

| crawl | search source=*csv | input remove

Example 2:

Add all sources found in Bob's home directory to the 'preview' index with sourcetype=text, setting custom user fields 'owner' and 'name'

| crawl root=/home/bob/txt | input add index=preview sourcetype=text owner=bob name="my nightly crawl"

Example 3:

Add each source found by crawl in the default index with automatic source classification (sourcetyping)

| crawl | input add

See also



Have questions? Visit Splunk Answers and see what questions and answers the Splunk community has using the input command.


This documentation applies to the following versions of Splunk Cloud: 6.5.0, 6.5.1, 6.5.1612, 6.6.0, 6.6.1, 6.6.3

Was this documentation topic helpful?

Enter your email address, and someone from the documentation team will respond to you:

Please provide your comments here. Ask a question or make a suggestion.

You must be logged into splunk.com in order to post comments. Log in now.

Please try to keep this discussion focused on the content covered in this documentation topic. If you have a more general question about Splunk functionality or are experiencing a difficulty with Splunk, consider posting a question to Splunkbase Answers.

0 out of 1000 Characters