All Apps and Add-ons

inputlookup

sd248011
New Member

Hello,

I know to view a csv, I can run | inputlookup asdf.csv. How would I be able to view multiple csvs in one search query?

0 Karma
1 Solution

alacercogitatus
SplunkTrust
SplunkTrust

A better solution would be:

|inputlookup file1.csv | inputlookup file2.csv append=t|...

View solution in original post

alacercogitatus
SplunkTrust
SplunkTrust

A better solution would be:

|inputlookup file1.csv | inputlookup file2.csv append=t|...

sd248011
New Member

Ah, got it. Thanks much!

0 Karma

alacercogitatus
SplunkTrust
SplunkTrust

My initial answer had an append=t because I normally append lookups to search results. Try this: |inputlookup c2_zeus.csv | inputlookup DNS_DOMAINS_malware.csv append=t

0 Karma

sd248011
New Member

The c2_zeus.csv is the first. Then I have append=t after that and the second csv. My example above is exactly like how your query was stated originally. It just doesn't let you put a subsequent inputlookup command after the initial one.

0 Karma

alacercogitatus
SplunkTrust
SplunkTrust

You have them backwards. Swap the two. For each inputlookup after the first, you need "append=t"

0 Karma

sd248011
New Member

|inputlookup c2_zeus.csv append=t| inputlookup DNS_Domains_malware.csv

0 Karma

alacercogitatus
SplunkTrust
SplunkTrust

can you post your search that is failing?

0 Karma

sd248011
New Member

I do. It is because inputlookup is stated after the append. I can run the | inputlookup file1.csv just fine. It is the subsequent csvs I can't seem to also pull up.

0 Karma

alacercogitatus
SplunkTrust
SplunkTrust

make sure you have a | at the front of your search, and that it is the first command in the search.

0 Karma

sd248011
New Member

I receive this error:

Error in 'inputlookup' command: This command must be the first command of a search.

0 Karma

martin_mueller
SplunkTrust
SplunkTrust

inputlookup, append, inputlookup, append, ...?

0 Karma
Get Updates on the Splunk Community!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer Certification at ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...