Splunk Search

Search for Example Events by Field

moogmusic
Path Finder

Hi, I'm trying to search for an example event of different types by field so that I can see the detail of different types of event. So if I do `| stats count by fieldname` and it returns 10 different values for that field, I can see 10 different events in the event view and look at the details of each value of the field. Make sense? Thanks

Labels (2)
0 Karma

moogmusic
Path Finder

Thanks - I'm not sure that's quite what I need. If I do `| stats latest(_raw) by fieldname` then I kind of get what I want but it would be good to see the detail in the Events tab rather than the Statistics one so I can use the JSON formatting capabilities for viewing the events.

0 Karma

bowesmana
SplunkTrust
SplunkTrust

Not sure if this will help for what you're after, but have you tried fieldsummary

https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Fieldsummary

 

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...

Splunk Lantern’s Guide to The Most Popular .conf25 Sessions

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Unlock What’s Next: The Splunk Cloud Platform at .conf25

In just a few days, Boston will be buzzing as the Splunk team and thousands of community members come together ...