Splunk Search

Why are two of my columns empty in a table returned by a lookup file with multiple fields?

faribole
Path Finder

I used a lookup file which is configuring like this

field1, field2, field3, field4
value1, value2, value3, value4
value10, value2, value3, value4
value11, value2, value3, value4

I would like to obtain the results in a table where i count the quantity of the first field.

field2    field3      field4      field1
value2   value3    value4    3

I tried this search:

my search | lookup mylookup field1 output field2, field3, field4 | chart count by field2 | table field2 field3 field4 nb

but columns field3 and field 4 are empty
where is my mistake ?

0 Karma
1 Solution

somesoni2
Revered Legend

Give this a try

my search | lookup mylookup field1 output field2, field3, field4 | stats count by field2 field3 field4

View solution in original post

0 Karma

somesoni2
Revered Legend

Give this a try

my search | lookup mylookup field1 output field2, field3, field4 | stats count by field2 field3 field4
0 Karma

faribole
Path Finder

Thanks it's ok

0 Karma
Get Updates on the Splunk Community!

See your relevant APM services, dashboards, and alerts in one place with the updated ...

As a Splunk Observability user, you have a lot of data you have to manage, prioritize, and troubleshoot on a ...

Index This | What goes away as soon as you talk about it?

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

What's New in Splunk Observability Cloud and Splunk AppDynamics - May 2025

This month, we’re delivering several new innovations in Splunk Observability Cloud and Splunk AppDynamics ...