Splunk Search

How to view multiple lookups

spl10
Explorer

Hi Team,

I am trying to take the backup of lookups using search head console and for the same I have tried two ways.

a) Using below Rest Command

| rest /servicesNS/-/-/properties/lookups

Issue :- Since we have only limited permissions, hence the links of lookups are not working.

spl10_0-1651825138355.png

b) | inputlookup abcd.csv
| append
[inputlookup wxyz.csv]

Issue:- I could see the output of both the .csv files but unable to identify the content from where abcd.csv or  wxyz.csv is starting.

Can anyone please suggest the best possible way to do it from splunk gui since we have only power user access.

Labels (1)
0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @spl10,

the easiest way to have a copy of lookups having low grants, it's scheduling an alert for each lookup attaching the result to the email.

In this way you have all the csv files on your email and you haven't problems to search csv files that, only for your information, are in $SPLUNK_HOME/var/run/splunk/csv.

If you don't want many emails, you could use the search from @ITWhisperer to aggregate all lookups in one csv file and send it by alert to your email.

One additional information: when you make backup of your apps, you also make the backup of your lookups.

Ciao.

Giuseppe

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust
| inputlookup abcd.csv
| eval file="abcd.csv"
| append
[| inputlookup wxyz.csv
| eval file="wxyz.csv"]
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...