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!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...