Splunk Search

How to capture in chart?

FcwfCW76
Explorer

Hello

I have a table

FcwfCW76_0-1646241245201.png

I want this

FcwfCW76_1-1646241459438.png

I am not sure which tool (chart, table anything else) and arguments would be best to explore and learn in order to get the result I want.
Do you have any advice?

Thank you.

Labels (3)
Tags (2)
0 Karma
1 Solution

ITWhisperer
SplunkTrust
SplunkTrust

Assuming you can split your project names with underscores (and that you really meant A_2/a_2 etc)

| eval project_number=mvindex(split(project,"_"),1)
| eventstats values(project) as project by project_number
| fields - project_number
| eval project=mvjoin(project,"/")
| stats list(*) as * by project
| foreach category*
    [| eval <<FIELD>>=mvjoin(<<FIELD>>,"/")]

View solution in original post

0 Karma

somesoni2
Revered Legend

Could you provide more details on the logic here?

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

Assuming you can split your project names with underscores (and that you really meant A_2/a_2 etc)

| eval project_number=mvindex(split(project,"_"),1)
| eventstats values(project) as project by project_number
| fields - project_number
| eval project=mvjoin(project,"/")
| stats list(*) as * by project
| foreach category*
    [| eval <<FIELD>>=mvjoin(<<FIELD>>,"/")]
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!

Casting Call: Compete in Cyber Games

Lights, Camera, SecOps: Apply to Compete in Cyber Games     Think you have what it takes to beat the clock? ...

Data Management Digest – June 2026

Welcome to the June 2026 edition of Data Management Digest! This month’s update is short and sweet, with a ...

Think Like an Architect: Introducing the Splunk Certified Cybersecurity Defense ...

In cybersecurity, defenders respond to threats. Architects design the systems that stop them.    As ...