Dashboards & Visualizations

Dashboard help

mhorn
New Member

Hi I'm trying to create a custom dashboard which list the companies and products we have running on our servers. To define the term company i setup a field extraction -> transform to look at a specific folder on each server. i have the logs for each company/product writing to their specific folder (c:\logs\ABC Company\Product). I've tried using source, field, sourcetype=company and i can't get it to list out the companies. Anybody have any suggestions? Also i'm using a basic xml dashboard design since programming is not my forte.

Thank you

Tags (1)
0 Karma

somesoni2
Revered Legend

Try using this in your dashboard xml (Splunk 6 version)

<dashboard>
  <label>Summary Dashboard</label>
  <description></description>
  <row>
    <table>
      <title>Select Company</title>
      <searchString>
        sourcetype=company | stats count by company| fields - count
      </searchString>
      <earliestTime>0</earliestTime>
      <latestTime>now</latestTime>
      <option name="wrap">true</option>
      <option name="drilldown">row</option>
      <option name="count">10</option>
      </table>
  </row>
</dashboard>

This dashboard create a table with unique list of companies. Increate the "count" option value as per your need. It by default drilldowns to Splunk Search app with selected company name, with search query like below.

sourcetype=company company="Your selected company name"
0 Karma

somesoni2
Revered Legend

This just an example query. replace it with index/source/sourcetype of yours which has company data.

0 Karma

mhorn
New Member

unfortunately sourcetype=company nor source=company return any results. really confusing!!

0 Karma

mhorn
New Member

i've tried that but i can't get the search to just list the companies out individually and make them hyperlinked. If I do company=”*”, I just get 100's of log pages with the most active company at the top. I might have to go 50 pages deep to find the company I actually want.

I wanted the company names listed out like the host/servers are on the summary dashboard. you click on the company and you get all the logs. wish i would post a pic 😞

0 Karma

lukejadamec
Super Champion

Why don't you use the built in dashboard creator? From the search page select Dashboards & Views > Create Dashboard.
Set Edit to ON, Add a Panel, and paste your working search into as an Inline Search.

0 Karma

mhorn
New Member

yup...it's in there. I have about 5 years of data. I tried to post a pic, but i don't have enough points 😞

0 Karma

lukejadamec
Super Champion

First you need to create a search that pulls the data you want.
But, even before that you need to have the data in Splunk to search. It sounds like you don't have the data. Do you have the data indexed?

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!

Announcing Modern Navigation: A New Era of Splunk User Experience

We are excited to introduce the Modern Navigation feature in the Splunk Platform, available to both cloud and ...

Modernize your Splunk Apps – Introducing Python 3.13 in Splunk

We are excited to announce that the upcoming releases of Splunk Enterprise 10.2.x and Splunk Cloud Platform ...

Step into “Hunt the Insider: An Splunk ES Premier Mystery” to catch a cybercriminal ...

After a whole week of being on call, you fell asleep on your keyboard, and you hit a sequence of buttons that ...