Splunk Search

How do I group 2 attributes for line graph Splunk

Rayzer
Engager

I'm trying to do a line graph using this command:

source="filename.csv" sourcetype="csv" | stats sum(intake), values(gender) by academic_year

Output:

Rayzer_0-1642263301401.png

 

However, I want the total intake to show the total for each gender, male and female so that my line graph will look something like this: 

Rayzer_1-1642263427021.png

 

Thank you for the help!

 

 

Labels (1)
0 Karma
1 Solution

ITWhisperer
SplunkTrust
SplunkTrust

Change stats to chart

View solution in original post

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust
source="filename.csv" sourcetype="csv" | stats sum(intake) by academic_year, gender
0 Karma

Rayzer
Engager

This works only in the visualization tab, but my line graph still does not look like the drawing above.

Rayzer_0-1642300830931.png

 

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

Change stats to chart

0 Karma
Get Updates on the Splunk Community!

See just what you’ve been missing | Observability tracks at Splunk University

Looking to sharpen your observability skills so you can better understand how to collect and analyze data from ...

Weezer at .conf25? Say it ain’t so!

Hello Splunkers, The countdown to .conf25 is on-and we've just turned up the volume! We're thrilled to ...

How SC4S Makes Suricata Logs Ingestion Simple

Network security monitoring has become increasingly critical for organizations of all sizes. Splunk has ...