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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...