Getting Data In

Recursive query based upon current result set

catsmeowor
Explorer

Having some trouble figuring this out, and fishing for an example as well.

Have an index that contains URL traffic logs. The category of these logs is dynamically updated each day.

index=url_logs category=malware | table user category url --> i get my results if there's any hits

But i what I'd like to do is to search for anything that currently matches malware on today's date with a search going back at least a week. That way I could tell if there was a lot of allowed traffic to a site that is now malicious and investigate from there.

Any suggestions? Thank you!

Tags (1)
0 Karma

valiquet
Contributor

index=url_logs url=* | stats values(user), values(url) by category | where category=malware

0 Karma
Get Updates on the Splunk Community!

.conf25 Registration is OPEN!

Ready. Set. Splunk! Your favorite Splunk user event is back and better than ever. Get ready for more technical ...

Detecting Cross-Channel Fraud with Splunk

This article is the final installment in our three-part series exploring fraud detection techniques using ...

Splunk at Cisco Live 2025: Learning, Innovation, and a Little Bit of Mr. Brightside

Pack your bags (and maybe your dancing shoes)—Cisco Live is heading to San Diego, June 8–12, 2025, and Splunk ...