Dashboards & Visualizations

How to regroup two graphs in one?

clairebesson
Explorer

Hello everyone! I need to do something that I think is very easy. I have 4 graphs from 4 different sources. (4 servers).

In the first graph you can see how many devices are up and how many are down for server 1. In the second you can see how many devices are up and how many are down for server 2 etc…

I want to regroup my graphs on one in order to do something as the figure below.

alt text

I don't know how to do that because the data are in different sources ("server1.csv", "server2.csv" ...)
Thanks in advance for your help.

Tags (1)
0 Karma
1 Solution

woodcock
Esteemed Legend

Something like this:

... | chart count(eval(Status=="Up")) AS Up count(eval(Status=="Down")) AS "Down" count(Status) AS WithStatusCount count AS AllCount by source

View solution in original post

0 Karma

fdi01
Motivator

try like:

...|timechart  span=1d count(eval(Status=="Up")) AS "Up" count(eval(Status=="Down")) AS "Down" by  source|eval source=if(source="server1.csv","server1",if(source="server2.csv","server2",if(source="server3.csv","server3","server4")))
0 Karma

chimell
Motivator

HI clairebesson
Try this :

 |set union[search "server1.csv"| chart count(eval(Status=="Up")) AS Up count(eval(Status=="Down")) AS "Down" count(Status) AS Status_C count AS TotalC by source] [search "server2.csv"| chart count(eval(Status=="Up")) AS Up count(eval(Status=="Down")) AS "Down" count(Status) AS Status_C  count AS TotalC by source ]
0 Karma

woodcock
Esteemed Legend

Something like this:

... | chart count(eval(Status=="Up")) AS Up count(eval(Status=="Down")) AS "Down" count(Status) AS WithStatusCount count AS AllCount by source
0 Karma

clairebesson
Explorer

It works ! Thank you very much for your help !
source=server* | chart count(eval(Status=="Up")) AS Up count(eval(Status=="Down")) AS "Down" by source

0 Karma

clairebesson
Explorer

with your help I managed to get the chart above.
Now, I want to click on Up for server1 and go on other dashboard and do the same thing for Down:
- Click on Up Server1 --» go to dashboard1
- Click on Down Server 1 --» go to dashboard2
- Click on Up Server 2--» go to dashboard3
- Click on Down Server 2 --» go to dashboard4

For the moment I have :

      <condition field="Up">
        <link>
      /app/search/what__track_up_aps?form.Up=$click.value$
    </link>
      </condition>
      <condition field="Down">
   <link>
      /app/search/what__track_down_aps?form.Down=$click.value$
    </link>
      </condition>
 </drilldown>

So, when I click on any column "Up" It goes to the same page (Same thing for Down).
I don't know how to make a condition on the source. (When I click on Up/Server1 it goes on dashboard1 and when I click on Up/Server2 it goes on dashboard2)
Could you please help me with that ? Thanks in advance for your help

0 Karma

woodcock
Esteemed Legend

This is a totally different question and you should ask a new question like:
"How to control drilldown on dashboard chart clicks"

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...

Splunk Lantern’s Guide to The Most Popular .conf25 Sessions

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Unlock What’s Next: The Splunk Cloud Platform at .conf25

In just a few days, Boston will be buzzing as the Splunk team and thousands of community members come together ...