Monitoring Splunk

how to add columns having Alphabetically/string data and display the count?

Ashwini008
Builder

Hi,

I have below data in lookup,i need to add up the row data

example: For first row i need to add total offw,total 'B',total 'V' and show the count in 3 different column for OFF,B and V.

Similary for each row i need add the same data value and show in a column

 

Ashwini008_1-1629725806010.png

any query or commands ?

Labels (1)
Tags (3)
0 Karma
1 Solution

ITWhisperer
SplunkTrust
SplunkTrust
| rename count(FieldValue) as count
| table Names FieldValue count
| xyseries Names FieldValue count

View solution in original post

ITWhisperer
SplunkTrust
SplunkTrust

Assuming you can't get to the data before it has been put in this format, you could try untable to reverse the xyseries, then count the various values by whatever that first column is.

0 Karma

Ashwini008
Builder

@ITWhisperer Thank You.I got it in below format using the untable command.

Ashwini008_1-1629805260690.png

How can i get in the below format.

Names

A

B

C

XYZ

11

4

7

 

 

 

 

 

 

 

 

 

 

 

 

Tags (2)
0 Karma

ITWhisperer
SplunkTrust
SplunkTrust
| rename count(FieldValue) as count
| table Names FieldValue count
| xyseries Names FieldValue count
Get Updates on the Splunk Community!

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...

Updated Team Landing Page in Splunk Observability

We’re making some changes to the team landing page in Splunk Observability, based on your feedback. The ...

New! Splunk Observability Search Enhancements for Splunk APM Services/Traces and ...

Regardless of where you are in Splunk Observability, you can search for relevant APM targets including service ...