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!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...