Splunk Search

Two Unrelated Searches -- One Report

whod81
Explorer

Is it possible to attach two searches to a single report?

SEARCH ONE (daily report by host, time ranged -1d@d to @d)

sourcetype="xxx" xtime=*s | convert auto(xtime) | search xtime>=6 | chart count(eval(xtime>=6)) as 6+, count(eval(xtime>=12)) as 12+, count(eval(xtime>=18)) as 18+ by host

SEARCH TWO (daily report not by host but last 7 days worth of counts, time range -7d@h to now)

sourcetype="SmtpPrevent_operational" dtime=*s | convert auto(dtime) | search dtime>=60 | timechart span=1d count(eval(dtime>=60)) as 60+, count(eval(dtime>=120)) as 120+, count(eval(dtime>=180)) as 180+

lguinn2
Legend

Why not build a dashboard with 2 panels? You can schedule the dashboard to be generated and emailed daily...

See Schedule Delivery of Dashboard Printouts via Email

sowings
Splunk Employee
Splunk Employee

The dashboard can still contain two panels; it doesn't have to be emailed. Consider the main landing page of the search app--there are several different panels. The searches that drive a given panel don't have to be related. Each of your above searches could easily be given its own panel, viewable on demand (vs. scheduled).

0 Karma

whod81
Explorer

This is a good idea, but unfortunately PDF isn't a format I'm hip to recieving every day.

Get Updates on the Splunk Community!

Get the T-shirt to Prove You Survived Splunk University Bootcamp

As if Splunk University, in Las Vegas, in-person, with three days of bootcamps and labs weren’t enough, now ...

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Wondering How to Build Resiliency in the Cloud?

IT leaders are choosing Splunk Cloud as an ideal cloud transformation platform to drive business resilience,  ...