Dashboards & Visualizations

How to do I combine my two similar searches for my post process dashboard?

joydeep741
Path Finder

I am post processing my dashboard.
I have two searches and I wish to club them into one:

1) index=ABC sourcetype=XYZ | timechart count by websphere_clone_id limit=0

2) index=ABC sourcetype=XYZ HTTPstatus=5* | timechart count by websphere_clone_id limit=0

What condition should I put after the timechart to filter out results with HTTPstatus=5* ? Or is there any other way all together?

0 Karma
1 Solution

sundareshr
Legend

Try this

index=ABC ... | eval h=if(HTTPstatus=5*, 1, 0) | timechart count as total, count(h) as h5 by websphere_clone_id limit=0

View solution in original post

0 Karma

woodcock
Esteemed Legend

Like this:

index=ABC sourcetype=XYZ | timechart count AS total count(eval(like(HTTPstatus, "5%"))) AS h5 BY websphere_clone_id limit=0
0 Karma

sundareshr
Legend

Try this

index=ABC ... | eval h=if(HTTPstatus=5*, 1, 0) | timechart count as total, count(h) as h5 by websphere_clone_id limit=0
0 Karma
Get Updates on the Splunk Community!

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...

Let’s Get You Certified – Vegas-Style at .conf24

Are you ready to level up your Splunk game? Then, let’s get you certified live at .conf24 – our annual user ...