Skip to main content
Solved

Splunk Query

  • August 30, 2024
  • 1 reply
  • 28 views

vanitharaj1208
Forum|alt.badge.img+14

Hi Guys,

i have observed different output 

in action "Execute Splunk query" if query is beginning with | pipe output is accurate 

| inputlookup data.csv | head 5

and if without | pipe result is different 

inputlookup data.csv | head 5

Any idea why?

Best answer by mikewilusz

It's my understanding any time you want Splunk to execute a command in search, you'll put a "|" before the command. So without the pipe in your 2nd search, I believe it's searching for the string "inputlookup data.csv" rather than actually running the "inputlookup" command. 

-mike

1 reply

mikewilusz
Staff
Forum|alt.badge.img+10
  • Staff
  • Answer
  • August 31, 2024

It's my understanding any time you want Splunk to execute a command in search, you'll put a "|" before the command. So without the pipe in your 2nd search, I believe it's searching for the string "inputlookup data.csv" rather than actually running the "inputlookup" command. 

-mike