Splunk Search

Search Input based on a inputlookup

aquinojason
Path Finder

Hi, 

I am trying to do the following:

1. Using this | inputlookup Application.csv where BusinessUnit = BU1, it will filter a list of Account Codes e.g. AC1, AC2, AC3

2. I want to use that list of Account Codes to filter my search on a different sourcetype.

index=index1 sourcetype=sourctypeN ACCOUNT_CODE = "AC1" or ACCOUNT_CODE "AC2" and so on..

Thanks!

Labels (2)
0 Karma
1 Solution

richgalloway
SplunkTrust
SplunkTrust

Put the two searches together like this:

index=index1 sourcetype=sourctypeN [ | inputlookup Application.csv where BusinessUnit = BU1 | return 1000 ACCOUNT_CODE ]
---
If this reply helps you, Karma would be appreciated.

View solution in original post

0 Karma

richgalloway
SplunkTrust
SplunkTrust

Put the two searches together like this:

index=index1 sourcetype=sourctypeN [ | inputlookup Application.csv where BusinessUnit = BU1 | return 1000 ACCOUNT_CODE ]
---
If this reply helps you, Karma would be appreciated.
0 Karma

aquinojason
Path Finder
Spoiler
Thank you. it worked.
0 Karma
Get Updates on the Splunk Community!

Data Management Digest – December 2025

Welcome to the December edition of Data Management Digest! As we continue our journey of data innovation, the ...

Index This | What is broken 80% of the time by February?

December 2025 Edition   Hayyy Splunk Education Enthusiasts and the Eternally Curious!    We’re back with this ...

Unlock Faster Time-to-Value on Edge and Ingest Processor with New SPL2 Pipeline ...

Hello Splunk Community,   We're thrilled to share an exciting update that will help you manage your data more ...