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!

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...