Dashboards & Visualizations

Combine two chart

gjhaaland
Explorer

Hi,

I have create two different timechart like:

Timechart1(cable connection on/off):

index=cisco_asa dest_interface=outside | timechart span=10m dc(count) by count

 

Timechart2(login user listed):

host=10.1.1.1 src_sg_info=* | timechart span=10m dc(src_sg_info) by src_sg_info

 

Individually the display is perfect, but it would be even better if we could combined into one graph with common timestamps. 

 

I search through splunk documents, also tried different setup without success. Hope someone could help me with it 🙂

 

Labels (1)
Tags (1)
0 Karma

gjhaaland
Explorer

Thanks 🙂  yes the search looks strange, but it's the only way out of my problems. If dest_interface=outside the cable to outside interface is connected.  Not sure why, but it's perfect. I have also tried to use appendcols to combine both graphs without success.  I think I must do more investigation to find out why.

Geir

0 Karma

PickleRick
SplunkTrust
SplunkTrust

appendcols just puts two sets side by side without any kind of "matching" between those sets so first row of set B will be appended to first row of set A regardless of what order of events each of those sets had.

I think you should rather simply append (not appendcols) those searches together and then do some form of stats by _time (or timechart again) to match data points from the same timestamp.

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

You can try appending the second search to the first search

Having said that using dc by the same field is only every going to give counts of 1 so your searches seem a little strange.

0 Karma
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!

Quick connection discovery mode for forwarders

When a Splunk forwarder loses connectivity to its indexers, it does not always reconnect immediately. In many ...

Build and Launch AI Agents from Your Splunk Workflows

  Register We’ve all been there: juggling alerts, runbooks, and endless manual searches. What if you could ...

Splunk Cloud Application Management in Terraform

Register   On Tuesday, August 4 at 11AM PDT / 2PM EDT, we’re diving into how you can bring Infrastructure as ...