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!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...