Splunk Search

Is it possible to reference a report and add specific search criteria without having to create a new report with the needed criteria already specified?

apanages
New Member

Hello,

I have a report scheduled to run every night collecting patch information from many different business areas. This report has all the patching info in one master report. I am hoping to be able to reference that report in a search with other criteria, only pulling the specific information I want from that report such as specific IP ranges and other information.

I have tried ref=report_name | my_search_criteria but that did not work. Is it even possible to reference a report and adding specific search criteria without having to create a new report with the needed criteria already specified?

Thank you!

0 Karma

somesoni2
Revered Legend

Are trying to do all these in a dashboard OR a search?

0 Karma

apanages
New Member

In a dashboard. My dashboard has a patch count for different sites (business locations). Instead of having that run the search every single time for each site when the dashboard is loaded, I ideally would like to have the dashboard reference my scheduled report that runs at night. I created a report that runs two days a week at night that has all the sites in one report. From there I would like to reference that report on my dashboard in different panels but only grab specific data from that one report showing only the data for the site represented in the specific panel.

Example:

Panel 1
Location 1: ref=report_name | search_criteria

Panel 2
Location 2: ref=report_name |search_criteria

I hope this makes sense.

0 Karma

woodcock
Esteemed Legend

There are many ways including:

This loads the last run:

| loadjob YourSavedSearchDetailsHere | search Your Search Criteria Here

OR (this runs it when you call it)

| savedsearch YourSavedSearchDetailsHere | search Your Search Criteria Here

OR (this runs it when you call it and you have to have "tokenized" the SPL in your saved search):

| savedsearch YourSavedSearchDetailsHere YourFirstCrteriaToken="YourFirstCriteraValue" ... YourLastCrteriaToken="YourLastCriteraValue"
0 Karma
Get Updates on the Splunk Community!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...