Splunk Search

how to merge similar events of a table using javascript?

sajjanshetty15
Loves-to-Learn

hello all,
I am trying to merge the rows of table into one value as all of them are same, but i dont want to use dedup as there are other columns which are having different values.
i have tried using stats values() and list() but it is not giving the required output as i want to drill down from the result table to another table.
here is the example table..
Metrics Month Raw Sla SLA
Incidence performance P1 18-Apr 100 100
Incidence performance P1 18-May 100 100
Incidence performance P1 18-Jun 44.44 100
Incidence performance P1 18-Jul 100 100
Incidence performance P1 18-Aug 88.8 100
Incidence performance P1 18-Sep 90 100
Incidence performance P1 18-Oct 56 100
Incidence performance P1 18-Nov 89 100
Incidence performance P1 18-Jan 100 100
Incidence performance P1 18-Feb 100 100

required output
Metrics Month Raw Sla SLA
Incidence performance P1 18-Apr 100 100
18-May 100 100
18-Jun 44.44 100
18-Jul 100 100....so on
I want to achieve this using Javascript...is possible?if so please help...
Thanks and regards

Tags (1)
0 Karma
Get Updates on the Splunk Community!

Building Reliable Asset and Identity Frameworks in Splunk ES

 Accurate asset and identity resolution is the backbone of security operations. Without it, alerts are ...

Cloud Monitoring Console - Unlocking Greater Visibility in SVC Usage Reporting

For Splunk Cloud customers, understanding and optimizing Splunk Virtual Compute (SVC) usage and resource ...

Automatic Discovery Part 3: Practical Use Cases

If you’ve enabled Automatic Discovery in your install of the Splunk Distribution of the OpenTelemetry ...