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!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...