Splunk Search

Splunk search to group by the field values

soujanya
New Member

Hi,

I need to assign the values of a field to a new field and group with the new field.

For ex. 

Field-1  Field2

AppA     xxxx

AppA    yyyy

AppA    zzzz

AppB    xxxx

AppB     yyyy

I want to be able to have a stats count with a new field or value for everything that is there with a combination of Field1 and Field2.  i.e in the above result the new search field 3 may be should return 3 and 2 for each apps. 

I was told this might be achieve-able through lookup definitions and tables , but I am new to it. 

Any help will be great. 

 

Labels (5)
0 Karma

ITWhisperer
SplunkTrust
SplunkTrust
| stats dc(field2) as field3 by field1
0 Karma
Get Updates on the Splunk Community!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer Certification at ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...