Dashboards & Visualizations

Visualisation with multiple data

Kaushaas
Explorer

Hi 

I am trying to get visualization in a way when i select multiple categories i see multiple lines in chart and when single value selected i need to get single line but unable to create chart when passing multiple values in categories Please help 

| rex field=message "MessageTemplate\\\":\\\"(?<msgType>[^\\\"]+)" | spath | search SAP OR TMD
|timechart count by SAP or TMD


Expecting result like below but this query gives error

Kaushaas_0-1719400066427.png

| rex field=message "MessageTemplate\\\":\\\"(?<msgType>[^\\\"]+)" | spath | search SAP | timechart count . This is coming fine as I have timechart given by count 

Kaushaas_1-1719400135990.pngThanks in advance
Ashima

Labels (3)
0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

Assuming msgType extracts values such as SAP and TMD, try something like this

| rex field=message "MessageTemplate\\\":\\\"(?<msgType>[^\\\"]+)" | spath | search SAP OR TMD
|timechart count by msgType
0 Karma
Get Updates on the Splunk Community!

What the End of Support for Splunk Add-on Builder Means for You

Hello Splunk Community! We want to share an important update regarding the future of the Splunk Add-on Builder ...

Solve, Learn, Repeat: New Puzzle Channel Now Live

Welcome to the Splunk Puzzle PlaygroundIf you are anything like me, you love to solve problems, and what ...

Building Reliable Asset and Identity Frameworks in Splunk ES

 Accurate asset and identity resolution is the backbone of security operations. Without it, alerts are ...