Other Usage

How can I get stats based on unique Id?

batham
Explorer

Hi folks,
below are the log snippet that I am working on to generate a report

dare=10-05-2023,uniquieId=123 ,Request body: {"name":"test123","id": "Id123"}
dare=10-05-2023,uniquieId=234 ,Request body: {"name":"test234","id": "Id234"}
dare=10-05-2023,uniquieId=345 ,Request body: {"name":"test123","id": "Id345"}
dare=10-05-2023,uniquieId=123 ,Response body: {"role":"1"}
dare=10-05-2023,uniquieId=234 ,Response body: {"role":"2"}
dare=10-05-2023,uniquieId=345 ,Response body: {"role":"1"}
....
....
....
.....

I want daily stats on name and role, how do I combine the result based on uniquieId .
as below

date                    test123         test234
10-05-2023           2                     1

Labels (1)
Tags (1)
0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

Assuming you have already extracted the fields, try this

| chart count by dare name
0 Karma
Get Updates on the Splunk Community!

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...

Introducing Splunk Enterprise 9.2

WATCH HERE! Watch this Tech Talk to learn about the latest features and enhancements shipped in the new Splunk ...

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 ...