Dashboards & Visualizations

Linking Dashboard Panel with Report Results

FaewUpV
Engager

I have a timechart panel in a dashboard that has all the e-mails that were sent this month, whether that'd be an Alert or Report. I want to be able to click on any of those stacked values and on another tab, to bring me those results. I know using the loadjob command with the sid should help me with this, but I don't know how to use tokens for this. Here is the panel, can anybody help?

index=_internal source="D:\\Example\\Splunk\\var\\log\\splunk\\python.log" sourcetype=splunk_python TERM(email)
| eval ReportNamingConvention=if(match(subject, "Name\sSIEM\sReport:\sFirewall"), 1, 0)
| where ReportNamingConvention==1
| eval subject=substr(subject, 30)
| timechart useother=false count as Count by subject
| rename subject as "Email Subject"

Labels (4)
0 Karma
1 Solution

niketn
Legend

@FaewUpV first off your SPL seems poorly written as you are pull all data from index and then filtering to what you need. Try with this as your base search where only results with required Subject text are filtered. You may have to add wildcard if this is pattern match and not exact match. Refer to Splunk Documentation: https://docs.splunk.com/Documentation/Splunk/latest/Search/Quicktipsforoptimization

index=_internal source="D:\\Example\\Splunk\\var\\log\\splunk\\python.log" sourcetype=splunk_python TERM(email) subject="Name\sSIEM\sReport:\sFirewall"

For the drilldown please let us know what you have tried, community may not be able to assist you with "...I don't know how to use tokens for this...". Have you checked out Splunk Docs for setting drilldown tokens or even better Splunk Dashboard Examples App from Splunkbase which has several examples on drilldown?

____________________________________________
| makeresults | eval message= "Happy Splunking!!!"

View solution in original post

0 Karma

niketn
Legend

@FaewUpV first off your SPL seems poorly written as you are pull all data from index and then filtering to what you need. Try with this as your base search where only results with required Subject text are filtered. You may have to add wildcard if this is pattern match and not exact match. Refer to Splunk Documentation: https://docs.splunk.com/Documentation/Splunk/latest/Search/Quicktipsforoptimization

index=_internal source="D:\\Example\\Splunk\\var\\log\\splunk\\python.log" sourcetype=splunk_python TERM(email) subject="Name\sSIEM\sReport:\sFirewall"

For the drilldown please let us know what you have tried, community may not be able to assist you with "...I don't know how to use tokens for this...". Have you checked out Splunk Docs for setting drilldown tokens or even better Splunk Dashboard Examples App from Splunkbase which has several examples on drilldown?

____________________________________________
| makeresults | eval message= "Happy Splunking!!!"
0 Karma

FaewUpV
Engager

Thank you for the guidance, I will be looking over the Splunk Dashboard Examples App from Splunkbase.

0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

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

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...