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!

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...