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
SplunkTrust
SplunkTrust

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!

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...

Let’s Get You Certified – Vegas-Style at .conf24

Are you ready to level up your Splunk game? Then, let’s get you certified live at .conf24 – our annual user ...