Dashboards & Visualizations

split the table column based on string and merge row based in id

krishman23
Explorer

I have list of events that was able to tabulate it as

Id      | LOG

---------------

1     | A:message1

1    | B: notification2

2     | A:message3

2    | B: notification4

 

I need to split LOG and then those row based in ID

id       |  message          | notification

-----------------------------------------

1      | A: message1     | B: notification2

2      | A: message3     | B: notification4

 

Labels (3)

ITWhisperer
SplunkTrust
SplunkTrust
| eval message=if(like(LOG,"%message%"),LOG,null())
| eval notification=if(like(LOG,"%notification%"),LOG,null())
| stats values(message) as message values(notification) as notification by Id
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 ...