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
Get Updates on the Splunk Community!

Splunk Observability for AI

Don’t miss out on an exciting Tech Talk on Splunk Observability for AI!Discover how Splunk’s agentic AI ...

Splunk Enterprise Security 8.x: The Essential Upgrade for Threat Detection, ...

Watch On Demand the Tech Talk on November 6 at 11AM PT, and empower your SOC to reach new heights! Duration: ...

Splunk Observability as Code: From Zero to Dashboard

For the details on what Self-Service Observability and Observability as Code is, we have some awesome content ...