Splunk Cloud Platform Splunk Cloud Platform Admin Manual 8.2.2203
Splunk Cloud Platform Splunk Cloud Platform Admin Manual 8.2.2203
See also
Details about other options for forwarding data Splunk Universal Forwarder Manual
To start the universal forwarder, go to the $SPLUNK_HOME/bin/ directory and run the splunk start command. After
changing settings for a forwarder, you must restart the forwarder by issuing the splunk restart command. To verify that
the desired data is being forwarded to Splunk Cloud Platform, use the Splunk Web Search app.
To configure forwarding, use the commands and parameters listed in the following tables.
Commands
remove remove monitor For example, to stop monitoring of the Windows log file that contains all automatic
monitor <source> update activity, run the following command:
list monitor list monitor Displays a list of all configured data inputs.
add oneshot add oneshot Use this command to forward the contents of the specified data source once.
or <source>
spool [-parameter value] For example, the following commands perform a one-time forwarding of the
...
contents of the /var/log/applog directory.
1
Command Command syntax Description
or: splunk add oneshot /var/log/applog
spool <source>
[-parameter value] or:
...
splunk spool /var/log/applog
Parameters
You can use the parameters in the following table with data input commands.
<source> Yes
The syntax for this parameter is the value. It is not preceded with the -source parameter flag.
For example, enter <source>", not "-source <source>".
Specify a single source type for the data <source>. The source type determines how events are formatted and is a
sourcetype No
default field that is included in all events.
hostname
or No Specify a single host or host name for the data "<source>". This default field is included in all events.
host
This section provides command examples for monitoring files and logs and uploading a file.
Description Command
Monitor the files in the /var/log/ directory (Unix) splunk add monitor /var/log/
Monitor the default location for Windows IIS logging splunk add monitor C:\windows\system32\LogFiles\W3SVC
Monitor a set of log files in a directory, specifying metadata to splunk add monitor /tmp/foo/*.log -index se_test
be used by the Splunk indexers -sourcetype insurgency -host vm_host01