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!

Tech Talk Recap | Mastering Threat Hunting

Mastering Threat HuntingDive into the world of threat hunting, exploring the key differences between ...

Observability for AI Applications: Troubleshooting Latency

If you’re working with proprietary company data, you’re probably going to have a locally hosted LLM or many ...

Splunk AI Assistant for SPL vs. ChatGPT: Which One is Better?

In the age of AI, every tool promises to make our lives easier. From summarizing content to writing code, ...