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!

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 ...

Accelerating Observability as Code with the Splunk AI Assistant

We’ve seen in previous posts what Observability as Code (OaC) is and how it’s now essential for managing ...

Integrating Splunk Search API and Quarto to Create Reproducible Investigation ...

 Splunk is More Than Just the Web Console For Digital Forensics and Incident Response (DFIR) practitioners, ...