Splunk Search

save search results into index

xuehui
New Member

i want save search results data into my index.
how can i do it...
(|crawl ... |input add index=myindex) is not working.

Tags (1)
0 Karma
1 Solution

chinmoya
Communicator

Use collect command

|crawl ... |collect index=myindex

Please note: collect command defaults the sourcetype to stash. (this will not consume any license).
If you use your own custom sourcetype, you can but it will cost license.

View solution in original post

0 Karma

xuehui
New Member

thank you very much for your answer.
i try it ,it's worked

0 Karma

chinmoya
Communicator

Use collect command

|crawl ... |collect index=myindex

Please note: collect command defaults the sourcetype to stash. (this will not consume any license).
If you use your own custom sourcetype, you can but it will cost license.

0 Karma
Get Updates on the Splunk Community!

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!

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

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...