Dashboards & Visualizations

Creating table by same unique id

abdulvehhaba
Path Finder

Hi

I have data like thisalt text

I want to dedup (group) uuid and create a price table in same row

Tags (1)
0 Karma
1 Solution

acharlieh
Influencer

Depending on what exactly you are expecting, there are at least a couple of different ways you could accomplish this:

<base search> | stats list(price) as price list(market) as market by uuid

This one uses Multivalue functions to give you the pairs of price and market

<base search> | chart limit=0 latest(price) over uuid by market

This one would have a row per uuid, with the price for each market in different columns by using the chart function.

I used the following as a base search to simulate your data:

| makeresults count=6 | streamstats count | eval uuid=if(count<=3,"A","B"), market=case(count%3=1,"MarketA",count%3=2,"MarketB",1=1,"MarketC"), price=random()  

View solution in original post

acharlieh
Influencer

Depending on what exactly you are expecting, there are at least a couple of different ways you could accomplish this:

<base search> | stats list(price) as price list(market) as market by uuid

This one uses Multivalue functions to give you the pairs of price and market

<base search> | chart limit=0 latest(price) over uuid by market

This one would have a row per uuid, with the price for each market in different columns by using the chart function.

I used the following as a base search to simulate your data:

| makeresults count=6 | streamstats count | eval uuid=if(count<=3,"A","B"), market=case(count%3=1,"MarketA",count%3=2,"MarketB",1=1,"MarketC"), price=random()  

abdulvehhaba
Path Finder

| chart limit=0 latest(price) over uuid by market

solve my problem thx, but it show only uuid and price i cannot see date, time etc

0 Karma
Get Updates on the Splunk Community!

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...