Splunk Search

How to display search directly into visualization tab

Pat
Path Finder

HI.  When we use table in a search rather than going to events it goes to the statistics tab automatically.  I would like to have a timechart macro go straight to the visualization tab in much the same manner.  Is there any way to do this.  I don't want to make a dash I just want the macro to show a quick and dirty timechart.  Bonus if some options can be put into the search to specific the visualization type and such.  Here is the search im trying and its fine but I would like my users to see a visualization immediately rather than clicking on the visualization tab.

index=dct_* "body.host.name"=somehost "body.system.cpu.total.norm.pct"="*"
| fields body.host.name body.system.cpu.total.norm.pct
| eval cpuPercent = body.system.cpu.total.norm.pct*100
| timechart cont=FALSE avg(body.system.cpu.total.norm.pct)

Labels (1)
Tags (1)
0 Karma

richgalloway
SplunkTrust
SplunkTrust

The only way to force a particular view (AFAIK) is with a dashboard.

---
If this reply helps you, Karma would be appreciated.
0 Karma
Get Updates on the Splunk Community!

Splunk + ThousandEyes: Correlate frontend, app, and network data to troubleshoot ...

 Are you tired of troubleshooting delays caused by siloed frontend, application, and network data? We've got a ...

Splunk Observability for AI

Don’t miss out on an exciting Tech Talk on Splunk Observability for AI!Discover how Splunk’s agentic AI ...

🔐 Trust at Every Hop: How mTLS in Splunk Enterprise 10.0 Makes Security Simpler

From Idea to Implementation: Why Splunk Built mTLS into Splunk Enterprise 10.0  mTLS wasn’t just a checkbox ...