Quantcast
Channel: Questions in topic: "splunk-enterprise"
Viewing all articles
Browse latest Browse all 47296

Help rebuilding subsearch that keeps timing out

$
0
0
So here's my issue. We are creating a chart that shows each user and which desktops they use. The desktops are divided into two categories. I need counts of users for category 2 that are NOT in category 1. I have created a query that uses a subsearch and it works great with up to 7 days worth of data. However they're asking for 30 days worth of data and when I bump it up the subsearch is timing out. I've been trying to re-build this without a subsearch but I haven't been able to figure it out yet so I'm asking for some help from the Splunk world. Here's my search: index=apache_logs host="prod" GET ("URL1" OR "URL2") | rex field=_raw " - (?.*?) \?desktop=(?\w+)" | search NOT [ search index=apache_logs host="prod" GET ("URL1" OR "URL2") | rex field=_raw " - (?.*?) \?desktop=(?\w+)" | eval DesktopName=upper(DesktopName) | search DesktopName=*CAT1 | stats count by UserID | fields - count] | stats count by UserID DesktopName | chart count over UserID by DesktopName

Viewing all articles
Browse latest Browse all 47296

Trending Articles