Skip to main content
Solved

Splunk Query

  • Aug 30, 2024 8:18 PM UTC
  • 1 reply
  • 58 views

Forum|alt.badge.img+16

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

View original

1 reply

mikewilusz
Staff
Forum|alt.badge.img+10
  • Staff
  • Answer
  • Aug 31, 2024 1:09 PM UTC

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