Splunk Search

How to make a bar graph with multiple bars for a category

sakeebhossain
Explorer

I have a .csv file that graphs the number of sales for three different businesses per month. has the columns, (Name, Month, Amount) with each row containing a business, a month, and how much they sold in that month. For example (Walmart, Jan, 210231024). I would like to make a bar graph which has each business on the X-axis and transaction amounts on the Y-axis. Then for each business on the X-axis, have a bar for each month. In my specific case, there are only 3 months to worry about (Jan, Feb, March). Can anyone help me make a query for this?

I'm new to Splunk and have to put together a demo quickly, so I'd appreciate the help.

0 Karma
1 Solution

gcusello
SplunkTrust
SplunkTrust

Hi sakeebhossain,
try something like this

your search
| chart sum(Amount) over Name by Month

Bye.
Giuseppe

View solution in original post

adonio
Ultra Champion

Hello there,
i created a small csv file and uploaded to splunk.
here are the results:
alt text

hope it helps

LakshmiPrasanna
Loves-to-Learn Lots

When one of the month data is not available in one of the name.. i am seeing empty space in between bars.. is there any way we can avoid that space

0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi sakeebhossain,
try something like this

your search
| chart sum(Amount) over Name by Month

Bye.
Giuseppe

sakeebhossain
Explorer

Excellent, thank you!

0 Karma
Get Updates on the Splunk Community!

Enterprise Security Content Update (ESCU) | New Releases

In December, the Splunk Threat Research Team had 1 release of new security content via the Enterprise Security ...

Why am I not seeing the finding in Splunk Enterprise Security Analyst Queue?

(This is the first of a series of 2 blogs). Splunk Enterprise Security is a fantastic tool that offers robust ...

Index This | What are the 12 Days of Splunk-mas?

December 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...