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!

Why Splunk Customers Should Attend Cisco Live 2026 Las Vegas

Why Splunk Customers Should Attend Cisco Live 2026 Las Vegas     Cisco Live 2026 is almost here, and this ...

What Is the Name of the USB Key Inserted by Bob Smith? (BOTS Hint, Not the Answer)

Hello Splunkers,   So you searched, “what is the name of the usb key inserted by bob smith?”  Not gonna lie… ...

Automating Threat Operations and Threat Hunting with Recorded Future

    Automating Threat Operations and Threat Hunting with Recorded Future June 29, 2026 | Register   Is your ...