Reporting

Report Acceleration Repurposing?

sondradotcom
Path Finder

Team!

I'm used to working with summary indexes and tonight I thought I'd noodle with accelerated searches. My first search looked like this:

sourcetype="cisco_ips_syslog" | stats count by dest_ip

If a subsequent search is:

sourcetype="cisco_ips_syslog" dest_ip="10.1.15.2" | stats count by dest_ip

Will it pull from the accelerated search or will it pull from the raw data? Secondly, if my search is:

 sourcetype="cisco_ips_syslog" dest_ip="10.1.15.2" | timechart span=1d count by dest_ip

Will THAT pull from the accelerated search or from the raw data?

Thanks!
-S.

Tags (1)

martin_mueller
SplunkTrust
SplunkTrust

I'd say that's by design - a search can only use a report acceleration if its accelerate-able part matches the accelerated search's part.

For the first example you can put the filter by dest_ip after the stats count by dest_ip. Whether that's faster than just running the search by itself depends on the distribution of data.

The second example cannot really work because the acceleration itself does not need daily timespans, so it likely will not have exact per-day information available.

You can turn things around - accelerate a timechart, and post-process the results you need from that.

0 Karma

Lucas_K
Motivator

I've tried this myself and unfortunately doesn't seem to work if you include extra search options within in the base search.

I was looking to use report acceleration as a nicer "automatically" managed way to generate pre-report statistics.

I can't seem to nut out any way into which I can put an extra search definition into the most efficient search location (before the pipe) and have it access the report acceleration summary data.

0 Karma

kristian_kolb
Ultra Champion

bump.

Do we have a verdict?

/k

0 Karma

mattness
Splunk Employee
Splunk Employee

My understanding is that searches that draw from the same pool of data before applying transformations will use the same summary. What that means is, as long as the part of the search before the first pipe remains the same as your accelerated search, you can change what follows and still have it be used by the summary. By that logic, neither of the two searches you provide above would qualify to use the summary created for the accelerated search. But this search might:

sourcetype="cisco_ips_syslog" |  timechart span=1d count by dest_ip

Of course the best way to find out is to do as martin_mueller suggests in the preceding answer. Run the searches, accelerate them, and see if they get their own summary or are added to the existing summary.

martin_mueller
SplunkTrust
SplunkTrust

Set up the accelerated search, wait until it's built, run the other two searches, inspect for using summary or not.

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