Splunk Search

Is it possible to use PostProcessManager to append lookup CSV file?

chanmi2
Path Finder

Hi all,

Can we use |append [|inputlookup tmp.csv] in a post process search?

Here is the code:

<table>
  <search id="test">
    <query>|stats count</query>
  </search>
</table>
<table>
  <search base="test">
    <query>|append [|inputlookup tmp.csv|eval count="tmp"]</query>
  </search>
</table>

Two tables will show the same result. Click the "open in search" button and jump to search page, the result can contain the csv file.
If inside append is [|stats count|eval count="tmp"], the table can show both count=0 and count=tmp.
Is it a bug, the design of post process search, or did I type something wrong? Thanks.

0 Karma
1 Solution

sundareshr
Legend

AFAIK, postprocess only works on the data returned from base search. So, no, you cannot do an inputlookup

View solution in original post

sundareshr
Legend

AFAIK, postprocess only works on the data returned from base search. So, no, you cannot do an inputlookup

chanmi2
Path Finder

Thanks. Could you please post your answer so that I could click the accept button?

0 Karma
Get Updates on the Splunk Community!

[Puzzles] Solve, Learn, Repeat: Dynamic formatting from XML events

This challenge was first posted on Slack #puzzles channelFor a previous puzzle, I needed a set of fixed-length ...

Enter the Agentic Era with Splunk AI Assistant for SPL 1.4

  &#x1f680; Your data just got a serious AI upgrade — are you ready? Say hello to the Agentic Era with the ...

Stronger Security with Federated Search for S3, GCP SQL & Australian Threat ...

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...