Dashboards & Visualizations

Chart Overlay Help

b17gunnr
Path Finder

Hello folks,

I'm struggling with something that should be very basic. I have two queries to track skipped scheduled searches, the first counts the number of times a search has been skipped and the second counts how many times my individual SHC members have skipped a search. What I would like to be able to do is render my first query as a column chart and then overlay the second as a line chart. Any help would be appreciated. Thank you.

index=_internal sourcetype=scheduler status="skipped" | timechart count BY savedsearch_name useother=f usenull=f limit=0

index=_internal sourcetype=scheduler status="skipped" | timechart count BY host useother=f usenull=f limit=0

Labels (2)
0 Karma
1 Solution

PrewinThomas
Motivator

@b17gunnr 

Try appendcols to merge the results of the two timechart searches.

This should give you savedsearch_name series and all the host series side by side.

index=_internal sourcetype=scheduler status="skipped"
| timechart count BY savedsearch_name useother=f usenull=f limit=0
| appendcols [
search index=_internal sourcetype=scheduler status="skipped"
| timechart count BY host useother=f usenull=f limit=0
]


Regards,
Prewin
If this answer helped you, please consider marking it as the solution or giving a Karma. Thanks!

View solution in original post

PrewinThomas
Motivator

@b17gunnr 

Try appendcols to merge the results of the two timechart searches.

This should give you savedsearch_name series and all the host series side by side.

index=_internal sourcetype=scheduler status="skipped"
| timechart count BY savedsearch_name useother=f usenull=f limit=0
| appendcols [
search index=_internal sourcetype=scheduler status="skipped"
| timechart count BY host useother=f usenull=f limit=0
]


Regards,
Prewin
If this answer helped you, please consider marking it as the solution or giving a Karma. Thanks!

PickleRick
SplunkTrust
SplunkTrust

Wow. This is one of the very few cases where appendcols actually makes sense since due to timechart usage and aligned time ranges you should get matching results in both searches. 👍

0 Karma

sainag_splunk
Splunk Employee
Splunk Employee

@b17gunnr Hi!! based on what I can think of this might help?

  index=_internal sourcetype=scheduler status="skipped"

  | timechart count BY savedsearch_name limit=5

  | addtotals col=t labelfield=_time label="Total_Hosts"

 

  Then in Visualization:

  1. Chart Type: Column Chart

  2. FormatChart OverlayOn

  3. Overlay field: Select Total_Hosts (or whatever the total field is named)

  4. Chart Overlay type: Linear

 

  This gives you:

  - Column chart: Individual savedsearch skip counts

  - Line overlay: Total volume trend across all hosts

If this helps, Upvote!!!!
Together we make the Splunk Community stronger 
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Laser Bananas and Edge Hubs: Exploring Operational Technology (OT) Data Through a ...

  OT is a different environment to traditional IT and can have interesting challenges when interfacing the ...

Event Series: Mastering AI Tokenomics and Splunk Agent Observability

Beyond the Black Box: Correlating AI Performance and Tokenomics with Splunk Agent Observability   As ...

span_metrics: The OpenTelemetry-Idiomatic Way to See Inside Your Services

You open a trace in Splunk Observability Cloud and everything looks fine. One root span, order-pipeline, with ...