Getting Data In

Question about sourcetypes and use of 'collect' command.

Tipmoose
Explorer

We've got a .csv file that we are trying to load into an existing index and an existing sourcetype by using the 'collect' command in the search app. Regardless of what we try, the data is always imported with the sourcetype of 'stash'.

Is it possible to import data into a sourcetype of our choosing via the collect command?

Tags (3)

starcher
Influencer

You can use the marker option to make a st field to use for source typing once collected. Like the following. It won't be a true source type but you can search on st. The source type stays 'stash' regardless. Trying to overload the source type name via marker won't work either.
| collect index=summary_abuse marker=st=Alert-To_XARF

Get Updates on the Splunk Community!

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...