Reporting

Dashboard creation with two saved searches

MadhuriVanga
New Member

Hi,

I have two saved searches as follows:

1. abc-RESPONSE OR def-RESPONSE|rex (?<operation>.*)(-RESPONSE)|rex "(instanceID=.*? )(?<payload>.*)...............................................................|xpath outfield=code //idCode field=payload|timechart span=1d count by operation

2. abc-RESPONSE OR def-RESPONSE|rex (?<operation>.*)(-RESPONSE)|rex "(instanceID=.*? )(?<payload>.*)...............................................................|xpath outfield=returncode //returnCode field=payload|timechart span=1d count by returncode

I want the dashboard count by operation and returncode in a single dashboard. i.e., i need a timechart which has adjacent bars for each operation and within each bar there should be color coded partition based on the returncode.

Kindly help with ideas on how to achieve the same.

Thanks in advance,
Madhuri.

Tags (1)
0 Karma
1 Solution

alacercogitatus
SplunkTrust
SplunkTrust

I believe you want a single search and report, not dashboard. Dashboard is easy (add two different panels with your searches) but a combined graph is inherently more difficult.

Try this:

abc-RESPONSE OR def-RESPONSE|rex (?<operation>.*)(-RESPONSE)|rex "(instanceID=.*? )(?<payload>.*)...............................................................|xpath outfield=code //idCode field=payload | xpath outfield=returncode //returnCode field=payload | eval ReportKey = operation.":".returnCode | timechart span=15m count by ReportKey

View solution in original post

0 Karma

alacercogitatus
SplunkTrust
SplunkTrust

I believe you want a single search and report, not dashboard. Dashboard is easy (add two different panels with your searches) but a combined graph is inherently more difficult.

Try this:

abc-RESPONSE OR def-RESPONSE|rex (?<operation>.*)(-RESPONSE)|rex "(instanceID=.*? )(?<payload>.*)...............................................................|xpath outfield=code //idCode field=payload | xpath outfield=returncode //returnCode field=payload | eval ReportKey = operation.":".returnCode | timechart span=15m count by ReportKey

0 Karma

MadhuriVanga
New Member

Hi sir,

Can we have three fields in the ReportKey? like we have 'operation' and 'returncode' can we have one more field included in the ReportKey?

Thanks in advance,
Madhuri.

0 Karma

MadhuriVanga
New Member

Hi,
Thanks a lot sir for the reply! It has helped me in getting the report right!!

Thanks once again.

0 Karma
Get Updates on the Splunk Community!

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...

Splunk APM: New Product Features + Community Office Hours Recap!

Howdy Splunk Community! Over the past few months, we’ve had a lot going on in the world of Splunk Application ...

Index This | Forward, I’m heavy; backward, I’m not. What am I?

April 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...