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!

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

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...