Splunk Search

Lookup table question

pitshot
Explorer

Using Splunk v 5.04

I have a lookup table containing devicename,interfacename,speed . Each device name can have multiple interfaces associated with it. What I am trying to do is count the interfaces associated to a particular devicename.

|inputlookup LUTOPO | search DEVICENAME="rr1.yyz3*" AND SPEED>=10000000000 | stats count(INTERFACENAME) as count | table DEVICENAME count

The search returns a count of the interfaces but does not show the devicename in the table.

Tags (1)
0 Karma

MarioM
Motivator

because you need a split by in your stats:

| stats count(INTERFACENAME) as count by DEVICENAME

piebob
Splunk Employee
Splunk Employee

pitshot, in the future, if another community member's answer solves your problem, please check the checkmark next to it to accept the answer. thanks!

0 Karma

pitshot
Explorer

Perfect, Thanks

Get Updates on the Splunk Community!

Data Management Digest – December 2025

Welcome to the December edition of Data Management Digest! As we continue our journey of data innovation, the ...

Index This | What is broken 80% of the time by February?

December 2025 Edition   Hayyy Splunk Education Enthusiasts and the Eternally Curious!    We’re back with this ...

Unlock Faster Time-to-Value on Edge and Ingest Processor with New SPL2 Pipeline ...

Hello Splunk Community,   We're thrilled to share an exciting update that will help you manage your data more ...