Knowledge Management

Having difficulty using the results from my Summary Index to do a search in

hrached
Loves-to-Learn

Hello 
I'm trying to create a summary index. I scheduled a search and edited the summary index but I could not do the new search in the results that I have already obtained in the scheduled searches 

Labels (1)
0 Karma

hrached
Loves-to-Learn

I have already an index and I selected it as summary index.
But after the scheduled research run I make a research about this index but I have always 0 event while the results of research isn't 0 event

0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @hrached,

could you share the scheduled search?

Ciao.

Giuseppe

0 Karma

hrached
Loves-to-Learn

hrached_0-1647362725246.png

 

0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @hrached,

ok, at the end of the scheduled search you have to add:

  • a table command listing all the fields you want in your summary index,
  • a collect command.

The command that adds the search results to the summary index is "collect" that's missing in your search.

As you can read at https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Collect, you have to add at the end of your search:

your_search
| collect index=your_summary_index

in this way your search results will be in the summary index.

Ciao.

Giuseppe

0 Karma

hrached
Loves-to-Learn

hrached_0-1647363442484.png

I have already do that I think 


 

0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @hrached,

as you can read at https://docs.splunk.com/Documentation/Splunk/latest/Knowledge/Setupsummaryindexes and https://docs.splunk.com/Documentation/Splunk/latest/Knowledge/Configuresummaryindexes to use a summary index you have to:

  • manually create a summary index using GUI or indexes.conf file,
  • create a streaming search (a search with streaming commands as stats, timechart or able or others, in otehr words, not row events) to populate it, remembering to add at the end of the search the collect command,
  • schedule the search.

In this way you'll have the search results in the summary index.

What's the problem you encountered?

Ciao.

Giuseppe

0 Karma
Get Updates on the Splunk Community!

Exporting Splunk Apps

Join us on Monday, October 21 at 11 am PT | 2 pm ET!With the app export functionality, app developers and ...

Cisco Use Cases, ITSI Best Practices, and More New Articles from Splunk Lantern

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Build Your First SPL2 App!

Watch the recording now!.Do you want to SPL™, too? SPL2, Splunk's next-generation data search and preparation ...