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!

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer at Splunk .conf24 ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...

Share Your Ideas & Meet the Lantern team at .Conf! Plus All of This Month’s New ...

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