Splunk Search

Query to check all apps in lookup that haven't had an event in the last 90 days.

Chris_Urman
Engager

I have a lookup that has saved all apps installed on our deployment server. I need a query that checks all apps in the lookup without an app event in the last 90 days. Thank you for any assistance. 

Labels (1)
0 Karma
1 Solution

ITWhisperer
SplunkTrust
SplunkTrust

Assuming your app name in the events is app and the app name in the lookup is also app, you could do something like this (over the past 90 days)

| stats count by app
| append
  [| inputlookup lookup]
| stats count by app
| where count == 1

View solution in original post

0 Karma

Chris_Urman
Engager

Made a couple minor adjustments but this is what I needed to solve my issue. Thank you.

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

Assuming your app name in the events is app and the app name in the lookup is also app, you could do something like this (over the past 90 days)

| stats count by app
| append
  [| inputlookup lookup]
| stats count by app
| where count == 1
0 Karma
Get Updates on the Splunk Community!

Splunk Enterprise Security 8.0.2 Availability: On cloud and On-premise!

A few months ago, we released Splunk Enterprise Security 8.0 for our cloud customers. Today, we are excited to ...

Logs to Metrics

Logs and Metrics Logs are generally unstructured text or structured events emitted by applications and written ...

Developer Spotlight with Paul Stout

Welcome to our very first developer spotlight release series where we'll feature some awesome Splunk ...