thru command usage
The thru
command is new in SPL2. Like the into
command, the thru
command replaces the outputlookup
command.
The dataset that you specify with the thru
command must be a dataset that can be written to.
The default is mode=append
, however not all built-in datasets support the mode
options.
- The
main
dataset does not support either theappend
orreplace
modes. This means you cannot use thethru
command to write data to themain
dataset. - The
actions
dataset is a built-in splv1sink kind of dataset that is used to interact with the Actions service. Theactions
dataset does not support thereplace
mode because actions that have already been invoked can't be uninvoked. For example, you can't unsend an email. However you can append data to theactions
dataset.
The following table lists the built-in datasets and the thru
command modes that each dataset supports.
Build-in datasets | Dataset kind | Supported modes |
---|---|---|
main | index | none |
metrics | metric | none |
actions | splv1sink | mode=append |
geo.hex | lookup | none |
geo.iplocation | lookup | none |
catalog.* | catalog | none |
catalog.metrics | catalog | none |
ingest.events | splv1sink | mode=append |
ingest.metrics | splv1sink | mode=append |
See also
thru command syntax details | thru command examples |
This documentation applies to the following versions of Splunk® Cloud Services: current
Feedback submitted, thanks!