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
SplunkTrust
SplunkTrust

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
SplunkTrust
SplunkTrust

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!

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...