Splunk Search

Grouping the data row based

rsathish47
Contributor

HI All,

I need to group the data row based my table looks like this.

Table:

DBName Region Dag count

DB1 US DG1 3

DB1 EUR DG1 5

DB2 US DG3 4

DB3 EUR DG2 5

DB3 US DG2 3

DB3 Ap DG2 6

Result Table

DBName Region Dag count

DB1 US,EUR DG1,DG1 3,5

DB2 US DG3 4

DB3 EUR,US,Ap DG2,DB2,DB2 5,6,3

Please let me know if their any workaround

Thanks
Sathish R

Tags (1)
0 Karma

somesoni2
Revered Legend

Similar, but formatted as per your example:

..your base search...| stats delim="," values(Region) as Region values(Dag) as Dag values(count) as count by DBName | nomv Region | nomv Dag | nomv count
0 Karma

adityapavan18
Contributor

Could you try like

| stats values(Region) as Region values(Dag) as Dag values(count) as count by DBName.

you can also use list instead of values.

0 Karma
Get Updates on the Splunk Community!

Data Preparation Made Easy: SPL2 for Edge Processor

By now, you may have heard the exciting news that Edge Processor, the easy-to-use Splunk data preparation tool ...

Introducing Edge Processor: Next Gen Data Transformation

We get it - not only can it take a lot of time, money and resources to get data into Splunk, but it also takes ...

Tips & Tricks When Using Ingest Actions

Tune in to learn about:Large scale architecture when using Ingest ActionsRegEx performance considerations ...