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!

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...

.conf24 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...