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!

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, ...