Splunk Search

Error in 'inputlookup' command

terryloar
Path Finder

I get the following error:

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

FOR

source="/home/loart/dev/Splunk/Test_Logs/nepoc_access_small.log" | inputlookup month_year.csv

AND

source="/home/loart/dev/Splunk/Test_Logs/nepoc_access_small.log" | inputlookup month_year

However, inputlookup is indeed the first command, month_year.csv is defined, and month_year is a valid lookup.

Tags (1)

Drainy
Champion

To use inputlookup it must be the first command, e.g.

| inputlookup blah.csv

To use it later in a search you use it like so;

sourcetype=blah | inputlookup append=t blah.csv
Get Updates on the Splunk Community!

Observe and Secure All Apps with Splunk

  Join Us for Our Next Tech Talk: Observe and Secure All Apps with SplunkAs organizations continue to innovate ...

Splunk Decoded: Business Transactions vs Business IQ

It’s the morning of Black Friday, and your e-commerce site is handling 10x normal traffic. Orders are flowing, ...

Fastest way to demo Observability

I’ve been having a lot of fun learning about Kubernetes and Observability. I set myself an interesting ...