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!

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