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!

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...