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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...