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!

Technical Workshop Series: Splunk Data Management and SPL2 | Register here!

Hey, Splunk Community! Ready to take your data management skills to the next level? Join us for a 3-part ...

Spotting Financial Fraud in the Haystack: A Guide to Behavioral Analytics with Splunk

In today's digital financial ecosystem, security teams face an unprecedented challenge. The sheer volume of ...

Solve Problems Faster with New, Smarter AI and Integrations in Splunk Observability

Solve Problems Faster with New, Smarter AI and Integrations in Splunk Observability As businesses scale ...